Articles in the Asp.net Category
Asp.net »
Jaipur Mentor :: validaton Contro
Tweet This Post
Asp.net »
Use CSS and JavaScript in textbox in .aspx page.
Create a project and add a new .aspx page and then in the aspx page add the following code in the head section.
<style type=”text/css”>
.uppercase
{
text-transform: uppercase;
}
.lowercase
{
text-transform: lowercase;
}
.capitalize
{
text-transform: capitalize;
}
</style>
And then use the above classes in the code as
Typing Text in UPPERCASE
<br />
<asp:TextBox ID=”TextBox1″ runat=”server” CssClass=”uppercase”></asp:TextBox><br />
Typing Text in lowercase
<br />
<asp:TextBox ID=”TextBox3″ runat=”server” CssClass=”lowercase”></asp:TextBox><br />Typing Text in Capatlize
<br />
<asp:TextBox ID=”TextBox4″ runat=”server” CssClass=”capitalize”></asp:TextBox>
And then when you will type any text in these textboxes then they will appear as per the css class used.
And to use …
