I'm a (moderate) newbie to and I'm building an ASP/VB db-driven site where the user selects a brand from a menu, this determines the contents for another menu with models. Selecting a model displays details about that model. Nothing too original here Its a small low traffic site with no ecommerce elements - just window shopping.
My questions is : I need to know on all pages what the current brand and model are (and modify these when the user changes them).
From what I understand there are 3 (?) methods: server vars, session vars or hidden fields. Which should I use for this purpose and can anyone point me to some good related examples/tutorials? (I've read the stuff on this site of course).
I have a logon field. When data is entered, the user is taken to a protected page. The problem/question is: Whe you click the back button and return to the logon page,the user data is still in the field. I want it cleared when the user returns to the logon page.How should I approach this problem. Java?
Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the webserver (therefore do not intend to use the session object- as you cannot gaurantee which server the user will go to). I want to store a small value (e.g. a Y/N value or an Id) on the client machine for the duration of their browsing session, hence I want to use a non persistent cookie (in client memory) not a persistent cookie that will be written to disk.
Q. Therefore if I create a non persistent cookie (i.e. it resides in the client browsers memory) and set this when the user was on webserver A, can I read the value server side on subsequent requests even if the user is redirected back to webserver B? As the webservers are part of the same domain name Im assuming I can..?
Q. Using non persistent cookies (in client in memory) im assuming the session Id that gets created has no use, as I am using client side storage, hence it is worth disabling this on the webserver for performance reasons?
Q. Is there anyway using non persistent cookies that a user can see the values of this cookie client side, are their any downloadable tools for example they can run?
Im aware of the issues with size of using cookies and users can disable them, my question is more related to using them in a web farm. Im also not intended in the short term to upgrade to asp.net as Im aware there are alternatives for state storage in this. Hope someone can clarify these points for me. Note: I see many articles talking about cookies but none relating to web farms, those that do talk solely about the session object (Server side), none really go further to talk about (non persistent / persistent cookie usage with web farms client side.
Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the webserver (therefore do not intend to use the session object- as you cannot gaurantee which server the user will go to). I want to store a small value (e.g. a Y/N value or an Id) on the client machine for the duration of their browsing session, hence I want to use a non persistent cookie (in client memory) not a persistent cookie that will be written to disk as a file.
Q. Therefore if I create a non persistent cookie (i.e. it resides in the client browsers memory) and set this when the user was on webserver A, can I read the value server side on subsequent requests even if the user is redirected back to webserver B? As the webservers are part of the same domain name Im assuming I can..?
Q. Using non persistent cookies (in client in memory) im assuming the session Id that gets created by IIS has no use, as I am using client side storage, hence it is worth disabling this on the webserver for performance reasons?
Q. Is there a way, when using non persistent cookies that the client user can see the values of this cookie client side, are their any downloadable tools for example they can run?
Im aware of the issues with size of using cookies and users can disable them, my question is more related to using them in a web farm. Im also not intended in the short term to upgrade to asp.net as Im aware there are alternatives for state storage in this. I hope someone can clarify these points for me. Note: I see many articles talking about cookies but none relating to web farms and cookies, those that do talk solely about the session object (Server side), none really go further to talk about (non persistent / persistent cookie usage with web farms client side.
In my event log on my IIS 6.0 Windows 2003 Server I get the following Active Server Pages Error
Error: The Template Persistent Cache initialization failed for Application Pool 'DefaultAppPool' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:
To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
I have a main data entry form which has a link to a detailed data entry form. The value of the link in the main form is the sum total of all the line items in the detailed form. The detailed form has fields to capture the individual line items like contracted service expense, travel expense etc. I am capturing the total of individual line items using session variables so that when the values of the main form is saved these total of line item values get saved. However, if one gets to the mainform via login and tries to resave the values (which is already saved), the above session variables (from the detailed form that contains the sum of line items) get null values. However, just navigating to the detailed form through the link and coming back to the main form sets the value in the session variables.My question is how to get the session variable values without having to go to the detailed form and come back to the main
if it is possable in ASP i could store a value in one ASP page and look at it on anouther ASP page. for example:
On a login page i want that page to store a value called rights that is a number. when it goes to any of the other pages EG add user, Delete users if the user does not have the needed rights to takes it back to the main screen.
I wish to get and set values on child controls on a formview.For example. Changing the text in textbox. Hiding or unhiding child controls based on user. Replacing a blank with a default or calculated value that will need to be generated at runtime.It seems as though this should be thoroughly documented, but I'm not finding much.
i need to know if i have a loop that outputs values for each month how do i get it to add the values and only display them every 3 months,(every quarter)?
jan 123 feb 234 mar 432 first Q 789<---------how do i do this? Apr 125 may 548 jun 323 second Q So on..
I need to use the value=rs("image") in a javascript function, but i need the selected value of rs("iname") in an ASP array. Request.form("dd1") will always give me the value of rs("image"). Is there any way around this?
Using a query statement, I am trying to add values into the textbox of an ASP page to enable users to edit it. But it only displays the first word of the record. The rest of it gets chopped off. Code:
<P>Company Name:<INPUT NAME ="CompanyName" style="WIDTH: 371px; HEIGHT: 22px" size=47 Value=<%=objRec.Fields("company_name")%>></P>
The value in the textbox only shows R1 when the value in the SQL database is R1 International Pte Ltd. The datatype in SQL is char if it makes any diff.
I am facing with a problem of getting Drop Down Values. How do I get Drop Down Values in a array.e.g,
On Submit, I hv to display records based on similar MergeIDs, Like, e.g for MergeID - 1001 i have 2 records in database So I will hv to display those two rows in a concatened form. But these two records hv different IDs.
ASP Display DropDown MergeID Username Task ID 3 1001 Ashish,Kamal Design,Test 21,22 5 1002 Sunil,Anil Data,Design 25,26
Now, when I Select 3 and 5 in drop down,I want that for MergeID it should show DD value as 3 and for MergeID 1002 as 5.I am not getting that.I am able to get IDs 21,22 in an array.
Dim ix For ix = 1 to Request.Form.Count fieldName = Request.Form.Key(ix) fieldValue = Request.Form.Item(ix) Response.Write fieldName Response.Write fieldValue & Next Response.End
It is not returning the results of any field on the previous form page. Does anyone know what I might look for?
I have a form which the user fills and submits.i have insert statement there. When i submit the form to itself ,the values get submitted and inserted in DB easily.
How is it possible to execute an exe from asp and get a returned string (no http headers in exe) ?
To run exe I use : <% cmdExe = sPath & "cgi-bin equest.exe" Set WshShell = Server.CreateObject("WScript.Shell") sResult = WshShell.Run(cmdExe, 1, True) Set WshShell = Nothing
Response.write sResult %>
sResult always content "0" and not the string returned by exe file (something like "!!-1!blabla!blablablabla!")
- How is it possible to get the exe returned value ? - Is there a solution with asp.net ?
I'm trying to determine if I can use transactions in my ASP applciation against one of our Oracle 9i databases. My WROX manual says I can do this if the Transaction DDL property of my connection object is equal to 8. I've checked my connection properties with the following script and determined that my Transaction DDL property is 2
'============================================ Set conn = Server.CreateObject("ADODB.Connection" conn.open Session("PROVIDER")
For Each Item In Conn.Propertie response.write Item.Name & " = " & Item & "<br> Nex '============================================
But what is 2? MSDN (http://msdn.microsoft.com/library/d...oprg04_83jt.asp) says there are a number of possible vaues for Transaction DDL such as
I have a submit form that collects my values, and if my form action is "mailto" the values are passed, but if I try to pass to another asp page the values aren't sent and the asp doesn't execute.
I've created a web form with multiple textfields for acquiring somes date of birth (i.e. textbox for DD, textbox for MM, textbox for YYYY), now what I'm trying to do is grab the values from these objects and combine into 1 session variable, which later on is inserted into an ACCESS database.How do I append these values together to be one value in a session variable (i.e 23122004). I have a input mask inside the ACCESS database, so it needs to go in this format. I assume once I have captured these 3 fields, I need to convert them to integer, and then merge?
How to store form's textbox values in VBScript variables? I tried something similar likr this: Dim myVariable myVariable=Document.myFormname.myFieldName.Value
i want some help in how to retrieve values from multiple selection listbox. i want the values retrived to be used in the search which i perform from the database. i m doing a search feature which u all often see in job search sites. so someone selects multiple cities to search in i want that to include that in my search query.
I have a form that send values to a second page. i m trying to compare the values received from the form with other values retrieved from a database. so if a value already exists then an error message is displayed. in order to compare the values i need to print them on the second page but I m bit stuck with this. i used request.form("category") in order to retrieve the values from the form but it doesn t work.