The Way to Programming
The Way to Programming
LblMsg.Text = HttpUtility.HtmlEncode(msg)
You need to encode your msg before inserting it into your label. It’s the thing with not trusting user input to your function.
https://msdn.microsoft.com/en-us/library/73z22y6h(v=vs.110).asp.net for further details.
Sign in to your account