html to Asp.Net WebForms WebControls
A crude converter for your html forms.
HTML
<body>
<textarea id="textArea" rows="20" placeholder="Enter your html here."></textarea>
<br/>
<button id="toWebControls">To WebControls</button>
</body>
CSS
textarea {
width: 100%;
}
JavaScript
//Check if string has word Part
//Change the test string as per your input
test = "hello part of it";
if(Regex.IsMatch(test, @"\bpart\b"))
{
//String contains Part
}
else
{
//String does not contains Part
}