Hi,
Is there any technique that allows me to have a usercontrols based on
MasterPages?
I know that MasterPages are designed for aspx pages. I wonder that I can
apply them to ascx files.
Thank you,
Max 4 1311
On Aug 2, 11:09 pm, "Max2006" <alanal...@newsgroup.nospamwrote:
Hi,
Is there any technique that allows me to have a usercontrols based on
MasterPages?
I know that MasterPages are designed for aspx pages. I wonder that I can
apply them to ascx files.
Thank you,
Max
Max, I think you can create a base class which can be inherited by all
your user controls
here's a small tip how it can be implemented (it's about aspx, but
it's the same) http://www.codeguru.com/csharp/.net/...le.php/c11939/
Hi Max,
I'm afraid MasterPages cannot be used on UserControl.
However, I'm not sure your objective here. Based on my understanding,
UserControl is designed to be re-used. For example: if you need to use the
controls layout in a UserControl, simply put an instance of it on your new
UserControl.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
"Max2006" <al*******@newsgroup.nospamwrote in message
news:Og**************@TK2MSFTNGP06.phx.gbl...
Is there any technique that allows me to have a usercontrols based on
MasterPages?
No - in fact, MasterPages are UserControls too...
I know that MasterPages are designed for aspx pages. I wonder that I can
apply them to ascx files.
Generally speaking, a UserControl is designed for re-use, so you shouldn't
need to worry about this - just drop it onto the page where required, and
let its controls assume their styles from whichever CSS is in use for the
main page...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
Hi Max,
I'm writing to check the status of this post. Please feel free to let me
know if there's anything else I can help. Thanks.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nils Magnus Englund |
last post by:
Hi!
I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems ok,
but I'm really struggling with the following two problems:
1)
I want all .aspx pages to inherit from the same...
|
by: damiensawyer |
last post by:
Hello all,
I'm very new to all of this.
I have a theme and a skin (the standard ones).
I have a standard master page which is holding a custom ascx which has
a treeview in it.
Can someone...
|
by: Scott |
last post by:
I'm using a master page (mp_TableMaint.aspx) with one Content area (ID:
Content1). Content1 contains several usercontrols, which are hidden. The
goal is to show the correct control based on the...
|
by: Paul |
last post by:
I have a MasterPage that has on it several UserControls (*ascx files). I
wish to control the visibility of the controls on the content pages
according to some parameter (for example on a user...
|
by: xs |
last post by:
Hi,
Is it possible to access Master Pages from Ascx directly? In an Aspx, by
entering the following ,
<%@ MasterType VirtualPath="~/Pages/Master.Master"%> , I can easily access
its property...
|
by: Andy |
last post by:
Hey all,
I'm building out my first project using asp.net v2.0 master pages. It seems
that when you use master pages and try to reference document.body.scrollTop
it allways = zero/0. The same code...
|
by: Diane Yocom |
last post by:
I'm trying to use an Atlas UpdatePanel to just update a label when a text
box has changed. The problem is that my textbox is in a user control and
I'm using Master Pages - with the combination of...
|
by: Daniel Magliola |
last post by:
I'm having a weird behaviour when implementing localization resource
files in my website. This looks like a .Net bug to me, but it's too
obvious to be there, so I must be overlooking something.
...
|
by: robgallen |
last post by:
I have 2 user controls within a master page, and I would like one of
them to call a function in the other.
All the examples I have seen involve a page communicating with the
Master page, or with...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |