Hi Fm,
As for the generating 508 compliant asp.net page output in 1.1 you
mentioned, I think we have serveral available approachs:
1. Page Level: intercept the page's output html content and do our custom
format on it before send to clientside. And generally we have two means to
intercept the page's output content before sent to clientside:
# Use a Response Filter , for example:
Response Filter to Take out White Spaces and New Line Feeds using
HttpResponse.Filter
http://dotnetjunkies.com/WebLog/donn...9/08/1468.aspx
# For a certain page, override the page's Render method and modify the
output page content in it:
For example:
Class PageName: System.Web.Page
{
protected override void Render(HtmlTextWriter writer)
{
protected override void Render(HtmlTextWriter writer)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter sw = new System.IO.StringWriter(sb);
System.Web.UI.HtmlTextWriter htw = new HtmlTextWriter(sw);
base.Render (htw);
string content = sb.ToString();
//do formatting on the content
}
}
}
2. Control level, make our custom control wrapper ( derived from the
existing web control classes) and override the render method so as to
format the html content at the control level). This is similiar to override
the Page's Render method since we do modification in our custom control's
overrided Render method.
3. Using raw isapi filters in IIS ( since this is beyound the .net
framework , I haven't any furthur values).
In addition, here are some former threads in the group discussing on the
similiar problem:
http://groups.google.com/groups?hl=e...5073f6721ef&se
ekm=y0F8qBe9DHA.3612%40cpmsftngxa07.phx.gbl#link1
http://groups.google.com/groups?hl=e...A.3496%40cpmsf
tngxa07.phx.gbl&rnum=3&prev=/groups%3Fq%3Dasp.net%2Bxhtml%2Bsteven%2Bcheng%2
6hl%3Den
Hope also helps. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hope helps. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)