ASP.NET WebPart Problem with sample from chapter7, Ms Press ASP.NET 2.0 Step By Step

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrzej J. Turowicz

    #1

    ASP.NET WebPart Problem with sample from chapter7, Ms Press ASP.NET 2.0 Step By Step

    I create new WebSite named UseWebPart ( sample from Ms Press Book)

    next steps:
    Add WebPartManagerI O , WebPartZone, EditorZone & CatalogZone, etc etc etc

    if i am running this sample under VisualStudio 2005 IDE all modes ( Browse,
    Design, Edit, Catalog )
    are operational.

    Next step, configure WebSita (Users from Lan, anonymous)
    and Publish Web Site
    Now im closed IDE VisualStudio

    configure IIS:
    create in default web site , create application and configure to use asp
    2.0.50727

    Restart IIS

    in IE Browser address
    http://localhost/notki/ ( Notki it is a folder C:\Inetpub\wwwr oot\Notki
    with My App)

    Only BrowseDisplayMo de i have to use :( & ???

    This code reports it.

    Dim _wpManager As WebPartManager

    Me._wpManager = WebPartManager. GetCurrentWebPa rtManager(Me)

    For Each mode As WebPartDisplayM ode In _wpManager.Supp ortedDisplayMod es

    Dim modeName As String = mode.Name

    Console.Write(m odeName)





    I'm novice in ASP2 .Net

    Please Help me ... .... ....



    Best regards

    Andy



  • DWS

    #2
    RE: ASP.NET WebPart Problem with sample from chapter7, Ms Press ASP.N

    _wpManager = WebPartManager. GetCurrentWebPa rtManager(page)
    For Each mode As WebPartDisplayM ode In _wpManager.Supp ortedDisplayMod es

    Dim modeName As String = mode.Name

    ' Console.Write(m odeName)
    'you can't use console in webpage try
    repsponse.write (modename)
    'or bind it to a dropdown or something cool like that.

    next
    Good Luck
    DWS



    "Andrzej J. Turowicz" wrote:
    [color=blue]
    > I create new WebSite named UseWebPart ( sample from Ms Press Book)
    >
    > next steps:
    > Add WebPartManagerI O , WebPartZone, EditorZone & CatalogZone, etc etc etc
    >
    > if i am running this sample under VisualStudio 2005 IDE all modes ( Browse,
    > Design, Edit, Catalog )
    > are operational.
    >
    > Next step, configure WebSita (Users from Lan, anonymous)
    > and Publish Web Site
    > Now im closed IDE VisualStudio
    >
    > configure IIS:
    > create in default web site , create application and configure to use asp
    > 2.0.50727
    >
    > Restart IIS
    >
    > in IE Browser address
    > http://localhost/notki/ ( Notki it is a folder C:\Inetpub\wwwr oot\Notki
    > with My App)
    >
    > Only BrowseDisplayMo de i have to use :( & ???
    >
    > This code reports it.
    >
    > Dim _wpManager As WebPartManager
    >
    > Me._wpManager = WebPartManager. GetCurrentWebPa rtManager(Me)
    >
    > For Each mode As WebPartDisplayM ode In _wpManager.Supp ortedDisplayMod es
    >
    > Dim modeName As String = mode.Name
    >
    > Console.Write(m odeName)
    >
    >
    >
    >
    >
    > I'm novice in ASP2 .Net
    >
    > Please Help me ... .... ....
    >
    >
    >
    > Best regards
    >
    > Andy
    >
    >
    >
    >[/color]

    Comment

    Working...