.NETGURU
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




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