Wednesday 18 January 2017

Hi friends...

This is my first post..I just wanted to explain here regarding aadhar card number validation using verhoeff algorithm.. Firstly create the webform(saying default.aspx) here is my code.Below you can see some lines which are commentable. The thing is that i just tried it to validate aadhar number by using javascript but finally i got a failure result.Then i tried it using a class in which i got a success to do it.So,In webform,i am using one textbox,one label and one button.


Default.aspx (only numeric values allowed )


<body>
    <form id="form1" runat="server">
    <div>
    <asp:Label ID="lblmsg" runat="server"></asp:Label>
       <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

        <asp:Button ID="btnbutton" runat="server" OnClick="btnbutton_Click" Text="Validate" />
    </div>
    </form>
</body>


Here i used a button to call a class... Code Behind: