hi,
base on my web.config yesterday, today i create a drop down list box for AD or ACAD to select. AD is fine to login, but when i select ACAD, then here is the error. can you tell me where did i do wrong?
i only using one form this time on web.config. please help. thanks.
Server Error in '/HUSR Website' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The specified connection string does not represent a valid LDAP adspath.
<authentication mode="Forms">
<forms loginUrl="~/Default.aspx" defaultUrl ="~/Default.aspx" timeout="2880" name=".ASPXAUTH" />
</authentication>
here is my login page code.
<table>
<tr>
<td><p class="pad1"><u><asp:Label ID="Label2" runat="server" Text="Select Domain:"></asp:Label></u></p></td>
<td><p class="pad2"> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="DomainName" DataValueField="DomainName" Width="70px">
</asp:DropDownList></p></td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBHUSRConnectionString %>" SelectCommand="SELECT [DomainName] FROM [DomainName]"></asp:SqlDataSource>
<asp:Login ID="Login1" runat="server" DisplayRememberMe="False" Height="162px" Width="377px">
</asp:Login>
here is VB
If DropDownList1.SelectedValue = "AD" Then
While DBReader.Read()
If Login1.UserName = DBReader("WM_UserName") Then
thisUserName = DBReader("WM_Comments")
Select Case thisUserName
Case "Agency"
Response.Redirect("~/Agency/Agency.aspx")
Case "Admins"
Response.Redirect("~/Admin/Default.aspx")
Case "STUHUSR"
Response.Redirect("~/Advising/StudentRecord.aspx")
Case "Faculty"
Response.Redirect("~/Faculty/Faculty.aspx")
End Select
End If
End While
End If
If DropDownList1.SelectedValue = "ACAD" Then
Response.Redirect("~/Student/StudentAssignment.aspx")
End If