Saturday, March 24, 2012

Load from database...clicking on title!

Hi!
I'd like to insert a new ajax.net idea inside my homepage.
I'd like to realize this, and i hope you can help me. (i'm italian, excuse me for my english!!)
In my homepage, i load last 15 messages from my forum (via mysql database). These messages are loaded with title and body and show with an ajax.net accordion.
I'd like to load only last 15 titles and load the body only when user click the title. This message will show below title and will hide if user re-click over title.
Obviously, i'll load body message from database using updatepanel, so, not all page will be reload but only that, showing to the user that a loading is in progress.

I hope you can help me.
I need it!! :)
Thank u so much!

You can set your "title" as a trigger for your UpdatePanel. You can start here:http://www.asp.net/AJAX/Documentation/Live/tutorials/UpdatePanelTutorials.aspx and you should find some good examples for loading data into and UpdatePanel as well as adding triggers.

-Damien

No comments:

Post a Comment