How to Call javascript function before running server side code.?
-
Hi all, I have write a JavaScript function and calling the function on body load event, in that function i am assigning a value to hidden field control. On Page behind i am need to use the hidden filed value in a function so i am accessing the field value but each and every time i am getting the value as "" (blank) because first the server side code execute and after that the JavaScript code execute. I want to run the JavaScript function before running server side code so that i can get the hidden field value. Please help me to solve the problem? Thanks
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
-
Hi all, I have write a JavaScript function and calling the function on body load event, in that function i am assigning a value to hidden field control. On Page behind i am need to use the hidden filed value in a function so i am accessing the field value but each and every time i am getting the value as "" (blank) because first the server side code execute and after that the JavaScript code execute. I want to run the JavaScript function before running server side code so that i can get the hidden field value. Please help me to solve the problem? Thanks
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Why are you assigning the value on body on load event?
Cheers!! Brij Check My Latest Article
-
Why are you assigning the value on body on load event?
Cheers!! Brij Check My Latest Article
Because, On load event i am passing this value to a function and by using the value i am retrieving data from my db. Thanks
People Laugh on me Because i am Different but i Laugh on them Because they all are same.