I have a form on which I have a INPUT Type='Reset'. On clicking this button all the fields on the form should reset except a few. Is it possible to do this by setting some property of the control or do I have to specifically write code form that?
I'm using the detailsview to perform edit and insert of new records via an object datasource.
If an error occurs on the insert, I want to preserve the data the operator tried to input, along with my error messages. Currently, it appears that the detailsview is trying to rebind after the error, to the empty/null detail item(on insert it is null), and thus I lose all the operator's input. Can someone suggest the proper way for me to achieve the persistence I'm looking for?
I am using freeaspupload to upload an image file. However, i need to grab the path that is in the text box after the client browses to the file. It looks like windows security will only give me the file name. How do i get that entire path?
i need to track the source of a page which user browses ex: aboutus.html, contactus.html in which there is a link to enquiry.php where a user fills out a form. so i need to track which page the user originally came from(aboutus.html or contactus.html)
presently i am using enquiry.php to track the previous page with the following code
i need to know what is the syntax in ASP for the above statement so that i can read the hidden value into a variable called source using Request.Form and later i can read this source variable in php
I want users to pick a file from a pool (=folder) in which they should be 'locked'. I tried using this method:
<input type="file" name="image1">
Once clicked the browse button, it takes the user to a client folder. I want to take the user to the pool on the server which has the uploaded images. Is this possible?
is it possible to define a default or start up directory with input type="file" field type? If so, is it also possible to filter by another option box selection?
I wanted to write a simple page to let me choose a directory and then list the files in it. The end goal was to make an easy way to copy all the file names in a directory. I tested with Opera7, Mozilla 1.4 and IE6 -- all on windows XP Pro
Here is the code. In all three, when I select a file, the complete path is displayed in the file input box. In Opera, reading the form field gives me the same full path. But in IE and Moz I get only the filename -- none of the path information. Code:
I'm building a system where a presenter uploads a PPT to my server and then I show it to all the participants. The problem is that most of the media in the PPT is usually linked, so I'll need to upload all that too.
Assuming I can parse the PPT and figure the exact name and location of each of the media files I need from his hard-disk, is there any way I can upload all these files automatically, without having to make the user choose each of these files manually? If that's not possible, can I atleast show the user a page with a list of input boxes of type file, pre-populated with the file-path and name of the media files I need, so that the user can just click 'Submit' without having to browse and select each of them?
Please say yes. It would be a major usability crisis if my users had to keep hitting the browse button so many times for each PPT! Especially when I know exactly what files I need and where they are! I know that this has a lot to do with browser security, but there's got to be SOME way out?
'for i = 0 to ubound(retCookies) 'Response.Write cstr(retCookies(i)) + "<BR>" 'next
%>
The 'retCookies' returns with 2 elements in the array (doing a ubound on it returns 1, so 0 and 1 are there), however, when I try to display the content, it gives me a type mismatch even though a cstr is around it.
Also, "IsArray(retCookies)" returns true, so the array is definitely coming back from the function properly.
If I copy the ASP code into a VB form (ONLY changing Server.CreateObject to just CreateObject and Response.Write to Debug.Print), everything runs just fine.
My other problem with the code that I am writing is that I cannot get the email funtion working. I eventually want it to use another SMTP server rather than running on the local machine using IIS' built in email system.
The code is very simple as follows:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Email Test" myMail.From="me@test.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a CDO email test." myMail.Send %>
This should work fine as far as I can tell, I am running win xp pro with IIS installed and SMTP service running. When I access the page though I get the following error:
<LI>Error Type: (0x8007007E) /mycal/email.asp, line 12
<LI>Browser Type: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
<LI>Page: GET /mycal/email.asp
<LI>Time: 09 March 2005, 10:26:01
CDOSYS.dll is present in the windowssystem32 directory, I can only presume it is something to do with that, but I really don't know. I tried to register the dll in regsvr32 to see if that was the problem, but it said it couldn't register it (return code 0x800704da).
I have some ASP pages on my intranet site providing a helpdesk to my users. As part of logging a helpdesk call I am prompting them to link to a file using input type="file".
The file is on a network drive and the problem is when you click on the browse button it defaults to the clients desktop as the starting point of the browsing process. I would like to set a default location to start browsing eg etwork_serverhelpdesk to avoid confusion. Does anyone know of a way to do this ?
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change the input names each time it loops. Here is the code:
I'm using serverXMLHTTP to retrieve pages, but in some cases its throwing "The connection with the server was reset" back to me, im not completly sure what the message means, when i used other variations of the the http component i get similair errors, though sometimes it pulls through (once every so many'th times)
This is the message i get when we have our application running using our own ISAPI code, it desapears when we don use the ISAPI filter, Can anyone help, It seems IIS assumes that we have a virus as stated by microsoft Message
IIS ADMIN SERVICE TERMINATED UEXPECTEDLY XTIMES EVENT ID 7031 SMTP SERVICE TERMINATED UNEXPECTEDLY XTIMES EVENT ID 7031
FTP SERVICE TERMINATED UNEXPECTEDLY XTIMES EVENT ID 7031
It only happens when we are using our own ISAPI FILTERS .
Is it possible to reset a SQL field to it's default setting? For example, someone changes FIELD1 to "John Doe" and the the default is "YOUR NAME". Can I reset it back to "YOUR NAME" somehow?
I've been trying to reset a variable from a popup window. I want to be able to provide member stats for a message board but every time I click on a different member the first members stats keep getting displayed. The variable needs to be reset after the popup window is closed but I don't really know which way to go about it. I've tried methods such as member="" and stuff like that but I've still got the same problem.
I have a search page where i have like 10 combo boxes and some radio buttons and check boxes.
Now when the page loads, i do some selection in the combo boxes and when i press reset button it clears all data in the form elements.
But when i select things in combo boxes and do a search by clicking OK button then the search results are displayed there and now if i want to clear all the form elements , i tried to click reset button, but when ever i did a search ie click ok button and after than press reset button reset button is not clearing the form elements.
Does anyone know of a way through asp code to drop a users application connection and prompt them for their credentials? I would like to offer the ability to log into the application with different NT username and password with them having to close and re-open their browser. I am using basic athentication for my application.
I created a new database using the Frontpage 2003 wizard. Everything works Fine but I would like to have the option to Delete the database (What I mean is anything that was puyt in to get rid of it.) after they are done putting in what they have to put in. Is there a way to do this I can't find one.
When a user goes through our online purchasing system and their session information gets recorded, when proceeding to our next page and then clicking the back button in their browser, the session variables are reset. Its not that the session is timing out or being forced to end when visiting the next page (or when reloading the previous page), but regardless, the variables are reset.
This is a problem because during the purchasing procedure several items from the order go missing, meaning the purchase doesn't go through properly.
Any ideas why a simple back button press in the browser by a user would cause a session to be reset?
The LDAP is located on the mainframe. I can successfully select records using some ASP (Classic) script. I choose to use ASP classic because there are very few examples I could find of using the directory services other than the MS AD.
Anywho, as I said I can select the LDAP record using a mixture of SQL and LDAP dialects but now I am at a standstill. I have been asked to create a form to reset the passwords on both the mainframe and the network at the same time.
The actual user accounts on the mainframe exist in RACF and the "field" I need to access is racfPassword, could this be accomplished via a SQL Update command using the same mix of SQL and LDAP dialects?
i use nt user authentication on our iis 5.0 webserver. user get a login popup for username/password when they connect to the website. i also use session handling which works fine. the session ends when the user uses my logoff process.
but unfortunately, the remote_user server variable is still filled with the username. so the user can just call the website again and he does not get the username/passwort pop up. is there a possibility to empty/reset/destroy the remote_user servervariable (maybe on client side, cookie)?
My website uses cookies to persist a certain amount of data on the client. However, occasionally the cookies will disappear or be set to an empty string for no discernable reason. It does not happen in our development environment at all, but does happen in our production environment. We looked at all the likely settings and they were identical on both the production and live servers.
We set the cookie domain properly and the cookie path.
Has anyone seen similar behavior? And if so, what did you do about it? What IIS settings should I be looking at? Could it be a service pack that was installed on one machine but not another?