c# - Issue in getting the textbox value -


In the code below I have a text box that is kept false view and its Default value 0 . When I first click on the button, it accepts 0 and next time it is empty 0 value has not been taken for the next time. Please help me do this.

  & lt; Asp: UpdateProgress ID = "UpdateProgress2" AssociatedUpdatePanelID = "productPanel" runat = "server" & gt; & Lt; ProgressTemplate & gt; Loading details ... Please wait & lt; / Progress icon & gt; & Lt; / ASP: UpdateProgress & gt; & Lt; Asp: UpdatePanel id = "productPanel" runat = "server" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: text box id = "txtUnusableLoss" text = "0" runat = "server" view = "wrong" style = "width: 70%" onkeypress = "return number (incident, false);" & Gt; & Lt; / ASP: text box & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; Secure Zero btnSubmit_Click (Object Sender, EventArgs E) {string val = txtUnusableLoss.Text.ToString (); }  


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -