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

  • Home
  • SEARCH
  • 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 455617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:23:19+00:00 2026-05-12T22:23:19+00:00

Looking for guidance on how to achieve something in ASP.NET Web Form – the

  • 0

Looking for guidance on how to achieve something in ASP.NET Web Form – the behaviour is a bit like that seen in ASP.NET AutocompleteExtender, but I can’t find anything that gives the flexibility I need. Here is what I am trying to do:

  • 2 TextBox fields on the form,
    CompanyName and CompanyRef
    (CompanyRef an abbreviated unique
    Company identifier)
  • User types in the CompanyName
  • As soon as there are 3 characters in the
    CompanyName an internal webservice is
    called (AJAX?)
  • Webservice checks what has been entered so far and
    evaluates a 3 character representation of it – for instance
    “Stack” would be returned as STA0001.
  • If there is already an STA0001 in the db it would return STA0002 and so on
  • The value returned would be targetted at the
    CompanyRef TextBox
  • User needs to be able to edit the CompanyRef if they so wish

I’m not looking for code per se, more high level guidance on how this can be done, or if there are any components available that I am missing that you may be able to point me in the direction of. Googling and searching on SO has returned nothing – not sure if I’m looking for the right thing though.

  • 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-12T22:23:20+00:00Added an answer on May 12, 2026 at 10:23 pm

    Generating the CompanyRef is easy enough. There are lots of articles etc which cover combining say an autonumber or counter with a string. The difficulty I have with your approach is that you intend to let users fiddle with the ref, and make their own up. What for?

    [EDIT – Follow up to comment]

    The comment box didn’t allow for enough characters to answer your comment fully (and I’m still getting used to the conventions in place here….)

    You could use AJAX to call the web service and return currently available values, and then use javascript to update the field. The problem with this is that once a user has decided he or she likes one, it may no longer be available when it is passed back to the database. That means you will have to do one final check, which may result in a message to the user that they can’t now have the value they were told was available when they started the process. Only you know the likelihood of this happening. It will depend on the number of concurrent users you have.

    I’ve done an article on calling web services etc using jQuery which should give you a starting point for the AJAX part: http://www.mikesdotnetting.com/Article/104/Many-ways-to-communicate-with-your-database-using-jQuery-AJAX-and-ASP.NET

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

Sidebar

Related Questions

Ok, so I'm looking for a bit of architecture guidance, my team is getting
I'm looking for some guidance here. On my site I put things in Web
I am looking for some guidance. I have a data form field which I
I'm looking for guidance on implementing a view that renders an NSAttributedString within a
I’m looking for some guidance on structuring JS code in an .net MVC application.
I am looking for guidance regarding the best practice around the use of the
Looking for some guidance on a WCF service I’m prototyping. I have a WCF
I'm just looking for a little guidance as to how i might implement a
Looking for an example that: Launches an EXE Waits for the EXE to finish.
Looking to do a very small, quick 'n dirty side project. I like the

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.