Reputation: 421
currently i was working in asp.net web application . In asp page i was assign values to all controls on page load event using the Query string value. On Compiling with break point i was able to see the values in the text box and other controls.But after completing the Page load event all my assigned values for the text boxes *got lost.*
Help me to solve this issue
Upvotes: 0
Views: 613
Reputation: 136
in ASP page
<input type="hidden" id="hidtext" runat="server" value="">
in JScript
<script>
document.getElementById("hidtext").value = document.getElementById("textbox1")
.value;
</script>
after post back
textbox1.text=hidtext.value;
Upvotes: 1