Fill Multiple Object Input Form With ASP (not .net)

Discussion in 'C#' started by acepsdr, May 10, 2009.

  1. #1
    Example I have html source code like this:

    I want after fill "Member ID" (onBlur), search in the database. And if found this member id, fill "Member name", "Member class", and "Member price discount" int this form. How do that and how that source code (the same metode in VB programming)?
     
    acepsdr, May 10, 2009 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    One way you can do it is to create an asp file that accesses the database and returns the values as XML, according to the member ID passed to it via the querystring. You then use javascript to access this file from the onBlur event and fill out the form appropriately.
    This should get you started for the javascript: http://www.w3schools.com/XML/xml_http.asp
     
    camjohnson95, May 10, 2009 IP
  3. emlak

    emlak Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you must use ajax for getting values from database without refreshing page( onblur action).

    please search for ajax and asp.
     
    emlak, May 14, 2009 IP