G
gn
I have a simple app that asks a user to enter text in a multiline
textbox, (runat server) then submit, after submitting this text is then
assigned to a variable as a string.
This works fine with regular text like: This is a test
However if I try to enter HTML code in the textbox, the submit onclick
event doesn't even fire.
It doesn't have to be complex HTML code, even: <div align="left"> will
cause it to fail, changing it to: div align="left" makes it work fine,
so <> seem to be the problem
Why is this and is there anyway to avoid this without removing them
because I will need the HTML code in tact later
Thanks in advance
textbox, (runat server) then submit, after submitting this text is then
assigned to a variable as a string.
This works fine with regular text like: This is a test
However if I try to enter HTML code in the textbox, the submit onclick
event doesn't even fire.
It doesn't have to be complex HTML code, even: <div align="left"> will
cause it to fail, changing it to: div align="left" makes it work fine,
so <> seem to be the problem
Why is this and is there anyway to avoid this without removing them
because I will need the HTML code in tact later
Thanks in advance