How to solve this error “A potentially dangerous Request.Form value was detected from the client”
If you are using .net3.5 or lower version then put this line in web.config <pages validaterequest=”false”>under <system .web=””>….</system>
If you are using .net3.5 or lower version then put this line in web.config <pages validaterequest=”false”>under <system .web=””>….</system>
Object initializer in asp.net, C#.net 4.0 features. Object initializers is one of the most important feature of C # 3.0.What is Object initializers?Using Object initializers we can initialize a object of that type without explicitly invoking the constructor of that particular type. Object initializers:I will explain this with a piece of code:class Student{ public … Read more