Clear All Values
I need the Clear Button to clear all the fields/values that i have in one of the table in my form. Can that be done?
View RepliesI need the Clear Button to clear all the fields/values that i have in one of the table in my form. Can that be done?
View Replieshow can I clear Session("sString") on a hyperlinK?
example:
<a href="default.asp">Goto page 1</a>
the Session("sString") should be "" (blank)
I have a website that would set two cookies when a user logs in
successfully.
<%
response.cookies("login_status")="OK"
response.cookies("login_id")="12345"'This value is from database.
response.cookies("login_id").domain="mysitexyz.com"
%>
and I have a question in "removing/deleting/cleaning the cookie when
the user logs out.
From my understanding there are two methods -
#1 (I am currently using)
response.cookies("login_status")=""
response.cookies("login_id")=""
#2
response.cookies("login_status").expires=now
response.cookies("login_id").expires=now
My questions is, what's the difference, advantage and disadvantage of
these two methods?
I am asking this because I have noticed that there are some problems
in #1. In my computer (I use IE7) if I login as one user, logout, and
then login as another user, the cookie value will get mixed up.
Somehow the response.cookies("login_status") can display correctly but
response.cookies("login_id") cannot. But if I clean my browser cache,
close my IE and reopen it, both cookies work fine.
im using an array inside a do while loop. how do i clear out my array
before i run back through the loop?
how to clear the combobox by calling a function in ASP.
View Replies View RelatedWhen I submit information i post it to a page and when it’s reloaded it runs as code accordingly if I refresh it re runs the asp because the information is still posted. How do I clear the posted information? Or possibly after it runs the asp code alter a value in the posted information.
View Replies View Relatedim using the following code to loop thourgh field to prevent same value being added twice by the user in different fields, Code:
View Replies View RelatedWhen I release session objects I do this
session("username")=""
So whats the difference when I do this
set session("username")=nothing
or
session.remove("username")
Isn't I already release it with a null value?
i have a form with a textarea(the value is taken out from the database) i would like to know if it is possible to erase contents in that file and not delete it using asp or javascript? or is there a way to select all the text in that textarrea and clear it?
View Replies View RelatedHow do i clear a page of boxes and only allow the last response.write to show? And is there a way to allow the page to show for a while the response.write and then bring it to another page by a certain timing?
View Replies View RelatedIf the user want to log out from the web site, do i need to provide the any coding to clear the session?
View Replies View RelatedIs there any way I can clean the cache at the top of each web page so that users cant use the back button in explorer ?
View Replies View RelatedIs there a way that i can force a drop of all connections to a database. My problem is Access keeps locking my database, i have multiple users using this database, at different periods of the day, and i need a way to clear all connections, i.e at set points throughout the day or at request.
I do close the connection and set all record sets to nothing not sure what else i am missing?
I have a form submission page that I am using some session variables that are created on the page in order to keep track of the information that they have already inputted - so when they click submit if there are any errors the fields that are correct remain populated.However, I am wondering is there a way that if they navigate away from this one page all the session variables that are created are removed so if they come back to the page they need to re-enter the information?
Something like "on page exit - remove session("name")..." ?
I have an Access database containing 10 Tables with a lot data in each Table. I need to copy the database with no data in another directory. Is there an ASP code or object that allows me to clear data in all Table at once? How can I clear all data from Access DB?
View Replies View RelatedHow can I clear Request.ClientCertificate. When I want clear the session of my digital certificate, I cannot until I close IExplorer.
View Replies View RelatedI am worried of accumulated old cart product selections from expired browser windows or other unforseen events. I am holding selected productID's & quantities & userID & sessionID in a sql table from a shopping cart.
I allow user to clear their cart from a button and also automatically clear their cart on user logon. Also on checkout I clear their cart. I am storing selections with sessionID & UserID so they will be unique,. But does anyone reccomend any other cart selection maintenance procedure i could use,.
The back button that appears on every browser has a list that allows moving back to a specific page quickly, I'm sure you all know the one I mean. Is there a means of clearing said list? perhaps some DHTML method or the like?
View Replies View RelatedI have an image gallery in a database and I display one item at random with each refresh. I also have 2 buttons "next" and "previous" to show next or previous items in my recordset. Everything works well except for the fact that once the user has used either "next" or "previous" it leaves my query string in the url bar:
index.asp?action=previous
therefore, if I click "refresh" it continues to display either the next or previous entries instead of dislaying at random like it should.
How can I clear the query string from the url if the commend comes from the refresh button?
Is there any method to clear a form collection after a post without have to do a response.redirect? I am trying to avoid having the form re-submitted a second time on a page refresh.
View Replies View RelatedI am trying to get a thorough understanding of a code where a addition or
deletion of records can be done from a list of records. For addition part of
the form, data is being obtained from set of input boxes. Code:
Are there ways to let browser forget about the previous submitted form data?
Or prevent user from pressing F5 to submit the same form again
Or prevent user from presising back on the browser?
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 need to convert the escape values which are by mistake updated in DB.
example:
this is a sample text string
is updated in DB as
this%20is%20a%20sample%20text%20string
here %20 is the space.
like wise there are many entries for :,'
is there way that i can update all this in a update statement?
or use asp to to update the records?
I have a variable SET which has the value Of 1, 2, 3, .., N.
SET=val1, val2, val3, val4, ..., valN
What is the commend or procedure to extract individual values, val1, val2, ...
I have a non anonymous site in IIS5
The site is for collecting any kind of data from employees.
Authentication is done with the server variable "Logon_User"
Pages:
start.asp - Authentification mask appears -->
form.asp - form for data input -->
form_ack.asp - displays the data again and stores in SQL when
acknowledged in checkboxes
After data are stored I'd like to have a button such as "Log off"
which points back to start.asp.
In the samples I tried there is always the current logged in user
present even when I do a "session.abandon" or
"Session.Contents.Remove"
But how can I "reset" the current logged in user?
I have to get values from table using arrays can anyone tell me how this can be done here is my code
Code:
For i = LBound(arrCart, 2) to UBound(arrCart, 2)
Set rssubcat = Server.CreateObject("ADODB.Recordset")
strprod="select Member_Price from Products_Price where Products_Price.Product_Id= '" & arrCart(cartProduct_Id,i)"'"
rssubcat.Open strsubcat, Conn
total=rssubcat("Member_Price") * int(arrCart(cartQty, i))
subtotal=subtotal+ total
Next
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
View Replies View Relatedif 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.
View Replies View Relatedi 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..
Is this possible. I have a drop down menu.
<select name="dd1" onChange="somefunction(this)">
<option value="<%=rs("Image")%>" > <%=rs("Iname")%> </option>
</select>
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?
How can I get all the values of the previous form without having to hardcode the the names of the all the form elements? Something like:
Form Element Name: Form Element Value.