You have multiline textbox and submit button. if you paste
xml content into multiline textbox and hit submit button.
what action will perform?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / purushottam
It will throw a exception "The server encountered a potenially unsafe form request......" since the xml data contains tags that ASP.NET treats as a script resource.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / nirmal
It will throw a exception "A potentially dangerous
Request.Form value was detected from the client"
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sudheer
Nothing will happend.The particular page will be refreshed.
Is This Answer Correct ? | 2 Yes | 3 No |
Answer / rahul
For example in backend if u create on rows as xml data
type,now write code in asp.net in text box paste xml content
document and press submit button.after clicking the submit
button xml document stroe in backend.
or
without backend it will go request to server and come back
same it happend only refresh page only.
Is This Answer Correct ? | 0 Yes | 2 No |
What is comparevalidator?
What is the concept of postback in asp.net?
How do you implement postback with a text box? What is postback and usestate?
What is the difference between localization and globalization?
why many web.config files are used in are project
What is clickid?
Explain asp.net application life cycle?
What is asp.net and its advantages?
I have a webform in asp.net.In that webform there is 2 division class(DIV).in one of the div class there is a text box for enter the id & a button for to check id with database value.My doubt is that how can i appear the 2nd Div contents only when the id is true with database value.if wrong do not display the div . i Want code in c#.
What Is ASPNET_WP.exe? What Is The Use Of It? In Which Place Inproc Session Stored ? Explain Session State ?
2 Answers Phoenix Technologies,
Can asp.net work on an nt server?
Why asp.net is better than php?