CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 9/28/2007 6:40:39 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
hivani
Asp.Net User
dynamically adding the user controls to my DeclarativeCatalogPart....9/28/2007 6:40:39 AM

0/0

hi experts

i want sample application or code for dynamically adding the user controls to my DeclarativeCatalogPart....

 my implementtion goes like this

declarativeCatalogPart i am placing my wepparts templates satically :

sample code is

<ZoneTemplate>

<asp:DeclarativeCatalogPart ID="Exposure" runat="server" Title="Party Exposure" ChromeType="titleOnly">

<WebPartsTemplate>

<EC:CptyExposure ID="TopExposure" runat="server" Title = "Top 10 Party Exposure" />

<EC:CptyLimit ID="TopLimit" runat="server" Title="Top 10 Party Limit" />

<EC:ExpLimitRating ID="ExposureByLimitRating" runat="server" Title="Exposure By Limit Rating" />

<EC:ExpCountry ID="ExposureByCountry" runat="server" Title="Exposure By Country" /> <EC:ExpIndustryCode ID ="ExposureByIndustryCode" runat ="server" title="Exposure By Industory Code" />

 

</WebPartsTemplate>

</asp:DeclarativeCatalogPart>

but my requirement is

i need to add WebpartsTemplates dynamically ( the list will be get from data base).

Thanks & Regards

Shiva.

 


Shiv
moredotnet
Asp.Net User
Re: dynamically adding the user controls to my catalogs....9/28/2007 10:22:34 AM

0/0

you just need to create an instance of the control to be added.. and then add this control to the container...something like this...

Textbox tb1 = new Textbox();

tb1.Text = "something";

Form1.Controls.Add(tb1);

 Cheers

Vishal Khanna

(pls mark as answer if reply helps)


Cheers
Vishal Khanna | MCAD.NET | Intersoft Data Labs
(Please mark as answer if reply helps)


.NET Interviews & FAQs @ www.dotnetUncle.com



Search & Post Free Ads

johram
Asp.Net User
Re: dynamically adding the user controls to my catalogs....9/28/2007 10:27:14 AM

0/0

hivani:

i want sample application that has to add the user cotrols to my catalog at runtime

 

What exactly do you want? Can you please be a bit more specific? Why do you want to add user controls in runtime? Do you mean you want to create instances of your user controls in code behind that you then append to the page?


If this post was useful to you, please mark it as answer. Thank you!
hivani
Asp.Net User
Re: dynamically adding the user controls to my catalogs....9/28/2007 11:21:56 AM

0/0

once again look into my edited requirement , i placed it in a meaning full manner.

 

thanks

Shiva


Shiv
naturehermit
Asp.Net User
Re: dynamically adding the user controls to my catalogs....9/28/2007 11:31:40 AM

0/0

Hi Shiva,

 

Please go through this forum and answer exactly what you are looking for http://forums.asp.net/t/650271.aspx?PageIndex=1  I hope so anyway.

 

many thanks


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Dynamic DeclarativeCatalogPart Creation? - ASP.NET Forums Add(mytextbox); //The controls you add to the placeholder here will be the .... My StudentWebPart user control simply holds all the user controls I want ...
Dynamic adding agragate Webparts controls to ... I need this to add Web Part controls for every role that a current user has. Each role has unique webparts. Since my users can have multiple ...
DeclarativeCatalogPart Class (System.Web.UI.WebControls.WebParts) A user can select controls from the list and add them to the Web page, ..... WebPart" Description="Contains a label that users can dynamically update. ...
DeclarativeCatalogPart Class (System.Web.UI.WebControls.WebParts) A user can select controls from the list and add them to the Web page, ..... to dynamically generate the user interface (UI) for a user to edit those ...
Building Web Parts, Part 3 | O'Reilly Media Jun 27, 2005 ... In this article, I will show you how you can dynamically add Web Parts ... of Web Part controls that a user has closed on a Web Parts page, ...
How to dynamic CatalogZone to add webpart into webpartzone - ASP ... But my problem is i want to create usercontrol dynamic and then add to catalogzone . I'm not sure if it's possible to load usercontrols as ...
Rahul Soni's blog : Dynamically adding webparts to the dynamically ... Title = "My Declarative Catalog Title" container.Controls. ... some web user controls. and i want to load those controls dynamically to the DeclCatalogPart. ...
CoDe Magazine - Article: ASP.NET 2.0 Web Part Infrastructure There are three kinds of CatalogPart controls. DeclarativeCatalogPart The ... ImportCatalogPart The ImportCatalogPart provides UI to the user to add new Web ...
Safari Books Online - 9780768682342 - Special Edition Using ... The ability to add Web Parts controls to a page is provided by the CatalogZone ... The prop.ascx user control is then added to the DeclarativeCatalogPart. ...
Explore ASP.NET 2.0 Web Part Infrastructure Dec 11, 2006 ... CatalogPart controls hold a menu or catalog of Web Parts that you can add to a page for the user to choose from. ...




Search This Site:










seperate page for editing web parts

how not to mix up the shared and user personalization webparts layout/data..

keeping a dynamically added webpartzone on the page

custom webpart - gridview export to excel

default zone option in catalog

web parts decides to take ciesta

how to open closed webpartzone ?

binary seriliazed profile property is constant for all users

swapping of controls in web parts

making a runtime for asp.net 2.0 websites??

custom webpart like - www.bbc.co.uk

problem with editorzone

dynamically adding webpart properties

webpart title...

usercontrol based webparts: page events firing after webpart is closed?!

web parts for marketing department!?

web parts shared personalization for a subset of users

web parts

connected webparts question

webpart manger err ..!

how to get rounded corners for the webpart?

webpartzone inside webpartzone - it is possible

disabling edit option

when should i be using web parts

initializing personalization values from db

making only one editor zone visible

how do you add the minimize and close button?

how to rename a webpart

webpart customization

customizing the pagecatalogpart

  Privacy | Contact Us
All Times Are GMT