Hi,
Me working on a page, where i would get certain details of an employee during the page load (!ISPostback) and store it in a object library.
My Page_Load looks like this 1 below:
objleave = new OBJLeave();
if
(!Page.IsPostBack)
{
getptoleave();
getHolidays();
getRprtngto();
}
//Giving the code of getRprtngto() method
private void getRprtngto()
{
objleave.reportingtomailid = objbcleave.bcrprtngmailid(objleave);
string chkString = objleave.reportingtomailid;
lblSupvrsrid.Text = (
string) objleave.reportingtomailid;
}
objbcleave - will go to my business from where i call in my db, and then populate the data and give it back to my business from there would get in my application layer.
After a postback of the page, (the user choosing a leave / entering the from date), the value in that is stored in the object gets vanished...(objleave.reportingtomailid becomes null). Do let me know would the value get vanished on a postback.
But to my amusement the same code which i lended to my colleague works fine... :)
Hope i'm clear with my requirement, if not do let me know.