473,698 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Jan 29 '06 #2

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

Similar topics

16
3981
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 in the console. But this isnt going to work with
0
3578
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 the web service. I am setting the Timeouton the webservice proxy before calling the webservice method. Iam not getting the results I expected. Below is the code andthe exception I get. ... Results results = null; try { MyWebService mws =...
0
1204
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 webparts-based. I have added the webpart to my toolbox, and added it to a declarativeCatalogPart, and finally added the webpart to a webPartZone. No problemo. I have allowed the webpart for export, and have exported it to a
2
1396
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 Page_InitComplete event (as explained in PDC 05) to load UserControls dynamically into WebParts and Add it to Manager.
3
4738
by: DexHex | last post by:
Hi, I am stumpt. Is there anyway to set the background image on a webpart title?
5
1767
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 the aspnetdb database (which we have placed on a proper SQL Server, not SQL Server Express). Everything works like a charm, with the following exception: New users in the system have to press links or buttons twice upon their first logon to...
3
1727
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 generates 2 errors. How does one go about creating a WebPart by inheriting as above? (I know that I can drag a UserControl into a WebPartZone and it will be wrapped in a GenericWebPart.) Thanks Jav
2
1355
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 communicate. If you have a WebPart that is both consumer and provider it is most likely the "middle" component in your communication: It receives a value from it's provider, uses this value for some purpose, and sends it's own value on to the consumer...
2
20843
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 some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8904
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.