how to send roles from one page to another page by using forms authentication in asp.net
Murali Krishna Ravi
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")
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