Advertisement

06.02.2008 at 02:17PM PDT, ID: 23451349
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.5

ModalPopUpExtender and the Asp.net LoginView\Login Control not working properly

Asked by Perfectdeception in WebApplications, C# Programming Language, Programming for ASP.NET

Tags:

Hello all. This is my first post so I hope that I provide all the necessary information:

Problem:
I have an login control on my home page that when the login button is selected, programmtically I am authenticating the user and also determing wether to display a hidden mulitview.  The criteria for showing the mulitview is this:  If the user is missing some security question, then show the appropropriate view, same if they user is missing an email, or if the user is missing both Email and Security.

I have the mulitview wraped up in a <asp:panel> control
I have the <ajaxToolkit:ModalPopupExtender> on the page
TargetControlID="ctl00$cphContent$LoginView1$LoginControl$LoginImageButton" is the login controls login button.  FYI the TargetControlID is the asp.net generated name for the login controls button.
Of course I have the <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" /> on the page as well.

With this setup I am getting some really weird results or lack there off.

My page comes up fine with the login control. I put in an ID and Password to test, then click on the login button.  At this point my login control basically freezes, not the whole page but just that control.  Meaning I cant click back into the user name text box or the Password text box.  I cant select the login button.  Also the site does not log the user in either.  I just sits there with no status in the status bar or anything.  

I am unsure what is causing this behavior.

I am really just trying to get the page to do what they are doing here: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ModalPopup/ModalPopup.aspx

Attached is the code, any help would be appreciated

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
<asp:Panel ID="Panel1" runat="server">
		<div id="divPopupWindow" class="PopupDivWindow" visible="false" runat="server">
			<div class="PopupDivWindow-Container">
				<div class="PopupDivWindow-Title">
					<a href="javascript:showHide('ctl00_cphContent_divPopupWindow')"><img src="/images/btn-CloseWindow.gif" alt="Close" border="0" class="PopupDivWindow-Controls"/></a>
				</div>
				<div class="PopupDivWindow-Content">
					<asp:MultiView ID="mvPopupWindow" runat="server" Visible="false">
						<asp:View ID="viewNoEmail" runat="server">
							We have no email address for you on file. 
							<br />
							<br />
							<asp:HyperLink ID="lnkAddEmail" runat="server" NavigateUrl="~/Encrypt.aspx?url=agentInfo/agentInfo.asp" Target="_blank" Text="Click Here" />
							to update your information.
							<br />
							<br />
							<a href="javascript:showHide('ctl00_cphContent_divPopupWindow')">No remind me later.</a>
						</asp:View>
						<asp:View ID="viewNoQuestions" runat="server">
							Crump has enhanced it's security features to better protect you.  
							<br />
							<br />
							<asp:HyperLink ID="lnkManageQuestions" runat="server" NavigateUrl="~/MyAccount/ManageQuestions.aspx" Text="Click Here" />
							 to answer your personal security questions.
							<br />
							<br />
							<a href="javascript:showHide('ctl00_cphContent_divPopupWindow')">No remind me later.</a>
						</asp:View>
						<asp:View ID="viewNoEmailAndQuestions" runat="server">
							Crump has enhanced it's security features to better protect you. 
							<br />
							<br />
							<asp:HyperLink ID="lnkManageEmailAndQuestions" runat="server" NavigateUrl="~/MyAccount/ManageQuestions.aspx" Text="Click Here" />
							 to answer your personal security questions and update your email address.
							<br />
							<br />
							<a href="javascript:showHide('ctl00_cphContent_divPopupWindow')">No remind me later.</a>
						</asp:View>
					</asp:MultiView>
				</div>
			</div>
		</div>
		</asp:Panel>
		<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server" 
            TargetControlID="ctl00$cphContent$LoginView1$LoginControl$LoginImageButton"
            PopupControlID="Panel1"              
            DropShadow="true" />
 
