I have Asp.net text box in < div> tag which after click on \"btnReply\",< div> showes by Jquery Dialog, so user write idea at text box and click \"Send\" button (jquer
Use hidden field value to store the textbox value
var Des = $("#txtDesc").val();
$("#hid").val(Des);
hid is the id of hidden field.
After a lot of search i understand to have some reasons :
I can solved it **Jquery UI Dialog need z-index style ** . i mean :
<style>
.ui-widget-overlay
{
z-index:0;
}
</style>
And need jquery :
$("#..").dialog(.....).parent().parent().appendTo($("form:first"));
It's been a while since I used UpdatePanels, but I believe that on partial postback they only send updated values for controls inside them. So move the TextBox inside the UpdatePanel, or perhaps use Javascript to populate a hidden control inside the UpdatePanel with the contexts of the TextBox whenever it is updated.item
To get the values of the inputs in the code behind and access them through the server controls mechanism (textBox.Text), their state (and presence) needs to be persisted in the ViewState. Since you are building them with javascript, their state is not persisted, the only way you can get their values is using the Request.Form collection.
This issue said best tips : jQuery Dialog-Postback but UpdatePanel doesn't get updated**
For disable controls is best issue : Retrieving the value of a asp:TextBox