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 4322304
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:51:23+00:00 2026-05-21T08:51:23+00:00

Hi I am currently developing a web app in ASP.net. I am creating a

  • 0

Hi I am currently developing a web app in ASP.net. I am creating a registration form where when the user enter a username they would like to use it performs a check on the database to see if the username already exists. I don’t want this to be done in the text changed event because I don’t want it to try and query the database each time a character is entered into the text box. When I want to do is when that text boxes loses focus, either by tapping to the next field or clicking on another field it then checks the database for the username. If the username already exits then a message like a tooltip is placed to the side of the field.

How can I perform this action when the text box loses focus.

  • 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-21T08:51:24+00:00Added an answer on May 21, 2026 at 8:51 am

    To call a server side method on a client side event you need to do the following:

    1- Create the server side method:

    void DoSomething(...) { ... }
    

    2- Implement the System.Web.UI.IPostBackEventHandler.RaisePostBackEvent which take one string argument (You can assign the name to the value of this argument).:

    public void RaisePostBackEvent(string eventArgument) 
    {
            DoSomething(...);
    }
    

    3- Write a script to trigger post back:

    function TriggerPostBack(control, arg){
        __doPostBack(control, arg);
    }
    

    4- Call the PostBack trigger function when needed:

    <asp:TextBox .... onblur="TriggerPostBack('textBox', document.getElementById('txtUsername').value)" .. /> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a web application in ASP.Net with SQL Server and I would
I'm currently developing a web app on Django/Python, and I consider moving to ASP.NET
I am currently developing an asp.net web app. I have a class which is
I'm currently developing a moderately large sized web app with ASP.NET 2.0 that uses
I am developing an ASP.Net MVC 3 web application. The app currently is connected
So I have been developing a small ASP.NET web app in C# for my
I am developing a web app using ASP.NET 2.0 (C#), where on home page
I'm developing an web app using asp.net mvc. I have a List in Cache
I'm developing a web app in asp.net mvc using jquery, the language of application
I'm developing a web app with asp.net mvc 2. This app, has a controller

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.