Help with some logic...
-
.. God my Signature is perfect for how I'm feeling at the moment.. LOL Anyway.. here goes with the backstory... what I have is a project that is using a Master Template in order to create the primary layout of the site.. Each ContentContainer in the Master is calling one User Control (Wrapper.ascx) The Wrapper user control calls another User control, wraps it's output in HTML and sends all of that back to the master. the code looks like this:
'// Load the User control Dim Motd As UserControl = LoadControl("~/SiteControls/Wrapper.ascx") '// Strong type it, and set the properity to which page to render CType(Motd, SiteControls_Wrapper).RenderPage = "Motd" '// Add the control to section of the website. MiddleColumn.Controls.Add(Motd) '// clean up Motd = Nothing Dim Whatsnew As UserControl = Page.LoadControl("~/SiteControls/Wrapper.ascx") CType(Whatsnew, SiteControls_Wrapper).RenderPage = "WhatsNew" MiddleColumn.Controls.Add(Whatsnew) Whatsnew = Nothing
From here the Wrapper is called, which does a case select by the 'renderpage' properity:... Case "motd" '// Message of the day. '// Load the User Control Dim motd As Object = Page.LoadControl("~/SiteControls/MOTD.ascx") '// Get the title text and set it to the Wrapper Label Me.Title.Text = motd.pageTitle() '// add the control to the wrapper 'data' area Me.Data.Controls.Add(motd) '// Clean up motd = Nothing Case "whatsnew" '// What's new? Dim WhatsNew As Object = Page.LoadControl("~/SiteControls/Whatsnew.ascx") Me.Title.Text = WhatsNew.pageTitle() Me.Data.Controls.Add(WhatsNew) WhatsNew = Nothing
Which all seems to work correctly sometimes.. the problem I'm running into is lets say I want change pages. which is nothing more then changing the 'page' on the Query String. but what if I want to change a page AFTER some work is completed? so this question breaks down into two parts.. 1) As an example, one of the User Controls is my Login. Once a user logs in the system removes the login panel from the page. What I want it to do afterwards is refresh the whole page, so that site is updated to reflect the changes. however, all I REALLY need/want it to do is to refresh just the 'RightColumn' content control.. is there anyway to just 'refresh' that one control? 2) After the user is logged in, the menu displays a 'log off' link which , once pressed, sets the QueryString to 'Logoff', which then kills the cookies/session for the user in the system. Howeve