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 |
Differentiate between a hyperlink control and a linkbutton control.
Define repository pattern in asp.net mvc? : asp.net mvc
what is synchronization and asynchronization. what are the difference between two?
Turn Off ASP Session State on an IIS 5.1 Web Site
What is the roll of JIT in asp.net?
Where we create sessions for Banking Applications and how to create? expalin with code?
What is strong-typing versus weak-typing? Which is preferred? Why?
Which data type does the rangevalidator control support?
What is a 404 redirect?
Give real time examples for polymorphism, encapsulation, inheritance..
What is caching? What are the different types of caching?
What are the different authentication modes in asp.net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)