Using Javascript Need to Populate Data into Text boxes  from Database asp.net2.0

Posted on 2012-08-16
Last Modified: 2012-11-15
Hello Experts,

I need to do a Client Side Data Populate, when I Enter ID in textbox1, it should query database and populate rest of the fields.

I tried Page Methods(AJAX Style), it doesn't work since the method is Shared, I can't bind the data into other fields.Can you guide any client side, without any postback's or refreshing the page.

Question by:ASPDEV
    LVL 20

    Expert Comment

    LVL 18

    Accepted Solution

    Jquery Ajax :
    Returns JSON Object from ajax post
    Return String

    try this, Javascript ajax Method without Jquery/Pagemethod
    just put the onchange event of dropdown to your onblur event of textbox
    You can use delimeter on response.write in codebehind and split delimeter in js and assign it on your form.

    Author Closing Comment

    Wow, that worked super!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now