Show result without refreshing the page [Resolved]

Posted by Thiru under Regular Expressions on 2/9/2011 | Points: 10 | Views : 5562 | Status : [Member] | Replies : 15
Hi,
How to show data from db without refreshing the page?

When a customer type member id - our application should fetch the name of that member from db
and display in the page -- it should be done without refreshing the page.

Need to do this in ASP.NET backend MySQL

regards,
Thiru.




Responses

Posted by: Karthikanbarasan on: 2/9/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 50

Up
0
Down

Resolved
Hi,

try theses links

http://www.codeproject.com/KB/ajax/AJAXAutoSuggest.aspx

http://www.codeproject.com/KB/ajax/AjaxTextbox_.aspx

Thanks
Karthik
www.f5Debug.net

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

Posted by: Naimishforu on: 2/9/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Are you making use of AJAX in your application??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

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

Posted by: Thiru on: 2/9/2011 [Member] Starter | Points: 25

Up
0
Down
No, i didn't use ajax (for your information i am new to asp.net)

Let me know whether do without using ajax -- ?
or else - how to do with ajax ?

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

Posted by: Sathya4260 on: 2/9/2011 [Member] Starter | Points: 25

Up
0
Down
You asking, to fetch the data without submitting the request right...

Sathish Kumar S

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

Posted by: Thiru on: 2/9/2011 [Member] Starter | Points: 25

Up
0
Down
example: two fields are there in db: id and name

i need to show the name without refreshing the page, if ID is typed in a textbox.

(without submitting)

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

Posted by: Sathya4260 on: 2/9/2011 [Member] Starter | Points: 25

Up
0
Down
this can be achieved by showing the id in dropdown, when the client chooses his id, name can be show in text box...

Sathish Kumar S

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

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

Up
0
Down
Hi,

Without refreshing you can go with the AJAX usage or if its light weight then you can chose the javascript

Thanks
Karthik
www.f5Debug.net

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

Posted by: Naimishforu on: 2/9/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

Can anyone please provide the code example??

Thanks

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

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

Posted by: Thiru on: 2/9/2011 [Member] Starter | Points: 25

Up
0
Down
I dont want to have a dropdown box to select. Instead i need to have a textbox to type the ID.

Hope it can be done with Ajax.
Can you provide sample code?

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

Posted by: Thiru on: 2/9/2011 [Member] Starter | Points: 25

Up
0
Down
May i get any sample code in ASP.NET + Vb (instead of C#)

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

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

Up
0
Down
Hi,

You can covert the VB.net to C# using the online code convertors.... Just copy and paste in the convertor... it will give u the C# version.

Thanks
Karthik
www.f5Debug.net

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

Posted by: Naimishforu on: 2/9/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Try this,

http://www.developerfusion.com/tools/convert/csharp-to-vb/

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

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

Posted by: Jayakumarv on: 2/10/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
You just use AJAX script manager and update panel to solve this problem..and one more where you want to update without post back all controls design within update panel..
event:Text box change event to call DB
In DB try to use (LIKE) statement


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

Posted by: Thiru on: 2/10/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks for your support.

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

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

Up
0
Down
Sure thiru...

Thanks
Karthik
www.f5Debug.net

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

Login to post response