How will you protect your ASP.NET application from XSS?

Monday, December 7, 2009


You can prevent your website from xss using:
1. Validate Input received from your site.
2. Encode Output generated from your site.


www.codecollege.NET

Which one is faster ChrW or Chr ?


ChrW


www.codecollege.NET

Which is the best practice for a string constant with backslash or which spans multiple line?


Verbatim(@) strings imporves code readability.


www.codecollege.NET

Daily Tips- Tip #34 - How will you invoke Immediate window in Visual studio?


1. Open the command window in Visual Studio
2. Type “immed” To Execute statements


www.codecollege.NET

How will you unsubscribe an event?


You can unsubscribe an event using the RemoveHandler


www.codecollege.NET

Which is the best practice for explicit event subscriptions: using AddHandler and RemoveHandler or WithEvents?


using AddHandler and RemoveHandler


www.codecollege.NET

How will you refine filter condition in Catch blocks and avoid rethrowing an exception?


use When keyword


www.codecollege.NET
Blog Widget by LinkWithin