Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2008

Tip: Looking for answers? Try searching our database.

UpdatePanel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rodrigo Ferreira - 31 Jan 2008 21:22 GMT
How do i load a page inside a UpdatePanel?

Thanks!
Mark Fitzpatrick - 31 Jan 2008 22:45 GMT
How do you mean load a page inside an update panel? An update panel is
contained on a page, with controls as the contents. So, you're running
within a page already and wouldn't really load another page within it. Can
you elaborate more on what you're trying to do and maybe someone here will
have a better suggestion on how to accompish it?

Signature

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

> How do i load a page inside a UpdatePanel?
>
> Thanks!
Lloyd Sheen - 31 Jan 2008 23:47 GMT
> How do you mean load a page inside an update panel? An update panel is
> contained on a page, with controls as the contents. So, you're running
[quoted text clipped - 5 lines]
>>
>> Thanks!

There is a way to do this but it takes some coding.

First use UserControls rather than pages.  A usercontrol is generally a page
without the @page directive which is replaced with a @Control directive.

You can test all the UserControls as pages until they work if you want and
then replace the @page with @control and all should be good.

Now when you know the type of page/control you need in the content area
simply load the control and use it as if if were a page.  Now in reality
this approach does not need to use master pages.  You simply define a page
(which is your master) and a placeholder to hold the usercontrol (like a
content holder).

You have to remember to load the control in the page_init phase of the
lifecyle.  You can keep the type of control in session.

Hope this helps
Lloyd Sheen

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.