Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help with some logic...

Help with some logic...

Scheduled Pinned Locked Moved ASP.NET
helpquestionhtmldatabasewinforms
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pogowolf
    wrote on last edited by
    #1

    .. 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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups