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.
larsbehner
Member
38 Points
9 Posts
How do I reach my goal? jQuery Ajax with "loading" page parts
May 31, 2012 07:29 AM|LINK
Hi!
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.
Thx
Lars