469,323 Members | 1,522 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

handling variables between client side and server side

38
I have a form, where new text boxes are generated by onclick event of a button. The function required to generate text boxes is written in Java Script. but i have to count no of text boxes generated, which can be counted only in java script. and i have to use that number in server side, this to work i wrote within script tag <script runat="server">. now i can read the variable ,( which is in client side ), in server side, but the code related to generate text box is now not working, its giving an error, object required.

please find a solution for that.

looking forward to hear from ur side.
Nudrat
Sep 11 '07 #1
1 1394
jhardman
3,406 Expert 2GB
Nudrat,

Everything that runs on server side runs before the page is sent to the user. After the browser gets the page and begins to interact with it (by clicking buttons for example) only the client-side script is running and no information is sent back to the server unless you specifically refresh the page or link to a new page. I hope this explains why you can't do what you are trying to do. Perhaps if you explained in more details we would be able to suggest alternatives.

Jared
Sep 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Robert Oschler | last post: by
2 posts views Thread by Bonj | last post: by
2 posts views Thread by Natalia DeBow | last post: by
12 posts views Thread by scsharma | last post: by
1 post views Thread by Jialiang Ge [MSFT] | last post: by
37 posts views Thread by Sweetiecakes | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.