SharePoint

Custom TextBox Server Control with Regular Expression Validator

0In my recent projects, there was a flaw in our code, script injections were being made possible through Text Box. There was a client requirement that tags if present in the Text Box, it should not allow to save the data. For this regex was the savior, but i had a lot of text boxes Read more about Custom TextBox Server Control with Regular Expression Validator[…]

SharePoint

Remove HTML Tags from ASP Controls in a Visual Webpart

0 Lets say for example you have a text box with which you store certain text in a SharePoint List and while displaying the data to users, you make use of a label. Now i add a script alert(“Hello”) in the text box and save it, the script will get saved The same I view Read more about Remove HTML Tags from ASP Controls in a Visual Webpart[…]