|
I am developing a web enable application where I want the contents of the browser to be printed. Now I am using the print option from the browser File menu. Can I use a button either to print the contents or redirect to a word file?
I am using Classic ASP 3.0
MK Das
|
|
|
|
|
How about a little javascript on your html page like
onwards and upwards...
|
|
|
|
|
I m able to use Crystal report (8.5) into ASP (3.0), but I am not able see the report on client browser (IE6). For this crystal reports itself require to be install on client m/c, if so then it shows report in IE. Please help me to find out the way or any runtime files required to be have on client side. Because to install crystal report on each client is not feasible and possible for web reporting.
|
|
|
|
|
how can i built a web project by using asp.net that have an email service
notice:
by using the class mail i can send messages but how i can recieve and communicate with the email server ?
Plz help me i do not even know from where to begin..
thanks for every programer in this site you are my real family in this world
forgive me for my poor english language...
I hope happy life for all
|
|
|
|
|
ummmmm for in and out emails u generally use a mailserver
im not exactly sure what ur asking
?
"there is no spoon" biz stuff about me
|
|
|
|
|
There are a variety of means to retrieve mail from a POP server using the .NET Framework. As a starting point, I suggest searching articles here on CP by typing in the search term "POP3". These methods involve connecting to a POP server via TCP/IP using TcpClient, etc., and parsing the results of various RFC standard POP3 commands.
On the other hand, there are several components developed by third-party vendors that support this, as well. For example, Quiksoft (http://www.quiksoft.com/[^]).
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I have a working report called ReportOne.rpt which has 20 subreport attached to it and the same is called by a button click from an asp page.
These reports will be displayed in PDF format. Today, I made some changes(report format) in one of the sub_report and the Stored Procedure which derives the values to it. Now i am unable to run the report. While running it raises an error message
Error Type:
RptControllers.dll (0x8004100F)
Logon failed. Details: ADO Error Code: 0x80040e4d Source: Microsoft OLE DB Provider for SQL Server Description:
Login failed for user 'm2user'. SQL State: 42000 Native Error: 18456
Error in File C:\WINNT\TEMP\{DFB95055-0865-42A9-85DB-F5764192C3B9}.rpt: Unable to connect: incorrect log on parameters.
/M2Web/CrystalStartPageM2.asp, line 225
I am using SQL server 2000, Connecting to backend from main report is through ODBC and rest of the subreports are through SQL OLEDB provider.
All the subreports are linked with Main reports parameter like ID, and Type.
Thanks
Hitesh
|
|
|
|
|
I was wondering if there is a way to OVERLOAD Functions and Subs in classic ASP.
It would be very usefull...
Any tricks, ideas?
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Classic ASP won't let you use overloads per se, and, if I remember correctly, you cannot use real VB parameters (like Optional ByVal ... As [Type]). I suppose the thing to try is to see if you can pass an array or a collection and have the function or sub behave differently depending on the number of elements in the list.
*thinking out loud* Also, if you define a function or sub with multiple parameters, and fail to pass one or more, does it error out at runtime? If it doesn't, you might be able to test using IsEmpty or IsNull or something on a param that wasn't passed...
Then again, you could define subs and functions in a VB6 DLL project with method signatures that use the Optional in the parameters list, making the sub or function "overloaded" and then calling the methods of the DLL from your classic ASP page...
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
John Kuhn wrote:
if you define a function or sub with multiple parameters, and fail to pass one or more, does it error out at runtime?
Unfortunatelly it throws an error on runtime...
I have been spending 3 days to try and find a way to overcome this VBscript limitation and the only solution that is feasible is the ARRAY solution.
Thank you anyway...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
I am using geocities to host my website, they offer an HTML editor. What I am trying to do is find out what OS the user is running, and load the page accordingly. In code it would look something like this:
if the user is running Windows XP
{
Set the web page text to "You are running XP";
{
else
{
Set the web page text to "Your are not running Windows XP";
}
how would I go about doing this? Any help is appreciated
-Dev578
|
|
|
|
|
To the best of my knowledge, no. The best you can do is determine that they are running "Win32", which is exposed in JavaScript as navigator.platform :
<!-- details omitted... -->
function window_onload() {
window.alert(navigator.platform)
}
<!-- details omitted... -->
<body onload="return window_onload()">
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
U can use Server object in ASp. It will provide u full information about what O.S. is running,Ur System Configuration and other system information. So try to find out the solution by using Server Object.
|
|
|
|
|
The previous, anonymous post would be correct, assuming you have the ability to write server-side code in something (PHP,ASP,ASP.NET,etc); however, given your example, I assumed that you don't have that capability, and are limited to JavaScript.
It might be feasible to do something with a Java Applet, but of course, that only works for users of your site with Java Runtime Environment installed.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I'm at the stage where I'm testing out my form. Everything works (error validation, sending data, sending auto reply) except sometimes it doesn't want to save the values of my radio buttons and textboxes. Should I be requesting those variables a different way? Please advise. Here's the form - http://www.csudh.edu/mcnair/application.asp
Gracias,
Donna
|
|
|
|
|
Donna,
Are you saying that it doesn't retain the values of the radio buttons when you post the form, and that you cannot access the values using Request(item) or Request.Form(item) ? Or that you post the form and expect to see the values subsequent page displays?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Basically, my radio and text box values aren't kept whenever I get an error on my form. Yet, when I fill out my form completely, it works fine - goes to thank you page and sends me my data via email. I could send you my code if that helps.
|
|
|
|
|
I am assuming from the URL that you listed that you are using "classic" ASP -- ASP 2.0 or 3.0; this was one of the tragic flaws of form handling with ASP. ASP does not, by default, retain any state for the values a visitor enters in form fields on an HTML form. However, there is hope -- several folks have written things, like this one[^] that will assist with retaining the state of form controls on subsequent round trips.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Donna,
Overall, I must say you've produced very nice, clean ASP code, which is a hard thing to do, considering most people's propensity to write spaghetti ASP code...
So, only two observations:
1) To create the radio groups, both initially and on subsequent postbacks, I'd use a helper function, like this:
<%
Function WriteRadioGroup(Name, Items, selectedItem)
' By the way, I wrote this at warp speed, without actually running to check it
Dim i, strChecked
For i = 1 To UBound(Items)
If Items(i-1) = selectedItem Then
strChecked = " checked"
Else
strChecked = ""
End If
Response.Write("<input type=""radio"" name="" & Name & "" value="" & Items(i-1) & """ & strChecked & ">")
Next
End Function
%>
For this method to work, you'll have to declare arrays up top for the radio button groups:
<%
Dim aYearLevel(3)
aYearLevel(1) = "Sophomore"
aYearLevel(2) = "Junior"
aYearLevel(1) = "Senior"
%>
Then, in-line with the HTML:
<% WriteRadioGroup("sYearLevel", aYearLevel, sYearLevel) %>
That way, when the group is created, it checks to see if the value of a button in the group should be checked or not, and writes the appropriate attribute to the correct item, in this case the attribute of "checked"
On the text areas, I think all you need to do is to stick the value in between the TEXTAREA tags:
<TEXTAREA NAME="sFieldStudy" VALUE="" COLS=40 ROWS=8><% =(sFieldStudy) %></TEXTAREA>
and those values will show up on subsequent page displays as well.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
In my application, one of the form enables end user to upload files.On web server side I am doing HTTP uplad.So far so good accept since "Network Service" account does that for me on IIS 6.0 (IIS 6.0 uses this inbuilt account - for newbies).Instead inbuilt account I would like to have seperate account do that for me.So I will have one account with read/write permission that I can use for upload.Can I run one form that enables upload to run under one say windows integrated account?
Can I do <"Identity Impersonate=true Username=abcd Password =pqrs> just for single form ? Any ideas.
Does any one know if I should be concern about giving "Network Services" account Read/Modify/Write access to harddrive ?
|
|
|
|
|
You can place that form in a separate directory with a separate web.config using the impersonation for parts of the application in that directory.
It might be possible to temporarily impersonate an account, using a method outlined here[^]. If you get that to work out, let me know...
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Also, I would stick with impersonating a unique account created specifically for this purpose, or using the ASPNET worker process account and giving the account only the permission it needs, and only for a particular directory. Do not grant other accounts (Administrator, Run As Service) permission under your web application, as those kinds of accounts can be exploited, leaving your web application, your server, your network vulnerable to more kinds of attacks.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I can't seem to understand why IE 6 and Netscape 7 render a specific page of mine differently. I have an unordered list within a table division and everything looks OK except for when the list ends. In Netscape there is no extra "space" added to the end of the list whereas in IE6 it adds an extra line (blank of course) like padding.
Is this normal behavior of IE? I can get rid of it by omitting the tag but I definetely don't want to do this. Can I overcome this w/ CSS somehow?
|
|
|
|
|
I've tried and tried to do this successfully. The most I ever achieved was to set the blocking around a UL to zero at the top and zero at the bottom, but then wherever I used this, I ended up adding extra BR's and P's anyway. If someone else has a great solution to this, please let me know, too?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Have you tried to set the margin-bottom style to -20px say?...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|