473,411 Members | 1,918 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,411 software developers and data experts.

master pages & authorization controls

dmm
Hi all,

I am using master pages and am having a bit of an issue. As part of my
masterpage I want to display the user's current logged in status using the
LoginView. However I get the following error:
Control 'loginView' of type 'LoginView' must be placed inside a form tag
with runat=server.
I can see that the LoginView is indeed being rendered outside the form tag -
which seems to surround the content placeholder - so I understand the
message, but this seems to seriously affect the utility of the MasterPage
proposition. Presumably even the Menu control would suffer from this issue.

Is there a workaround for this???

Cheers
May 27 '06 #1
3 3760
dmm
bump

"dmm" <***@***.com> wrote in message
news:uq**************@TK2MSFTNGP05.phx.gbl...
Hi all,

I am using master pages and am having a bit of an issue. As part of my
masterpage I want to display the user's current logged in status using the
LoginView. However I get the following error:
Control 'loginView' of type 'LoginView' must be placed inside a form tag
with runat=server.
I can see that the LoginView is indeed being rendered outside the form
tag - which seems to surround the content placeholder - so I understand
the message, but this seems to seriously affect the utility of the
MasterPage proposition. Presumably even the Menu control would suffer from
this issue.

Is there a workaround for this???

Cheers

May 28 '06 #2

"dmm" <***@***.com> wrote in news:uq**************@TK2MSFTNGP05.phx.gbl:
Hi all,

I am using master pages and am having a bit of an issue. As part of my
masterpage I want to display the user's current logged in status using
the LoginView. However I get the following error:
Control 'loginView' of type 'LoginView' must be placed inside a form
tag with runat=server.
I can see that the LoginView is indeed being rendered outside the form
tag - which seems to surround the content placeholder - so I
understand the message, but this seems to seriously affect the utility
of the MasterPage proposition. Presumably even the Menu control would
suffer from this issue.

Is there a workaround for this???

Cheers


I am using a login control on a master page without issue. The designer
sometimes does wierd things to the source and it is possible that it has
moved the <asp:loginview> tag before the <form> tag. Just edit the
source and move the <asp:loginview> and all text up to it's closing tag
</asp:loginview> to the first line under the Form tag in your master
page. I am also using a loginname and loginstatus control inside the
loginview, both within the master page.

--
*~!NumbLock!~*
May 28 '06 #3
dmm
Oh, that was simple. My kind of bug.

Thanks

"NumbLock" <pc*****@yahoo.com> wrote in message
news:Xn****************************@207.46.248.16. ..

"dmm" <***@***.com> wrote in news:uq**************@TK2MSFTNGP05.phx.gbl:
Hi all,

I am using master pages and am having a bit of an issue. As part of my
masterpage I want to display the user's current logged in status using
the LoginView. However I get the following error:
Control 'loginView' of type 'LoginView' must be placed inside a form
tag with runat=server.
I can see that the LoginView is indeed being rendered outside the form
tag - which seems to surround the content placeholder - so I
understand the message, but this seems to seriously affect the utility
of the MasterPage proposition. Presumably even the Menu control would
suffer from this issue.

Is there a workaround for this???

Cheers


I am using a login control on a master page without issue. The designer
sometimes does wierd things to the source and it is possible that it has
moved the <asp:loginview> tag before the <form> tag. Just edit the
source and move the <asp:loginview> and all text up to it's closing tag
</asp:loginview> to the first line under the Form tag in your master
page. I am also using a loginname and loginstatus control inside the
loginview, both within the master page.

--
*~!NumbLock!~*

May 31 '06 #4

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

Similar topics

5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
14
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a...
20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
1
by: Fred Nelson | last post by:
Hi: I'm working on one of my first web applications in asp.net 2.0 and I'm having a problem with absolute versus relative positioning of controls that I place on pages that use master pages with...
1
by: gilly3 | last post by:
I'd like to use a master page for (nearly) every page in my ASP.NET 2.0 website. I also have some webpages that I'd like to protect by using forms authorization. I have a page that requires...
4
by: Greg | last post by:
I'm guessing the problem I'm having has something to do with Master Pages or DetailsView because the exact same code works fine on a page without a Master Page and DetailsView controls. The...
1
by: Rob R. Ainscough | last post by:
I'm running into a problem with Master Pages. I have some "absolute" controls (labels, textboxes) that I position on the page using: ControlObject.Style.Add("Top", "250") or ...
17
by: MeerkatInFrance | last post by:
There comes a time when you know you are not going to be able to work something out yourself, however hard you try. I have reached that moment. I have a master page and a slave page (or whatever...
4
by: Janet | last post by:
Hi, I'm trying to use the master/detail page to display the information of staff. The master page will display some general information, while the differen detail pages will show the different...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.