txtBox.text="" used in Page Load But Is Also Appied For Btn_click() Method Also
Am Using (!IsPostBack) Also in Page Load For No use
So write it in this way
protected void Page_Load(object sender, EventArgs e) { this.txtName.Text = string.Empty; }
No need to write the code in !IsNotPostback.
This will clear you TextBox for each post back but you will lose your TextBox value.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.