<asp:LoginView ID="LoginView1" runat="server">
			<AnonymousTemplate>
			    <div class="Header">Login to Crump Life Insurance</div>
				<div class="LoginControl">
					<asp:Login ID="LoginControl" runat="server" onloggedin="LoginControl_LoggedIn" >
						<LayoutTemplate>
						    <br />
							<table cellspacing="0" cellpadding="0" border="0" style="width: auto;">
								<tr>
									<td>
										User Name
									</td>
									<td>
										<asp:TextBox ID="UserName" runat="server" />
									</td>
									<td>
									    <asp:RequiredFieldValidator ID="UserNameRequired" Display="static" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login" Text="*" />
									</td>
								</tr>
								<tr>
									<td>
										Password
									</td>
									<td>
										<asp:TextBox ID="Password" runat="server" TextMode="Password" />
									</td>
									<td>
									    <asp:RequiredFieldValidator ID="PasswordRequired" Display="static" runat="server" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login" Text="*" />
									</td>
								</tr>
								<tr>
									<td colspan="2" >
										<table cellspacing="0" cellpadding="0" border="0" style="width: 100%">
											<tr>
												<td>
													<asp:CheckBox ID="RememberMe" runat="server" Text="Remember Me" />
												</td>
												<td style="text-align: right;" >
													<asp:ImageButton ID="LoginImageButton" CssClass="Button" runat="server" AlternateText="Log In" CommandName="Login" style="height: 25px" ImageUrl="~/Images/logon-button.gif" ValidationGroup="Login" />
												</td>
											</tr>
										</table>
									</td>
									<td>
									</td>
								</tr>
								<tr>
									<td colspan="2" class="error" style="white-space:normal; text-align: center;">
										<asp:Literal ID="FailureText" runat="server" EnableViewState="False" />
									</td>
								</tr>
								<tr>
								    <td colspan="2" style="text-align: right;">
								        <a href="/MyAccount/UserNameRecovery.aspx" >Forgot User Name</a><br />
								        <a href="/MyAccount/PasswordRecovery.aspx" >Forgot Password</a><br />
								    </td>
								    <td></td>
								</tr>
							</table>
						</LayoutTemplate>
					</asp:Login>
				</div>
			</AnonymousTemplate>
			<LoggedInTemplate>
				<div class="Header">Welcome <asp:Label ID="lblDisplayName" runat="server" /></div>
				<div class="CaseControlCenter-Navigation">
				   <ul>
				      <asp:LoginView ID="lvCaseStatus" runat="server"><RoleGroups><asp:RoleGroup Roles="CaseStatus.ReportType.Agent,CaseStatus.ReportType.Manager,CaseStatus.ReportType.Coordinator,CaseStatus.ReportType.Organization,CaseStatus.ReportType.SalesManager,CaseStatus.ReportType.Classification"><ContentTemplate>
					    <li><a href="/CaseStatus/List.aspx"><span><img src="images/ccIcon-CaseStatus.png" alt="Case Status" width="37" height="16" class="ccIcon" />Case Status</span></a></li>
					  </ContentTemplate></asp:RoleGroup></RoleGroups></asp:LoginView>
					  <asp:LoginView ID="lvCommissions" runat="server"><RoleGroups><asp:RoleGroup Roles="ViewCommissions"><ContentTemplate>
					    <li><a href="/Encrypt.aspx?url=commissions/menu.asp" target="_blank"><span><img src="images/ccIcon-Commissions.png" alt="Commissions" width="16" height="15" class="ccIcon" />Commissions</span></a></li>
					  </ContentTemplate></asp:RoleGroup></RoleGroups></asp:LoginView>						  						  
					  <li><a href="MyAccount/MyAccount.aspx"><span><img src="images/ccIcon-MyAccount.png" alt="My Account" width="12" height="16" class="ccIcon" />My Account</span></a></li>
					  <%--<li><span><img src="images/ccIcon-Search.png" alt="Search" width="16" height="16" class="ccIcon" />Search <input type="text" name="Search" id="Search" /></span></li>--%>
					</ul>
				</div>                
			</LoggedInTemplate>
		</asp:LoginView>
[+][-]06.02.2008 at 03:05PM PDT, ID: 21696090

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 03:11PM PDT, ID: 21696129

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 03:22PM PDT, ID: 21696191

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 03:28PM PDT, ID: 21696236

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 03:48PM PDT, ID: 21696346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 03:56PM PDT, ID: 21696402

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 04:06PM PDT, ID: 21696486

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 06:39AM PDT, ID: 21700246

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 07:44AM PDT, ID: 21700893

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 01:12PM PDT, ID: 21704073

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: WebApplications, C# Programming Language, Programming for ASP.NET
Tags: C#
Sign Up Now!
Solution Provided By: sjors1309
Participating Experts: 1
Solution Grade: B
 
 
[+][-]06.03.2008 at 01:30PM PDT, ID: 21704250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628