Source Error: Line 26: if (string.IsNullOrEmpty(Request.QueryString["ReturnUrl"])) Line 27: { Line 28: if (Roles.IsUserInRole(Login1.UserName, "admin")) Line 29: Response.Redirect("~/admin/add-product.aspx"); Line 30: else i have written code on logged_in event of login control like below if (string.IsNullOrEmpty(Request.QueryString["ReturnUrl"])) { if (Roles.IsUserInRole(Login1.UserName, "admin")) Response.Redirect("~/admin/add-product.aspx"); else Response.Redirect("~/ProfileInfo.aspx"); } i am not able to understand what's the problem.. because i am free to perform any other function..
<location path="admin"> <system.web> <authorization> <allow roles="admin" /> <deny users="*"/> </authorization> </system.web> </location> <system.web>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)