Consider the code
public partial class Classname: somethng
{
bClass objClass = new bClass();
Boolean isfindclicked=false;
protected void Page_Load(object sender, EventArgs e)
{
//rowid = 0;
if (!IsPostBack)
{......
...
}
}
protected void btnFind_Click(object sender, EventArgs e)
{
isfindclicked=true;
}
On a button click,certain operations are performed if the isfindclicked value is true.But once the button is clicked the page is reloaded and the value of isfindclicked sets to false.So the fn inside the buttn clicked is not executed...
So any way to make the varible isfindcliked not updated during page postbacks..I ave tried with Session,it worked..but is there any other way out in not updating the isfindclicked value during page reloads...?