kingvegeta wrote:but im not gettin that session var on content page bcuz content page loads first.
This is as per the Page Life Cycle.
kingvegeta wrote:when i clik on gridview row im creating a session variable of that employee's ID.
From what you have written, gridview is in Master Page, if so, setting of the Employee ID session would take place in Master Page Grid row click event. Though if Grid is in Content page(which general page design suggests!) you should be able to set the EmloyeeID in grid row event used in Content Page.
You have to code as per the Page Life cycle. If your grid is in Master page and you want to use a Employee ID session in Content page then you have to wait for the Master Page event to finish. You cannot get the value that is about to be set late in page execution.
Master pages should be used for replicating certain UI across pages. Search type of feature should be in Content page and thus you can set Session in content page event and thus use it accordingly to render the contents.