|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing values from clientside to serverside
<i><b>Originally posted by : Jonathan (jonathan.6.smith@bt.com)</b></i><br />i have an ASP which prompts the user to insert details into a form. once the form is filled in the user presses a button and the details are inserted into a an array (no URL redirection). the user then has the opportunity to insert another record (upto 25 records max). what i want is to validate one of the text box values with a database table. I want to perform this validation when the user clicks the button before the value is inserted to the array. if the value entered in the text box is present in the database the value is entered into the array, if the value is NOT in the database i would like to output a prompt. To do this i CAN perform the database search, I was WANTING to know how to call the ASP(server side) when a HTML(client side) button is clicked WITHOUT using a form AND how to get the textbox value(client side) to insert into a SQL query(server side)<br /><br />ie. <br />client side HTML button is pressed & client side HTML value passed to -> ASP server side record set to check in the database - without reloading the page or using forms<br /><br />I would be very greatful for any assistance<br /><br />thanks<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : zack (zack_attack190@yahoo.com)</b></i><br />To do what you are asking for you need to use <br />Remote Scripting in ASP. It has some over head and<br />it will slow things down a bit it also requires<br />extra coding.<br /><br />If you go to MSDN and search for Remote Scripting<br />you will find what you need. Most examples are in JavaScript, but it can be done in VBScript as well.<br /><br />Debugging is not straight forward, so you should test the page that holds the server side script,<br />before you try to call it from the client. <br /><br />Good Luck,<br />Zack
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > passing values from clientside to serverside |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|