Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5954201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:56:13+00:00 2026-05-22T17:56:13+00:00

i am trying to add a username availability checker to the signup component and

  • 0

i am trying to add a username availability checker to the signup component and i used this :

    protected void checkUser(object sender, EventArgs e)//checking the user name avaliabilty
{ 
    if (Membership.GetUser(UsernameCheck.Text) != null)
    {
        usernameResult.Text = "User Name already Taken";
    }
    else 
    {
        usernameResult.Text = "User Name Avaliable";
    }
}

and this is my aspx :

  <tr>
                        <td align="right">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="UserName" runat="server" BorderStyle="None" BorderWidth="1px" 
                                CssClass="SuserNameBox" AutoCompleteType="Disabled" AutoPostBack="true" OnTextChanged="checkUser" >Name Extension</asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                ToolTip="User Name is required." ValidationGroup="mainSignUp">*</asp:RequiredFieldValidator>
                        </td>

                    </tr>

but the ontextchanged event wont trigger (i tried it with an external text box and it worked fine) .

so my question is how to trigger an event to an element within the sign up component

using asp.net 3.5

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:56:14+00:00Added an answer on May 22, 2026 at 5:56 pm
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <asp:TextBox ID="UserName" runat="server" BorderStyle="None" BorderWidth="1px"
                     CssClass="SuserNameBox" AutoCompleteType="Disabled" AutoPostBack="true" OnTextChanged="checkUser" >Name Extension</asp:TextBox>   
                     <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="UserName" EventName="TextChanged" />
                     </Triggers>                         
    </asp:UpdatePanel>
    

    Something like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would you refactor something like this? protected void btnAdd_Click(object sender, EventArgs e) {
I am trying to add a check availability option for the username in my
Trying to add init parameter names to a list in init(ServletConfig) method. public void
Trying to add a class object into a List using reflection, but when invoking
I am trying to add a UIToolbar to the UIKeyboard so that the username
I'm trying to add a constraint to a controller . I may have this
Trying to add user with python fabric script. uid = prompt(Enter username:) eid =
I am trying to add this property to my operation. i am using Basic
I'm trying to add stf.PrimarySchoolID (an integer) into this existing query. I have a
I'm trying to add a username to my devise installation, ala the Railscast episode.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.