Hi,
I read through this blog and it's perfectly working. I am truly
thankful.
http://www.c-sharpcorner.com/Blogs/BlogDetail.aspx?BlogId=825
Now, I put a button called btnClear so clear the textbox (where user
input some search text) and reload the grid just like it did when
first time the page loaded. I used following code but not working. I
dont any error. It still shows the searched items not the full grid. I
tried to clear the txtSearch text using this piece of code but it does
not clear the text from the searc text box. (txtSearch.Text =
string.Empty;)
protected void btnShowAll_Click(object sender, EventArgs e)
{
SqlDataSource1.FilterExpression = null;
Session["MyFilter"] = null;
}
Thanks