Last post Jun 01, 2012 10:03 AM by Song-Tian - MSFT
May 31, 2012 07:29 AM|larsbehner|LINK
I'm building a website for managing Active Directory users. The page is basicly build in ASP.NET C# and works fine like that. So now I have discovered jQuery. I have added some great functions like the Dialog to some custom made Buttons for enable/disable
user account, and so on..
Also I have moved some of the code from the main page to subset of aspx pages. The sub pages holds information about the user object. I load the pages with jQuery ajax into a div element, with the "loading" information beeing pressented first. Works fine.
Only thing is that I have to empty the div's for every page postback. Else I got errors.
So here is the issue: Now I want to move the custom controllers down to a sub page and load it with jQuery ajax. But how can I respond to the events in the sub aspx page? If I click a button in a page it will just show Page not found.
I'm guessing I do not quite understand the best way of getting to my goal. Maybe someone have a good solution for me? :)
The best way as I see it now, is to have the main page not doing postbacks, and load all the aspx sub pages into div's in the main page. Then each element of the page would load with jQuery Ajax, and I would be in controll of what part is loading when.
Jun 01, 2012 10:03 AM|Song-Tian - MSFT|LINK
I suggest you using jquery lazy load.
For more details, please refer to: