472,129 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,129 software developers and data experts.

handling variables between client side and server side

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.
Sep 11 '07 #1
1 1478
3,406 Expert 2GB

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.

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.