SharePoint

Custom TextBox Server Control with Regular Expression Validator

In 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

event_note
close

In 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

Read more

Posted in Code behind
SharePoint

Remove HTML Tags from ASP Controls in a Visual Webpart

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

event_note
close

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

Read more

Posted in Code behind