How does one retain the value of a drop-down box when the form is re-loaded after a verification routine?
I have a dropdown box:
<select name="shiurFreq" size="1" tabindex="8" onchange="if(this.selectedIndex == 1)
{document.Frontpage_form1.shiurDateText.style.display='inline'...
I wish to convert 3 numbers (for example, 10, 5, 2004) to a date and then subtract that date from today's date.
I tried writing something like this
enteredDate = cInt(Request.Form("smonth")) & "/" & cInt(Request.Form("sday")) & "/" & cInt(Request.Form("syear"))
response.write date -...
Guys, please help a beginner! I can't find where I'm going wrong. I have the following dropdown box:
<select name="mLast" size="1" tabindex="8">
<option selected>Any Speaker</option>
<%=SF_GetSpeakerSELECT(Request.Form("mLast"))%>
</select>
This is populated by the following code...
When trying to insert a record into an Access database, I get the following error message:
strSQL:INSERT INTO shiur (username,slanguage,shiurFor,shiurType,sTitle,mTitle,mFirst,mLast,shiurFreq,date,time,sduration,venue,city,contact,comments,add_date,status) VALUES('smith',2,1,3,'Something...
When the user submits the page, a validation routine is run. If there is an error, the page refreshes WITH all the previously entered data.
Thus, if he selected "10 mins", but the validation routine finds an error on some other entered data, then the refresh screen should still show "10 mins
Where in the code for a Drop-Down Box, does one place the ASP code for a cookie?
When I place it as shown below, I get an error message.
<select size="1" name="sDuration">
<option selected>Duration</option>
<option>05 min</option>
<option>10 min</option>...
Is there a way to ensure (and verify) that a viewer inputs the correct time - hours and minutes - WITHOUT having to put drop-down boxes on my page.
I could place two drop-down boxes on the page (one for the hours and one for the minutes), but ideally, I would like to see just an Input Box with...
I have an OPTION Box and an INPUT Box. When someone chooses as specific OPTION, then the INPUT Box must become visible, otherwise it must remain hidden.
I've tried the code below, but it doesn't work. Any advice?
<select name="Style">
<option selected>--Select Style--</option>...
I have a popup window that currently works for a specific 'surname' entry.
<a href="javascript:popup('send_email.asp?surname=<%=rsUsers("surname")%>',360,400,'no')">Send EMail</a>
My problem is how to write the same code using a surname AND first name. I seem to be having problems with the...
Is it possible to upload a single ACCESS table that resides on my local computer, and insert it into an ACCESS file that resides on a Web server?
NOTE: I don't want to upload the entire ACCESS file (which is over 50 mb in size). I just want to upload a smaller table.
If this is possible...
I'm using the simple code below to verify an email address. However, the line that reads
If InStr(1, email, ".", 1) < 4 Then
returns emailOK = 1.
Is there a syntax problem? Seeing that I am looking for the character "." I am not sure if the 'compare' parameter of inStr() be 1 (textual...
I have an include file with the following variables:
name1 = "Tom"
name2 = "Dick"
name3 = "Harry"
etc....
I now want a drop down box to include these names as options. Can't seem to get the syntax right for the Drop-Down box.
Can one use a variable in the Server.MapPath definition? And if so, what would the correct syntax be?
I have a line of code that reads:
strDBPath = Server.MapPath("..\..\db\masterdb.mdb")
I want to use a variable for the db file name eg:
currentDb = masterdb.mdb
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.