Hello everyone,
I have a TextBox and a Button on my webpage. On Page Load I'm displaying the contents of a TextFile(with multiple lines)on the TextBox.Then I'm editing the TextBox.Then On ButtonClick ,I debug it and check the TextBox value.The value shown is:The value last edited on textbox appended with the intial Values of the TextBox.
Why it is happening so?? I dont want this. Please any help me..The TextBox value on buttonclick should only be the last edited value on it.
genext.brite
-4
Newbie Poster
Recommended Answers
Jump to PostSo what code have you written in your page load event?
And instead of putting in openly,put it in this way..
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //write here if needed } } }
And …
All 5 Replies
Akash Saikia
9
Junior Poster
genext.brite
-4
Newbie Poster
Akash Saikia
9
Junior Poster
genext.brite
-4
Newbie Poster
Akash Saikia
9
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.