Showing posts with label attribute. Show all posts
Showing posts with label attribute. Show all posts

Saturday, March 31, 2012

The asp:LoginStatus

I can display the login status using the <asp:LoginStatus> tag.

Unfortunatelly, the object LoginStatus seems not to provide an attribute to
test it.

How can you read from the code (VB script) the login status?Progman
if page.user.identity.isauthenticated then
... user is logged in
else
... user is not logged in
endif

Good Luck
DWS

"Progman" wrote:

> I can display the login status using the <asp:LoginStatus> tag.
> Unfortunatelly, the object LoginStatus seems not to provide an attribute to
> test it.
> How can you read from the code (VB script) the login status?
>

The asp:LoginStatus

I can display the login status using the <asp:LoginStatus> tag.
Unfortunatelly, the object LoginStatus seems not to provide an attribute to
test it.
How can you read from the code (VB script) the login status?Progman
if page.user.identity.isauthenticated then
... user is logged in
else
... user is not logged in
endif
Good Luck
DWS
"Progman" wrote:

> I can display the login status using the <asp:LoginStatus> tag.
> Unfortunatelly, the object LoginStatus seems not to provide an attribute t
o
> test it.
> How can you read from the code (VB script) the login status?
>
>

Tuesday, March 13, 2012

The Location attribute is not supported by the OutPutCache directive??when i set in the di


--
Thanks and Regards,

Amit Agarwal
Software Programmer(.NET)

--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004You may need to supply more information. How you are using it etc. Note:-

Location
One of the OutputCacheLocation enumeration values. The default is Any.
CAUTION This attribute is not supported for @. OutputCache directives
included in user controls (.ascx files).

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

The MasterPageFile attribute is not supported by the page directive.

While just copying and pasting the standard master page example from the microsoft website: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/masterpages.asp

I'm constantly receiving the following error, what am I doing wrong here?

-------

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The 'MasterPageFile' attribute is not supported by the 'page' directive.

Source Error:

Line 1: <%@dotnet.itags.org. Page MasterPageFile="~/Simple.master" %>
Line 2: <asp:Content
Line 3: ID="Content1"

-------
Thanks!Are you using the .NET 2.0 Framework? It's still in beta and not released to the "masses" just yet, that's why I ask.
well damn :( it's a asp.net v2.0 feature :(
Yea I have a MSDN member ship and have been using 2.0 for a few months now. It is simply wonderful. There are a ton of changes that will make developing pages a lot faster. Productivity is much improved!
I really can't WAIT, just the masterpagefile thingy rocks!