473,395 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Jan 26 '06 #1
1 1403
DWS
_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

"Andrzej J. Turowicz" wrote:
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

Jan 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: mrDumbass | last post by:
#include <iostream> #include <algorithm> #include <string> #include <fstream> using namespace std; /* i would like to keep the numbers of the output : Power , step etc, on the same place...
0
by: Joe L via .NET 247 | last post by:
I have written a web part. The webpart calls a web service toget info. I ran into problems with the webservice notresponding. We decided to have a cutoff for the time to waitfor a response from...
0
by: J. Jespersen | last post by:
Hi people, I fiddling with webparts, and have created my own custom webpart from scratch. The webpart itself is contained in a myPart.dll I have two different sites. SiteA and SiteB. Both are...
2
by: Parag C Mehta | last post by:
Hi, We are exploring the new possiblities in ASP.NET v2.0. I want to have a page, in this page I have one WebPartManager 3 zones and I want to dynamically add WebParts to 3 zones. I chose...
3
by: DexHex | last post by:
Hi, I am stumpt. Is there anyway to set the background image on a webpart title?
5
by: Paal Berggreen | last post by:
I am involved with development of a Portal solution using ASP.NET 2.0 and WebParts. The WebParts framework use the default personalization providers, and the personalization data thus ends up in...
3
by: Jav | last post by:
I create a UserControl (.ascx), and then change it in code to: Inherits System.Web.UI.WebControls.WebParts.WebPart expecting that it will now be treated as a WebPart. But this immediately...
2
by: MrCrool | last post by:
Hi I am trying to develop WebParts that will interact with each other to make up a highly customizable "system", but I am having trouble with the order in which the webparts connect and...
2
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.