Sorry about the long subject didnt really understand what to put in.
I have a masterpage and two content pages for this master.
THe master page has a dynamic menu that get generated at page_PreInit
The menu are in form of linkbutton. then you click a menubutton its calls sub called GetContent. this sub queryies the database to get the contents and displays them in a Literal control on content page 1.
When the use clicks the menu item 3, i have a server.transfer to contactus.aspx page, if all works fine till here, but from contactus.aspx page when i select the another menu item it though Null reference expection to the literal control
Dim myLiteral As Literal = Me.mainContent.FindControl("pageContent")
myLiteral.Text = myDataSet.Tables(0).Rows(0).Item(0).ToString
Any ideas on how will i refer back to contentpage1 after doing a server.transfer to contactus.aspx?
I would ideally like to store my contact us page int he database as well, btu dont really know if will be possiblet o have button click event fire in code behind when before its generated.!!!