Click here to Skip to main content
15,926,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Display / visible method in Javascript Pin
Michael Sync30-Aug-07 21:40
Michael Sync30-Aug-07 21:40 
AnswerRe: Display / visible method in Javascript [modified] Pin
Imran Khan Pathan30-Aug-07 18:55
Imran Khan Pathan30-Aug-07 18:55 
QuestionTotal sum at child gridview footer Pin
hallie30-Aug-07 15:07
hallie30-Aug-07 15:07 
Questionparallel programming in c#????????? Pin
mr.mohsen30-Aug-07 12:36
mr.mohsen30-Aug-07 12:36 
AnswerRe: parallel programming in c#????????? Pin
ChrisKo31-Aug-07 13:45
ChrisKo31-Aug-07 13:45 
Question&ltasp:Login&gt within &ltAnonymousTemplate&gt? Pin
dandy7230-Aug-07 9:32
dandy7230-Aug-07 9:32 
AnswerRe: &ltasp:Login&gt within &ltAnonymousTemplate&gt? - why, yes Pin
dandy7230-Aug-07 9:44
dandy7230-Aug-07 9:44 
GeneralRe: &ltasp:Login&gt within &ltAnonymousTemplate&gt? - why, yes Pin
dandy7230-Aug-07 10:05
dandy7230-Aug-07 10:05 
Okay, so here's a real question (jeez, I hate seeing 3 messages in a row in a thread all originating from myself...before anybody else has had a chance to write anything...)

I already had this page written and working before I tried adding the login control. Now I've moved the controls (that I only want authenticated users to see) within the <LoggedInTemplate> tag. Hit F5...and all references (in the code-behind) to those controls result in "The name 'xxx' does not exist in the current context".

For example, I have a listbox (lstCategories) within the <LoggedInTemplate> tag. It'll complain that this doesn't exist (anymore--it was working fine until I added the login stuff).

I've tried variations such as LoginView1.lstCategories, LoginView1.LoggedInTemplate.lstCategories, etc, but IntelliSense tells me none of that is valid.

It looks so far like my only option is to move everything I put in <LoggedInTemplate> outside of it, put that inside an <asp:Panel> instead, and set its visible state depending on whether HttpContext.Current.User.Identity.IsAuthenticated returns true or not.

Is this the best approach? The .aspx would be *so* much cleaner if I could leave those controls within <LoggedInTemplate>...not to mention having to manage visibility based on authentication state...
QuestionPlease help asp Linkbutton Pin
netJP12L30-Aug-07 8:22
netJP12L30-Aug-07 8:22 
AnswerRe: Please help asp Linkbutton Pin
netJP12L30-Aug-07 10:51
netJP12L30-Aug-07 10:51 
GeneralRe: Please help asp Linkbutton Pin
mihirhp30-Aug-07 19:38
mihirhp30-Aug-07 19:38 
AnswerRe: Please help asp Linkbutton Pin
Imran Khan Pathan30-Aug-07 19:13
Imran Khan Pathan30-Aug-07 19:13 
GeneralRe: Please help asp Linkbutton Pin
netJP12L30-Aug-07 19:40
netJP12L30-Aug-07 19:40 
GeneralRe: Please help asp Linkbutton Pin
Imran Khan Pathan30-Aug-07 20:54
Imran Khan Pathan30-Aug-07 20:54 
QuestionGetting Dynamic Rows From Code Behind Pin
Muntyness30-Aug-07 7:03
Muntyness30-Aug-07 7:03 
AnswerRe: Getting Dynamic Rows From Code Behind Pin
N a v a n e e t h30-Aug-07 7:18
N a v a n e e t h30-Aug-07 7:18 
QuestionFree asp.net2.0 host Pin
aransiola30-Aug-07 6:37
aransiola30-Aug-07 6:37 
AnswerRe: Free asp.net2.0 host Pin
Pete O'Hanlon30-Aug-07 9:49
mvePete O'Hanlon30-Aug-07 9:49 
QuestionRemember me Next time Pin
aransiola30-Aug-07 6:34
aransiola30-Aug-07 6:34 
Questionhow to send a file using webservices? Pin
steve_a_p30-Aug-07 5:39
steve_a_p30-Aug-07 5:39 
AnswerRe: how to send a file using webservices? Pin
l0kke30-Aug-07 6:57
l0kke30-Aug-07 6:57 
QuestionRe: how to send a file using webservices? Pin
steve_a_p30-Aug-07 9:24
steve_a_p30-Aug-07 9:24 
AnswerRe: how to send a file using webservices? Pin
petersgyoung30-Aug-07 15:26
petersgyoung30-Aug-07 15:26 
QuestionRe: how to send a file using webservices? Pin
steve_a_p30-Aug-07 22:47
steve_a_p30-Aug-07 22:47 
AnswerRe: how to send a file using webservices? Pin
petersgyoung30-Aug-07 23:57
petersgyoung30-Aug-07 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.