You may be able to use the Writeline method of the object. The only Documentation we have is on the MSDN web site
http://msdn.microsoft.com/library/d.../frlrfsystemwebuihtmltextwriterclasstopic.asp
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>
This posting is provided “AS IS”, with no warranties, and confers no rights.
Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect
--------------------
Thread-Topic: Child WebParts in SPS 2003
thread-index: AcPl2Xgz9Szke8fOQLClXUHGqXkwHQ==
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
From: "=?Utf-8?B?QmFyYmFyZSBBbGRlcnRvbg==?=" <
[email protected]>
References: <
[email protected]> <
[email protected]> <46BBF89F-174B-49FB-
Subject: RE: Child WebParts in SPS 2003
Date: Wed, 28 Jan 2004 12:01:08 -0800
Lines: 133
Message-ID: <
[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.csharp
Path: cpmsftngxa07.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:216103
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
Instead of manipulating the HTML string, can't I manipulate the HTMLTextWriter object prior to assignning it to text by using the
HTMLTextWriter methods? If so do you have any documentation or examples of using this technique
Bar
----- Barbara Alderton wrote: ----
Background
I need to enhance the functionality of the Group Listing (Listing Summary) webpart. Since this Microsoft webpart is sealed, I was given
the following design suggestion. Define the existing webpart as a child webpart (custom control) of the new custom webpart. Use the
output from the child webpart (HTML) and manipulate it to be how I want it and then render the new HTML to the page
I need to do two things. One, add a button/link after each document listing, which allows the user to get a pop-up box giving the
document details such as author, creation date, etc. Second, I need traverse through the table output (html) and restrict the output of each
group listing to a site administator's defined value. I need to hide the rest of the items in the group that exceed this amount in a hidden div
tag. I will then have a link at the end of each grioup listing section which allows the user to unhide the items in this hidden tag
I was told manipulating this child parts HTML output would be easier than recreating all the other functionality of the Listing Summary
webpart. So far I have found no examples of using webparts as a child webpart, just examples of using other controls(textbox, buttons,
etc.) as child controls
----- Scot Rose [MSFT] wrote: ----
Hi Barbara, String manipulation can be tedious at best, but If you have your HTML In a string at this point that is pretty much the only
game
in town. What specifically do you want to do with the HTML once you have it in a string?
Scot Rose, MCS
Microsoft Visual Basic Developer Suppor
Email : (e-mail address removed) <Remove word online. from address
This posting is provided “AS ISâ€, with no warranties, and confers no rights
Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect
--------------------
Thread-Topic: Child WebParts in SPS 2003
thread-index: AcPh/+RTiDkeuv1TQS2KAHIqSjHgDQ==
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
From: "=?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?=" <
[email protected]>>References: <0c6901c3db8c
[email protected]><
[email protected]><46BBF89F-174B-49FB-
Date: Fri, 23 Jan 2004 14:26:06 -0800
Message-ID: <
[email protected]>>MIME-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.csharp
Path: cpmsftngxa07.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:214755
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
you for the
clear example.
Referring to your code comment - //Manipulate sHTML to whatever you want to
Now that I have the HTML in a string object, is there an easy way to manipulate the HTML? Is the only way through string
manipulation,
using String Methods? I've done some work with it so far but the task could prove to be tedious. Before I get to far into it, I wanted to
find
out if there is an easier way?
Thanks,
Barbara Alderton
----- Rahul Sakdeo (MSFT) wrote: -----
So far I set up the custom properties in my webpart and pass these values
to the child webpart in the override CreateChildControl method. Then in
the RenderWebPart method I can output the webpart,
this.listSummWP.RenderControl(output). But this is not what I want, I'm
not manipulating the html output of the child prior to rendering my
webpart. Is one of your examples mentioned above referring to this
manipulation?
<rahul sakdeo> In that case you should be able to do something like what
I am doing in my code..
System.IO.StringWriter oSW = new System.IO.StringWriter();
HtmlTextWriter oWriter = new HtmlTextWriter(oSW);
this.listSummWP.RenderControl(oWriter)
string sHTML = oSW.ToString();
//Manipulate sHTML to whatever you want to
output.write(sHTML);
</rahul sakdeo>
Hope this helps.
Rahul Sakdeo