customer error pages

Posted by Nimmy under ASP.NET on 9/10/2008 | Views : 1491 | Status : [Member] | Replies : 3
hai friends, i have 2 login pages in my project.one for admin another for user.how can we load single page and load its contents dynamically based on the role?i need code in advance.




Responses

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

try this table handle for this roles.

Mark as Answer if its helpful to you

Nimmy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Majith on: 9/10/2008 [Member] Starter

Up
0
Down
Hi Nimmy ,

why are you using two login pages for users login, Instead of that I can suggest Either you can perform by one login page using Role based Authentication.

For more information refer the below article

http://www.dotnetfunda.com/articles/article114.aspx

Thanks

Nimmy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 9/11/2008 [Member] Starter

Up
0
Down
Option 1
You can create a page and pass type as querystring.

for eg.

http://localhost/logindemo.aspx?type=admin
http://localhost/logindemo.aspx?type=user

in the logindemo.aspx page look for type querystring value and redirect to the admin or user login page.

Option 2
or you can put both login content into two different asp:panel in the same page and based on the querystring value make them visible = true or false.

Option 3
Majith described above.

Regards,
Raja, USA

Nimmy, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response