[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2012-08-16
3
Medium Priority
?
712 Views
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.

Thanks,
ASPDEV
0
Comment
Question by:ASPDEV
3 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 38303415
0
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 2000 total points
ID: 38303455
Jquery Ajax :
Returns JSON Object from ajax post
http://www.aspsnippets.com/Articles/Send-and-Receive-JSON-objects-to-Web-Service-Methods-using-jQuery-AJAX-in-ASPNet.aspx
Return String
http://www.aspsnippets.com/Articles/Make-AJAX-Call-to-ASP.Net-Server-Side-Web-service-method-using-jQuery.aspx


try this, Javascript ajax Method without Jquery/Pagemethod
http://www.w3schools.com/ajax/ajax_database.asp 
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.
0
 

Author Closing Comment

by:ASPDEV
ID: 38305723
Wow, that worked super!


Thanks,
ASPDEV
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month19 days, 16 hours left to enroll

873 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