Murali Krishna Ravi
how to send roles from one page to another page by using forms authentication in asp.net
By Murali Krishna Ravi in ASP.NET on Jun 08 2009
  • sandeep midgule
    Jun, 2009 10

    Hiiii Murali,

                I am very glad that you are using inbuilt login controls. if you have defined roles already then its very easy to fine out the role on any page onece user logged in. simply use

     Roles.IsUserInRole(User.Identity.Name, "Diffent Roles")

    • 0
  • Imran Kabir
    Jun, 2009 9

    Hi, You can use either QueryString or Session for this purpose. the best thing is session. like string role = "any role"; Session.Add("role",role); and then get this any where by string role = (String) Session("role"); I think this will help you! Regards Imran Kabir Software Developer AGILE Technologies PUCIT Lahore

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS