I have three asp.net textbox and button on my asp.net webform
namely textbox1, textbox2, textbox3, button1
i want if integer value of textbox2 will be substracted from textbox1 then result will be displayed in textbox3 and textbox1 and textbox2 value will remain the same ....on buttonclick event ...
MY PROBLEM :
ya i know ... how to do that .... my actually problem was that ... when i click button the text in textbox1 and textbox2 and textbox3 will be disappear ... but it want it remains the same
You need to subscribe the
Button.OnClientClick
to an event handler that does something liketextbox3.Text = (int.Parse(textbox1.Text)-int.Parse(textbox2.Text)).ToString();