using masterpage with ascx

  • Thread starter Thread starter WT
  • Start date Start date
W

WT

Hello,

Is it possible to use something like materpages in acsx controls ?

Thanks for help.
CS
 
Is it possible to use something like materpages in acsx controls ?

MasterPages are also UserControls - what are you trying to achieve...?
 
I want set set a common layout for different user controls, the result sould
be loadable with loadcontrol ?
But masterpages seem reserved for aspx pages.

??
 
I want set set a common layout for different user controls, the result
sould be loadable with loadcontrol ?
But masterpages seem reserved for aspx pages.

I think that's correct. Maybe themes are what you need...?
 
Themes doesn't propose layout as masterpages.
This point is missing in .NET.
CS
 
Hello CS,

Yes, currently the ASP.NET Master page is only adoptable to ASP.NET web
pages. As Mark has mentioned, the MasterPage feature of ASP.NET 2.0 is
implemented through usercontrol also. For your scenario, if you want to
make some partition of your usercontrols reusable and easy to update, you
can consider the following means:

** create some small usercontrols which represent those reusable parts(such
as header.ascx and footer.ascx)

** in your other usercontrols(which will be directly used on ASP.NET
pages), you can drag those small granularity usercontrols on to the larger
usercontrol to build a composite usercontro.

How do you think?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top