I have implemenetd a common method to clear the Text of few Controls. One of that is Textbox.If sometimes you requires to clear all the input fields of a web page then just call the below c# method this method will clear all textbox values to empty.
public void ClearAllTextBOX(ControlCollection
ctrls)
{
foreach
(Control ctrl in
ctrls)
{
if
(ctrl is TextBox)
((TextBox)ctrl).Text
= string.Empty;
ClearInputs(ctrl.Controls);
}
}
}
You can change your webpages HTML forms text boxes to match the look of your web site. you can change the background and font colors of your text boxes .The below HTML code will show you how you can change the background and font colors of textboxes.
Display :
<INPUT type="text" STYLE="color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;" size="10" maxlength="30">
Display :
