Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

You have multiline textbox and submit button. if you paste
xml content into multiline textbox and hit submit button.
what action will perform?

Answer Posted / srini

ValidateRequest is default to true

"The server encountered a potenially unsafe form request......" exception is thrown when it's 'true' as it validates the request when posted back.

If you change it to 'false', page will be posted without any exception. But we need to implement custom encoding technique before storing it to DB to avoid scrip inserts for security reasons.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you hide the columns?

1037


How ASP.NET page works?

1099


What is server infrastructure & server components?

1221


Explain what is an assembly?

973


What is the function of the ViewState property?

1045


What do you mean by caching in asp.net?

1025


Can we have multiple master pages in asp net?

988


What is a viewstate?

989


Explain about ASP.NET?

1088


Can we set which type of comparison we want to perform by the CompareValidator control?

1034


What is the default timeout for a cookie?

1060


What is webresource axd?

882


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

1019


What are client activated objects and server activated objects?

970


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

1089