UpdatePanel

How do i load a page inside a UpdatePanel?

Thanks!
Rodrigo Ferreira [ Do, 31 Januar 2008 22:22 ] [ ID #1920773 ]

Re: UpdatePanel

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?


--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression



"Rodrigo Ferreira" <Rodrigo.ferreira [at] ufrgs.br> wrote in message
news:OeDYM9EZIHA.1132 [at] TK2MSFTNGP06.phx.gbl...
> How do i load a page inside a UpdatePanel?
>
> Thanks!
>
Mark Fitzpatrick [ Do, 31 Januar 2008 23:45 ] [ ID #1920786 ]

Re: UpdatePanel

"Mark Fitzpatrick" <markfitz [at] fitzme.com> wrote in message
news:4036867F-83C2-4A65-9EFD-AF54F94091FF [at] microsoft.com...
> 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?
>
>
> --
> Hope this helps,
> Mark Fitzpatrick
> Microsoft MVP - Expression
>
>
>
> "Rodrigo Ferreira" <Rodrigo.ferreira [at] ufrgs.br> wrote in message
> news:OeDYM9EZIHA.1132 [at] TK2MSFTNGP06.phx.gbl...
>> How do i load a page inside a UpdatePanel?
>>
>> 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 [at] page directive which is replaced with a [at] Control directive.

You can test all the UserControls as pages until they work if you want and
then replace the [at] page with [at] 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
Courtney [ Fr, 01 Februar 2008 00:47 ] [ ID #1921573 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » UpdatePanel

Vorheriges Thema: Permission Issues?
Nächstes Thema: Raise Event