Need Urgent Help in Ajax for Jsp Page

Posted by Vraj under JavaScript on 4/9/2011 | Points: 10 | Views : 2493 | Status : [Member] | Replies : 5
Hi dotnetfunda
iam new to jsp and ajax.I do javascript using ajax to retrive the data's from database to a textbox.Actually iam doing a prject for school.In this i store"Student's Name,Student's Age,Address,City,Phonenumber" in my database.Here by using ajax ican retive only the Students name from database to textbox.But can anyone helpme how to do this"If i select a particular students name i want to get the details like students age,Address,City ,Phonenumber in textboxes not in pop up window.I need it to do in ajax for jsp page.Can anyone give sample codes.
Thanks in advance for your help

vraj


Responses

Posted by: Vuyiswamb on: 4/9/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
So basically you want to search the database based on a name and fill the data in a grid. we have a lot of examples in the site. i think you need to browse the article section , there are many examples , please look at this
http://www.dotnetfunda.com/search/Search.aspx
http://www.dotnetfunda.com/tutorials/videos/x54-how-to-create-ajax-flicker-free-pages-in-aspnet-.aspx
http://www.dotnetfunda.com/articles/article971-aspnet-gridview-jquery-tips-and-tricks-part-2-.aspx
http://www.dotnetfunda.com/articles/article924-add-edit-delete-paging-records-in-gridview-using-jquery-.aspx

Thank you for posting at Dotnetfunda
[Administrator]

Vraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vraj on: 4/9/2011 [Member] Starter | Points: 25

Up
0
Down
hi vuyiswamb
Thnaks for your immediate reply.As per your reply its all using asp.net.But can you explain how to use in jsp.My doubt is if i enter the name of student in first textbox i need the details of particular student in the balance textbox immediately without refreshing the page.Here i cant guess the name of the student.So please help me to do this by giving some sample codes.Thanks in advance for same.

vraj

Vraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/9/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
You can do that with an Update Panel as i demostrated in the video i sent you. The page will not refresh only the gridview will refresh is that what you want?

Thank you for posting at Dotnetfunda
[Administrator]

Vraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 4/11/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Vuyiswa i hope he want to have in JSP

Thanks
Karthik
www.f5Debug.net

Vraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vraj on: 4/12/2011 [Member] Starter | Points: 25

Up
0
Down
yes karthik is correct.I wnat the codes for jsp page

vraj

Vraj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response