c# - check whether username exists or not -
i have registration page when user enters email id, being "verified whether registered user or not".
i tried writing code in textchange event of textbox did not work. during runtime not calls textchange event of textbox.
obj.localconnection_class(con); cmd = new sqlcommand(); cmd.connection = con; cmd.commandtext = "select count(*) subscriber_master emailid ='" + txtemail.text + "'"; dr = cmd.executereader(); dr.read();
can tell me how can make work.
you need set textbox autopostback property true
<asp:textbox id="txtcheck" runat="server" autopostback="true" ontextchanged="txtcheck_textchanged"></asp:textbox>
hope works you.
Comments
Post a Comment