I use webforms/masterpage, with .NET.
I Have many Web User Controls into my page.
Is there a point where I can made some replace in some “strings”?
Like, if .NET generate :
<div>Hello my Name is Marco</div>
changing it in :
<div>Hi, my Name is Luca</div>
Is it possible? Or I need to create my specific utility every time I get these data (from DB) and I do a response.write?
You should be able to write an
IHttpModuleand hook it up to thePreSendRequestContentevent, and do your replacements here. Take a look at the solution presented here: http://www.tek-tips.com/viewthread.cfm?qid=1149673