can i quickly run entire page's text through a function on page load?

Posted by korben on Stack Overflow See other posts from Stack Overflow or by korben
Published on 2010-05-14T20:34:02Z Indexed on 2010/05/14 21:44 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

i have setup a profanity filter with bad words in a XML file and have the following function to run on my page to replace the words:

BadWordFilter.Instance.GetCleanString(TextBox1.Text);

i'm about to go through my entire site now wrapping that function around every little text variable one by one and it's going to be a huge pain in the butt

i'm hoping there's a way that i could just set my masterpage to automatically run all text through this thing on any page_load, so that the effect would be site-wide instantly. is this possible?

much appreciated for any help

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#