Click here to Skip to main content
15,892,293 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpublish asp.net-silverlight-WCF in local iis Pin
yesu prakash19-Jul-11 21:05
yesu prakash19-Jul-11 21:05 
AnswerRe: publish asp.net-silverlight-WCF in local iis Pin
Viral Upadhyay20-Jul-11 1:58
Viral Upadhyay20-Jul-11 1:58 
QuestionHow to get Gridview to respond to Select command on Blackberry Browser (Curve 8530) Pin
David Mujica19-Jul-11 4:58
David Mujica19-Jul-11 4:58 
SuggestionRe: How to get Gridview to respond to Select command on Blackberry Browser (Curve 8530) Pin
Anurag Gandhi19-Jul-11 20:40
professionalAnurag Gandhi19-Jul-11 20:40 
QuestionJquery code is not working in IE [modified] Pin
meghamaharshi19-Jul-11 1:16
meghamaharshi19-Jul-11 1:16 
AnswerRe: Jquery code is not working in IE Pin
Shameel19-Jul-11 4:49
professionalShameel19-Jul-11 4:49 
AnswerRe: Jquery code is not working in IE Pin
Not Active19-Jul-11 7:49
mentorNot Active19-Jul-11 7:49 
QuestionASP.NET Login Control always logged in Pin
Dominick Marciano18-Jul-11 18:18
professionalDominick Marciano18-Jul-11 18:18 
I'm creating a website where I'm using a LoginView control. The code for the control is:

<asp:LoginView ID="LoginView" runat="server">
                    <LoggedInTemplate>
                        <asp:Label ID="lblPrivateClassMessage" runat="server" Text="" Font-Bold="true" Visible="false"></asp:Label>
                        <asp:ImageButton ID="imgAddToCart" runat="server" ImageUrl="~/Images/AddToCart.png" Height="40px" Width="119px" Visible="false"/>
                    </LoggedInTemplate>
                    <AnonymousTemplate>
                        <asp:Login ID="MemberLogin" runat="server"  
                        CreateUserText="Create a new user..."
                        CreateUserUrl="~/Members/Register.aspx"
                        PasswordRecoveryUrl="~/Members/RecoverPassword.aspx"
                        UserNameLabelText="E-mail address:"/>
                    </AnonymousTemplate>
                </asp:LoginView>


I haven't created any code to handle registration or logging in yet, but the controls within the LoggedInTemplate are always being displayed. So I decided to add a LoginName control within the LoggedInTemplate to determine what user name the system is saying I'm logged in as. It displays my corporate login name; in the format MYCOMPANY\UserName. Since the website is interactive with our SQL server to manage products and such I am connected to our corporate network through VPN. If I disconnect from VPN I can't test and debug my website, but if I'm connected the website always has me logged in?

What can I do so when I first go to the web site pages, it does not have me logged in so I can test logging in, logging out, etc. The interesting thing is that on a previous site that I made I didn't have this problem, albeit I did not use a LoginView anywhere on the site. Any ideas, suggestions, etc. Thanks in advance for any help you can provide; it is very much appreciated as my company wants this site done in about 2 weeks.
AnswerRe: ASP.NET Login Control always logged in Pin
Dominick Marciano18-Jul-11 18:44
professionalDominick Marciano18-Jul-11 18:44 
QuestionHelp with page.header.controls.add() throw NullReferenceException. [modified] Pin
josehidalgor18-Jul-11 12:44
josehidalgor18-Jul-11 12:44 
AnswerRe: Help with page.header.controls.add() throw NullReferenceException. Pin
Parwej Ahamad19-Jul-11 8:33
professionalParwej Ahamad19-Jul-11 8:33 
QuestionGridview To Export Excel sheet Pin
vishnukamath18-Jul-11 0:07
vishnukamath18-Jul-11 0:07 
SuggestionRe: Gridview To Export Excel sheet Pin
RaviRanjanKr18-Jul-11 1:23
professionalRaviRanjanKr18-Jul-11 1:23 
AnswerRe: Gridview To Export Excel sheet Pin
R. Giskard Reventlov18-Jul-11 4:19
R. Giskard Reventlov18-Jul-11 4:19 
Questionresponse.redirect afetr few seconds Pin
benams17-Jul-11 11:35
benams17-Jul-11 11:35 
AnswerRe: response.redirect afetr few seconds Pin
Parwej Ahamad17-Jul-11 19:48
professionalParwej Ahamad17-Jul-11 19:48 
AnswerRe: response.redirect afetr few seconds Pin
Morgs Morgan7-Aug-11 23:53
Morgs Morgan7-Aug-11 23:53 
QuestionSSRS run time design Pin
Ramkumar_S17-Jul-11 3:14
Ramkumar_S17-Jul-11 3:14 
QuestionRe: SSRS run time design Pin
Shameel17-Jul-11 23:16
professionalShameel17-Jul-11 23:16 
QuestionASP.NET Windows Based Auth Question Pin
Badg3r197715-Jul-11 5:46
Badg3r197715-Jul-11 5:46 
AnswerRe: ASP.NET Windows Based Auth Question Pin
David Mujica15-Jul-11 5:58
David Mujica15-Jul-11 5:58 
AnswerRe: ASP.NET Windows Based Auth Question Pin
Shameel17-Jul-11 23:21
professionalShameel17-Jul-11 23:21 
QuestionHow to integrate facebook on a site? Pin
alexa_adrian200114-Jul-11 23:02
alexa_adrian200114-Jul-11 23:02 
AnswerRe: How to integrate facebook on a site? Pin
Not Active15-Jul-11 2:29
mentorNot Active15-Jul-11 2:29 
GeneralRe: How to integrate facebook on a site? Pin
alexa_adrian200115-Jul-11 2:32
alexa_adrian200115-Jul-11 2:32 

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.