| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Add parameter to URL
<HTML>
<HEAD></HEAD> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- function Validator(lURL) { var oform = document.form1 var qsparm = oform.TB1.value if (qsparm == "") { alert("You must provide a value") oform.TB1.focus() return false } document.location.href = lURL + "?" + escape(qsparm) return false } //--> </SCRIPT> <BODY> <FORM NAME="form1"> <STRONG> QueryString Parameter: <INPUT TYPE="TEXT" NAME="TB1"> </STRONG> <BR><BR> <A HREF="" onClick="return Validator('YourURL.asp')">Click me to continue </A> </FORM> </BODY> </HTML> |
|
#2
|
|||
|
|||
|
follow-up question
great post! i have one follow-up question after implementing this, i get a double page_load and on the second page load around, i lose the url with the parameter's i'm sending.
i've tried AutoEventWireup="true" and AutoEventWireup="false" but when false i can't get the page load to work. how do i either stop the double page load or somehow keep the parameters. :confused: I'm a newbie and know i'm doing something fundamentally wrong. |
|
#3
|
||||
|
||||
|
Can you post the code you are using?
__________________
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Add parameter to URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|