Showing posts with label hand. Show all posts
Showing posts with label hand. Show all posts

Monday, March 26, 2012

How do I debug the ...Behavior.js?

Im allways trying to solve my problems at first hand, but this Atlas-technology gives me a bit headacheGeeked

How do I debug my way through a behavior.js file? For instance, the DynamicPopulateBehavior.js. It would be nice to take a closer look at why the webservicecall failsCool

Cheers
Janus

Hi Janus,

You should first check outhttp://atlas.asp.net/docs/Overview/debug.aspx, which briefly explains how you can debug using VS. The VS approach is still a little rough through, so it can be nicely augmented with client-side only debuggers such asFireBug.

Thanks,
Ted

Wednesday, March 21, 2012

how can i make ajax work this way?

on my form, clicking on the navigation items on the left of screen will filter/refresh the gridview on the right hand side,

how can i achieve this using Ajax and not let the navigation items to reload themselves? (only the gridview refreshes)

Just make sure you only wrap the content you want to be dynamic with theUpdatePanel. That should be all you need. Start there and let us know if you're not getting what you want.


Thanks flanakin, in my applicaton, the dropdownlist has already been placed outside of UpdatePanel. the whole page reloads because the dropdownlist is "autopostback".

I found 3 lines of code that helped me to stop the whole page reload:

<Triggers>

<asp:AsyncPostBackTriggerControlID="DropDownList1"EventName="SelectedIndexChanged"/></Triggers>

I put the code inside the code of UpdatePanel, it worked, This can also be achieved by setting "Triggers" property of the UpdatePanel in design view