Author: just_life | Posted on: 7/30/2009 5:56:27 AM | Views : 396

I have a aspx page(say question1.aspx) in which I have menu buttons on the left and right and content in the middle.
Now, the left menu is rendered by using an #include inside question.aspx and calls another page(say left_menu.aspx) which has a series of if,then else statements and depending on certain session variables, the menu shows buttons with either a check mark or just a plain button.
Ideally, on page load of left_menu.aspx , I need to perform a database call...retrieve some values and then assign these values to session variables.Depending on the contents of the session variables, I could show the desired menu buttons.
The problem here is that, since am using #include to call left_menu.aspx, I cannot use a @page directive inside left_menu.aspx, since only a single @page can be used and it is already used at the calling question1.aspx
I could call the function on page load of my main question1. ...

Go to the complete details ...