instantce of RTB from a class
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngrichtextbox' list.


Gokcen Ogutcu
This is a multi-part message in MIME format.

------=_NextPartTM-000-15d9a2cc-9260-4909-a57d-1e90f3384d5e
Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_0035_01C2322D.11961200"

------=_NextPart_000_0035_01C2322D.11961200
Content-Type: text/plain;
    charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

hello,

how can i create an instance of RTB within a class,
the thing i want to do is, .httpcontext.response.write(rtb.blabla()) for =
example to show the rtb, i'll handle the post back data for myself, i'm =
aware that, i won't be able to use it's some features, but i'm required =
to do so.

thanks for your time,
gokcen

------=_NextPart_000_0035_01C2322D.11961200
Content-Type: text/html;
    charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-9">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>how can i create an instance of RTB =
within a=20
class,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the thing i want to do is,=20
.httpcontext.response.write(rtb.blabla()) for example to show the rtb, =
i'll=20
handle the post back data for myself, i'm aware that, i won't be able to =
use=20
it's some features, but i'm required to do so.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>thanks for your time,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>gokcen</FONT></DIV></BODY></HTML>

------=_NextPart_000_0035_01C2322D.11961200--

------=_NextPartTM-000-15d9a2cc-9260-4909-a57d-1e90f3384d5e--

Reply to this message...
 
    
Ollie Cornes

Hi Gokcen,

RichTextBox (or any server control) isn't designed to be used like this.
Although you can use Control.RenderControl() to get the HTML output of a
control object, what you won't get is the script. I would strongly
recommend you use another approach, but if you absolutely have to go
down that route, use the RenderControl() method to get the HTML, and
then manually paste the script functions into the page from a standard
page containing RichTextBox.

However, I wonder if what you are looking to do is insert a RichTextBox
into a page at run-time from code, and if so that is easy to do:

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

[ASPX.CS] Page_Load
RichTextBoxControl.RichTextBox myRTB = new
RichTextBoxControl.RichTextBox();
PH.Controls.Add(myRTB);

Does that help?

Ollie
--
http://www.richtextbox.com/
The no. 1 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
Gokcen Ogutcu
Sent: 23 July 2002 07:41
To: aspngrichtextbox
Subject: [aspngrichtextbox] instantce of RTB from a class

hello,

how can i create an instance of RTB within a class,
the thing i want to do is, .httpcontext.response.write(rtb.blabla()) for
example to show the rtb, i'll handle the post back data for myself, i'm
aware that, i won't be able to use it's some features, but i'm required
to do so.

thanks for your time,
gokcen

Reply to this message...
 
 
System.Web.UI.Control
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