Click here to Skip to main content
16,021,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form that has many textbox`s.. one of them is filled using javascript

when the clinet clicks on the submit button.. i read the value of each textbox in order to insert it to databse..

The problem is i`m getting a null value for the textbox that is filled using javascript.. Why is that and how to fix it ... thanks..
Posted

1 solution

The value of TextBoxes are not automatically posted back to the server. This is how HTTP protocol works. Use a hidden field parallelly (input type=hidden). Hidden fields are posted back automatically. You can then read the value of the hidden field from the server side.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900