Showing posts with label excuse. Show all posts
Showing posts with label excuse. Show all posts

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

load page without refresh

at first excuse me if my english is bad

i need load pages without refresh page

for example in page a i click link (page b) now i want load page b without refresh page

You would want to use iframes or have user controls for every page. I have not used either, but saw various posts about doing that. It ends up getting very hacky though so we avoid that.