Showing posts with label reload. Show all posts
Showing posts with label reload. Show all posts

Saturday, March 24, 2012

how do I access data on client side with ajax

hello. I have an mdb that I want to use to popluate some textboxes with out postback or waiting for IE to reload.

I am using easylist box that gives me the record ID but I want to use that ID to pull data from the MDB with out reloading the IE.

can someone link me in the right direction?

You should issue XmlHttpRequest on some Javascript event (say, button click or focus removed or whatever), which will pass your ID to the server side and will get the response, which you should dynamically insert into the TextBox you want (javascript, client side again).

This is th schema in general.

You can find a lot of free books about AJAX on the net, ex.: http://paperolli.com/default.aspx?keyword=ajax


thanks!!!

Wednesday, March 21, 2012

How can I reload all UserControls when the event fires in one of them(.ASCX) ( inside the

I have 3 UserControls on a page inside the same UpdatePanel.
When the event fires in one them (Voting control), both others should be updated(blocked for user = 'Disabled').
How should I reload those other UserControls? They are reloaded only after the whole Page is reloaded, so the data are lost by this moment

Hello,

In your code-behind, first remove the controls and then add them, But if you can better explain a bit more what you wanna do, we can help more.

But if your user controls are inside updatepanel only thing which will update is what you changing from code behind. So are you changing other user controls from code behind ??