Click here to Skip to main content
15,914,820 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Related to GridView Pin
R. Giskard Reventlov20-Jul-11 6:58
R. Giskard Reventlov20-Jul-11 6:58 
AnswerRe: Related to GridView Pin
Prasanta_Prince20-Jul-11 19:47
Prasanta_Prince20-Jul-11 19:47 
Questionhow can i pass values by using post not get method? Pin
buffering8320-Jul-11 5:00
buffering8320-Jul-11 5:00 
Answersession variables Pin
David Mujica20-Jul-11 5:11
David Mujica20-Jul-11 5:11 
QuestionCode for Downloading from website problem Pin
kbalias19-Jul-11 23:22
kbalias19-Jul-11 23:22 
AnswerRe: Code for Downloading from website problem [modified] Pin
Viral Upadhyay20-Jul-11 1:50
Viral Upadhyay20-Jul-11 1:50 
AnswerRe: Code for Downloading from website problem Pin
Not Active20-Jul-11 2:07
mentorNot Active20-Jul-11 2:07 
AnswerRe: Code for Downloading from website problem Pin
Prasanta_Prince20-Jul-11 19:49
Prasanta_Prince20-Jul-11 19:49 
AnswerRe: Code for Downloading from website problem Pin
kbalias21-Jul-11 20:35
kbalias21-Jul-11 20:35 
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 

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.