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

  • Thread starter Andrzej J. Turowicz
  • Start date

A

Andrzej J. Turowicz

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

next steps:
Add WebPartManagerIO , 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\wwwroot\Notki
with My App)

Only BrowseDisplayMode i have to use :( & ???

This code reports it.

Dim _wpManager As WebPartManager

Me._wpManager = WebPartManager.GetCurrentWebPartManager(Me)

For Each mode As WebPartDisplayMode In _wpManager.SupportedDisplayModes

Dim modeName As String = mode.Name

Console.Write(modeName)





I'm novice in ASP2 .Net

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



Best regards

Andy
 
Ad

Advertisements

G

Guest

_wpManager = WebPartManager.GetCurrentWebPartManager(page)
For Each mode As WebPartDisplayMode In _wpManager.SupportedDisplayModes

Dim modeName As String = mode.Name

' Console.Write(modeName)
'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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top