473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

using masterpage with ascx

WT
Hello,

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

Thanks for help.
CS
Feb 2 '07 #1
7 1716
"WT" <WT@newsgroups.nospamwrote in message
news:uB**************@TK2MSFTNGP05.phx.gbl...
Is it possible to use something like materpages in acsx controls ?
MasterPages are also UserControls - what are you trying to achieve...?
Feb 2 '07 #2
WT
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.

??

"Mark Rae" <ma**@markNOSPAMrae.coma écrit dans le message de news:
eh**************@TK2MSFTNGP06.phx.gbl...
"WT" <WT@newsgroups.nospamwrote in message
news:uB**************@TK2MSFTNGP05.phx.gbl...
>Is it possible to use something like materpages in acsx controls ?

MasterPages are also UserControls - what are you trying to achieve...?

Feb 3 '07 #3
"WT" <WT@newsgroups.nospamwrote in message
news:uq**************@TK2MSFTNGP04.phx.gbl...
>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...?
Feb 3 '07 #4
WT
Themes doesn't propose layout as masterpages.
This point is missing in .NET.
CS

"Mark Rae" <ma**@markNOSPAMrae.coma écrit dans le message de news:
%2****************@TK2MSFTNGP06.phx.gbl...
"WT" <WT@newsgroups.nospamwrote in message
news:uq**************@TK2MSFTNGP04.phx.gbl...
>>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...?

Feb 3 '07 #5
On Feb 3, 12:25 am, "WT" <W...@newsgroups.nospamwrote:
Hello,

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

Thanks for help.
CS
http://www.springframework.net/documentation.html

The spring framework provide containers that act as "MasterPages", or
rather, templates that hold layout information. Search the
documentation for MasterPage. This might help you.

Regards.

Feb 3 '07 #6
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.

Feb 5 '07 #7
WT
Thanks interesting.
CS
<ec*****@gmail.coma écrit dans le message de news:
11**********************@l53g2000cwa.googlegroups. com...
On Feb 3, 12:25 am, "WT" <W...@newsgroups.nospamwrote:
>Hello,

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

Thanks for help.
CS

http://www.springframework.net/documentation.html

The spring framework provide containers that act as "MasterPages", or
rather, templates that hold layout information. Search the
documentation for MasterPage. This might help you.

Regards.

Feb 6 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sergio Pereira | last post by:
Hi there. I have a bunch of UserControls on my site that look very much alike, with some surrounding markup and images. Can I use MasterPages for that (I guess not) or something similar ? I think...
2
by: Alexander Widera | last post by:
Hi, the situation is the following: There is this masterpage: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="mymaster.master.cs" Inherits="mymaster" %> <%@ Register...
9
by: RBM007 | last post by:
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same...
5
by: daniel.hedz | last post by:
I am generating a usercontrol dynamically successfully, but when I try to find that usercontrol I get a type mismatch. This is what I am doing: //Loading my usercontrol...
1
by: Rushi | last post by:
Hi All, I want to publish one Event from my Header User Control using Master pAge . And want to attach/detach this event from individual pages. Details: I have one User Control Header.ascx....
0
by: jediknight | last post by:
I have a simple project where there is a master page called MasterPage.master and some webforms which are content pages. I also have a usercontrol which is a simple calendar control popup. The...
2
by: =?Utf-8?B?RGFsZQ==?= | last post by:
I have an app with a MasterPage. In the MasterPage is a user control with several public properties and methods that I want exposed to the content page. Rather than writing several redirection...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
4
by: Christiano Donke | last post by:
Hello... I have this UserControl (login.ascx -Login), that is placed in a Masterpage (Layout.master -Layout). How can I call a sub (RedrawMenu) that is place in the code-behind of the master...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.