Specify page for WebParts to load for

Discussion in 'ASP .Net' started by nothingsoriginalontheinternet@gmail.com, Sep 29, 2007.

  1. Guest

    Hi. I'd like to set up a folder full of "imaginary" pages that users
    can modify with WebParts. My plan was to do this in Global.asax:

    Sub Application_BeginRequest(...)
    If Request.Path.StartsWith("/whatever/") Then
    Server.Transfer("/whatever/ImaginaryPage.aspx", True)
    End If
    End Sub

    And then set up /whatever/ImaginaryPage.aspx with the usual
    WebPartZones and such. I hoped that the WebPartManager or the Web
    Parts related objects would allow me to choose the page for which the
    data is loaded so that I can specify the imaginary page's name and it
    would load for that rather than the same data for all of them as
    ImaginaryPage.aspx. I researched that on MSDN and I can't find any way
    to do it without extending a class or two relating to Web Parts
    Personalization.

    Anyone know of an easier way to do it?

    -Mike Placentra II
    , Sep 29, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. venky

    Page Load and webcontrol page load

    venky, Jul 6, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,077
    venky
    Jul 11, 2005
  2. Replies:
    1
    Views:
    1,454
  3. Jude
    Replies:
    0
    Views:
    256
  4. Matcon
    Replies:
    3
    Views:
    21,527
    Matcon
    May 28, 2008
  5. Larry Woods
    Replies:
    16
    Views:
    338
    Aaron [SQL Server MVP]
    Jul 11, 2004
Loading...

Share This Page