L
luke
Hi there,
Can anyone tell me a way to pass parameters from java script to ASP.net
(VB.net)?
Thanks
Can anyone tell me a way to pass parameters from java script to ASP.net
(VB.net)?
Thanks
Can anyone tell me a way to pass parameters from java script to ASP.net
Hi there,
Can anyone tell me a way to pass parameters from java script to ASP.net
(VB.net)?
Przemek said:luke napisa³(a):
Sure
You have few options:
1) pass it as parameter in url while redirecting with location.replace()
2) pass it as field in form (most likely hidden field)
3) pass it in cookie which is modified from js.
In the application's html, the code is:
<SCRIPT language="JAVASCRIPT" .....
.........
function update_temperature(x, y) {
document.Form1.txtTemperatureX.value= x;
document.Form1.txtTemperatureY.value= y;
}
.......
I can pass the values to txtTemperatureX and Y (only visible) in server
section, however when I click on one button which suppose to pick up the
value of txtTemperatureX and Y, but it is not at all,. Simply not updating
the page and change the old value from txtTemperatureX and Y.
If any help would be appreciated.
I did use the approach as you said, however it seems the java script in
html didn't refresh the page at all, or somehow it postback to the old
value but it visually looks like the new value has been changed.