private void DataSave(DataTable Dt)
{
if (!(ViewState["__Data"]==null))
{
ViewState["__Data"] = Dt;
}
else
{
ViewState.Add("__Data", Dt);
}
}
public bool DataExists()
{
if(!(ViewState["__Data"]==null))
return true;
else
return false;
}
private DataTable DataRetrieve()
{
DataTable Dt ;
if ((ViewState["__Data"] == null))
{
return datb;
}
else
{
Dt = ((DataTable)(ViewState["__Data"]));
return Dt;
}
}
No comments:
Post a Comment