Convert special chars to HTML entities, without changing tags and parameters

I’m using FreeTextBox editor to get some HTML created by users.
The problem with this is this editor is not converting special chars in HTML entities at exception of “<>”. I cannot use theHTML = Server.HtmlEncode(theHTML), because it converts all the HTML including tags and parameters, and I don’t want to create an unfinishable list of theHTML.Replace lines.

What is a good way to output an asp.net, C# GridView into a PDF

I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I’d like a simple control that would convert a GridView control into a PDF document. I’ve started looking into PDFSHarp and am running into dead ends with documentation. Same thing with iTextSharp. I’m willing to dig into them further if they have worked for others in the past.

Set focus in TextBox after postback

I have a simple page where I want to filter a ListBox based upon a value(s) in a textbox – both are in an UpdatePanel.
This works correctly, however, after the postback the textbox had lost focus…so I set focus back in the page_load.
Then I noticed that the cursor was now at the beginning of the text when I want it at the end so the user can carry on typing, so I added an onfocus(…) attribute to the textbox to set the value back to itself (see code below).