0
Here is an answer:
We just need to explicitly encode the content before we display it using the Server object.
For eg : If we need to control text of some particular textbox than use server object like this:
Server.HtmlEncode(TextBox.text)
This simple code will disarmed script attack to your site.
Hope you got, what you need!!