0

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.

2
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by Akash Saikia
0

So 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 please put some source code,so that some one can understand what is happening wrong.
:)

Edited by Akash Saikia: Added code

0

Thank You Akash for your help.I'm now getting the results I wanted.
This thread is marked Solved

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.