Saturday, 28 March 2015

Convert Text to Uppercase While Typing in Textbox

convert text to uppercase while type in textbox

Description:-

In this example we explain that how to convert text to uppercase while typing or entering text in textbox. Or how to make character uppercase when you enter text in textbox.

We all show that in many websites there is a many field have a this facility like in your First name and Last name you fill up the form this two field automatically get uppercase text . So achieve this type of facility in your application you should follow the following code.



Code:-

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="texttoupper.aspx.cs" Inherits="texttoupper" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>How to Convert Text to UpperCase in clientside</title>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <fieldset style="width:500px">
                <legend>type lowercase character in textbox but it display like uppercase</legend>
                <b>Client side converting to Uppercase</b>
                <input type="text" style="text-transform: uppercase;" />
            </fieldset>
        </div>

    </form>
</body>
</html>


1 comments:

  1. How Many Dollars you r earning from your blog ?

    ReplyDelete