Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7493863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:12:53+00:00 2026-05-29T17:12:53+00:00

what i am tryin to do is i have common login page with 4

  • 0

what i am tryin to do is

i have common login page with 4 users each has different roles
and i have a Singel master pages where i have different contorls…..how to provide authentication to the own page with the contorls assigned to them..regarding on thier role they should be directed to the given page….

       user 1 manager he needs only some controls on the page so when he logins the master page should contain only the controls assgned to him

applys the same for all users

can any one help me……planing ,i dont know where to start….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:12:54+00:00Added an answer on May 29, 2026 at 5:12 pm

    Try This in Button Click

                   SqlConnection con = new SqlConnection("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DebitCareBankApp;Data Source=SSDEV7-HP\\SQLEXPRESS");
            string cmdStr = "select LoginType from Login where UserName='" + TxtUserName.Text + "' AND Password = '" + TxtPassword.Text + "'";
    
    
            SqlCommand cmd = new SqlCommand(cmdStr, con);
            con.Open();
            Object TypeUser = cmd.ExecuteScalar();
            con.Close();
    
            if (TypeUser != null)
            {
                LblError.Visible = false;
                LblError.Text = "";
                if (TypeUser.ToString() == "Manager")
                {
    
                    Response.Redirect("~//Administration/Manager/WorkManagement.aspx");
                }
                else if (TypeUser.ToString() == "HR")
                {
                    Response.Redirect("~//Administration/Hr/CalculateAndGeneratePayslips.aspx");
                }
                else if (TypeUser.ToString() == "Employee")
                {
                    Response.Redirect("~//Administration/CallingAgent/TodaysWork.aspx");
                }
            }
            else
            {
                LblError.Visible = true;
                LblError.Text = "Invalid Credentials Entered, Try again";                
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net website with different user types like admin, registered user. Each
I have a web application that have standard form authentication declared, like this: <login-config>
I am trying to do this tutorial https://developers.facebook.com/docs/howtos/login/getting-started/ I have done everything necessary(I think)
I have a database that can have different types of relatinships based upon what
I'm using Spring to handle security in my JSF application. I have a login
I am fresher in android.In my project I have one layout common for all
I have page main.html in it i have this code in the body tag:
Trying to avoid re-inventing the wheel here. I have a Google Web Toolkit page
I'm trying to make Facebook login with omniauth-facebook in Rails 3.2.9; I have followed
User Login functionality is very common to many applications. I would like to see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.