Search:
Namespaces
Discussions
.NET v1.1
Feedback
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
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com