Question

Sorry for this pretty simple question: I have a Master Page with a menu located at left, and an update panel inside a ContentPlaceHolder located at right. When I click a menu item, and use NavigateUrl property, it loades a page in the whole browser screen. How can I make it loades inside a certain region, in this case the update panel?

Thanks in advance

Was it helpful?

Solution

The quick and dirty answer is to use an iframe.

I personally am not a big fan of iframes and would recommend that if you are truly looking for a "load in place" type solution that you research a more client-side solution than ASP.NET WebForms using UpdatePanels, such as jQuery/AJAX/Templating, KnockoutJS, BackboneJS, AngularJS or Ember.js.

OTHER TIPS

As a different option you can convert the aspx page into a UserControl. Then you can load the UserControl in the update panel.

If you also want to have an aspx page you can create a different aspx page that contains that same UserControl.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top