•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,050 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 698 | Replies: 4
![]() |
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
hi all,
i am developing a content management system in asp.net with C#. i have a master page named "Master1.master" with 5 content place holders-"cphHeader, cphLeft,cphCenter,cphright,cphbottom". i have another default.aspx page which is inherited from the "Master1.master". it takes as input,the following fields from the user :
1. text to be displayed.(Textbox)
2. Content holder where the text will be displayed (dropdown having names of all the 5 content holders mentioned above.).
these things entered by the user are stored in the database. The text entered by the user should be displayed in the content holder mentioned above.
How do i do it?? is there any facility which helps us access the content place holders on the default.aspx.cs page.
thanks in advance.please reply as soon as possible.
i am developing a content management system in asp.net with C#. i have a master page named "Master1.master" with 5 content place holders-"cphHeader, cphLeft,cphCenter,cphright,cphbottom". i have another default.aspx page which is inherited from the "Master1.master". it takes as input,the following fields from the user :
1. text to be displayed.(Textbox)
2. Content holder where the text will be displayed (dropdown having names of all the 5 content holders mentioned above.).
these things entered by the user are stored in the database. The text entered by the user should be displayed in the content holder mentioned above.
How do i do it?? is there any facility which helps us access the content place holders on the default.aspx.cs page.
thanks in advance.please reply as soon as possible.
you access your content tags.
they look like this.
then you just call it from the c# code by id
ex.
Content1.Controls.Add(acontrolfilledwithcontent)
they look like this.
asp Syntax (Toggle Plain Text)
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"></asp:Content>
then you just call it from the c# code by id
ex.
Content1.Controls.Add(acontrolfilledwithcontent)
Last edited by peter_budo : Apr 4th, 2008 at 4:43 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
you access your content tags.
they look like this.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"></asp:Content>
then you just call it from the c# code by id
ex.
Content1.Controls.Add(acontrolfilledwithcontent)
Thanks for the reply. but i cannot access 'Content1 ' in my '.cs' page.is there any other solution??
•
•
Join Date: Jun 2006
Posts: 12
Reputation:
Rep Power: 3
Solved Threads: 0
you can use another a[approach by using the new ASP.NET 2.0 control which called MultiView control and set the active view depending on selected dropdown item.
http://www.c-sharpcorner.com/UploadF...a-393c43872384
http://www.c-sharpcorner.com/UploadF...a-393c43872384
Thanks,
Hosam Kamel
Hosam Kamel
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
access adult advice broadband business code combo content crime cult of the dead cow daniweb data data protection data transfer database drive dropdownlist encryption europe forensic forensics fun google hacking hard hardware help hitachi hp industrial espionage internet it linux microsoft mobile module net news payment services playready privacy protection reuse search security storage terabyte tv web wikipedia
- Previous Thread: How to get specific mail id in a textbox
- Next Thread: asp.net



Linear Mode