Note that there are some explanatory texts on larger screens.

plurals
  1. PORedirecting based on the user's role
    text
    copied!<p>i'm having some problem over here..when user enter their id and password,it will show up the main page and its for user but when admin or staff enter their id,it will enter the user's main page and i have to click admin site on the top hyperlink where it automatically logout and once i enter back admin passwrd or staff passwrd then only it redirect to admin page or staff page.how to make it like once user enter their passwrd it redirect to user page and once admin enter admin password or staff enter their password in the login it redirect to admin or staff ?I have 3 roles over here which are admin,staff and user.Hereby i'll provide you my aspx code and also my vb code which is running behind the program.please do assist me.thanks</p> <p>ASPX</p> <pre><code> &lt;asp:Login ID="Login1" runat="server" BackColor="#009933" BorderColor="Red" BorderPadding="4" BorderStyle="Ridge" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="Red" DestinationPageUrl="~/MainPage.aspx" style="text-align: center" Height="171px" Width="266px" VisibleWhenLoggedIn="True" TextLayout="TextOnTop"&gt; &lt;TextBoxStyle Font-Size="0.8em" /&gt; &lt;LoginButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" /&gt; &lt;InstructionTextStyle Font-Italic="True" ForeColor="Black" /&gt; &lt;TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" ForeColor="White" /&gt; &lt;/asp:Login&gt; </code></pre> <p>VB</p> <pre><code>Partial Class Login Inherits System.Web.UI.Page </code></pre> <p>End Class</p> <p>please do guide me in this.need this urgent thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload