.NETGURU
creating rich textboxes dynamically
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngrichtextbox' list.


Tom Dunn
Hello All,

I'm just starting to use rich textbox and its awesome.

Does anyone have sample code or suggestions on how to add rich textboxes
to pages dynamically. I want to display several (number not known until
runtime) with content from a database.

Thanks, Tom

Reply to this message...
 
    
Royce Bright
Hi Tom

The way I see it there are 3 types of content
A complete page
A tiny section of a page
A whole bunch of News items/articles

I have created 2 Controls ,the first lists the content and can be
filtered by Category etc.The second I use for specific pages.

I have a Data driven menu system which I can tag pagenames, pages can
also have content tagged to them.

Regards Royce

-----Original Message-----
From: Tom Dunn [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 09, 2002 4:02 PM
To: aspngrichtextbox
Subject: [aspngrichtextbox] creating rich textboxes dynamically

Hello All,

I'm just starting to use rich textbox and its awesome.

Does anyone have sample code or suggestions on how to add rich textboxes
to pages dynamically. I want to display several (number not known until
runtime) with content from a database.

Thanks, Tom

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

Reply to this message...
 
    
Ollie Cornes

Hi Tom,

There are other ways, but here's one to give you an idea of how to do
this kind of thing.

In your ASPX file, include a PlaceHolder. This is an invisible tag in
the page, but you can use it from your code to insert controls into the
page.

<asp:PlaceHolder runat="server" id="PH" />

And then in your codebehind do this (C#):

protected PlaceHolder PH;

and then in Page_Load...

RichTextBox rtb1 = new RichTextBox();
RichTextBox rtb2 = new RichTextBox();
PH.Controls.Add(rtb1);
PH.Controls.Add(rtb2);

Does that help?

Ollie

--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address] On Behalf Of Tom
Dunn
Sent: 09 July 2002 16:02
To: aspngrichtextbox
Subject: [aspngrichtextbox] creating rich textboxes dynamically

Hello All,

I'm just starting to use rich textbox and its awesome.

Does anyone have sample code or suggestions on how to add rich textboxes
to pages dynamically. I want to display several (number not known until
runtime) with content from a database.

Thanks, Tom

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

Reply to this message...
 
 
System.Web.UI.WebControls.PlaceHolder
System.Windows.Forms.RichTextBox




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification