Thursday, May 15, 2014

change all xml tag names to lowercase

            xml = Regex.Replace(xml, "<[^<>]+>", Function(m)
                                               Return m.Value.ToLower()
                                           End Function, RegexOptions.Multiline Or RegexOptions.Singleline)

Wednesday, May 14, 2014

viewstate lost after opening other pages/frames

viewstate values can be lost if you open more than 9 other pages or frames. because the history default is 9

to overcome this problem, set it to a larger value in webconfig

Friday, May 9, 2014

javascript : intercept browser html before rendering . #onload #ready

You don't want body to load. You want to get the html, change the content, then tells the browser to load. How? Here you go...

you still need to put the script on top of your page. in, you can inject this script in global.asax

if you run browser F12, you can see that myimage1.jpg is never loaded.