textbox contain text that save as html page
-
textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button. when i remove html tags then file are save properly. but when i use html tags then an error occured. so how can i resolve the problem. text box contain this text. abc
hello
World
how can i save this text a html file. dcjoshi2
-
textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button. when i remove html tags then file are save properly. but when i use html tags then an error occured. so how can i resolve the problem. text box contain this text. abc
hello
World
how can i save this text a html file. dcjoshi2
What is that error? Do u set the validateRequest="false" tag in the page directive?
Thomas
-
textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button. when i remove html tags then file are save properly. but when i use html tags then an error occured. so how can i resolve the problem. text box contain this text. abc
hello
World
how can i save this text a html file. dcjoshi2
It can give two problems 1) Request validation failed, so you will have to give ValidateRequest="False" in <%@page %> directive. 2) if it gives error while saving into database or other, just give Server.HtmlEncode(TextBox1.text)