By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,687 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,687 IT Pros & Developers. It's quick & easy.

handling variables between client side and server side

P: 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.
Sep 11 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 3,405

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.