NiceToMytyuk
NiceToMytyuk

Reputation: 4277

Can i have two Default ASPX pages?

Actually i've started to programm in ASPX using VB.NET as language i've made a client part website where the user can see different kind of products in the Default.aspx page and open a support ticket in another page.

Now i would make an admin part of the website and make a different Default page for it. So the question is it possible to show another Default.aspx page if an admin is logged?

Actually i'd accept all suggestion on how could i do it as better as possible.

Upvotes: 1

Views: 111

Answers (2)

NiceToMytyuk
NiceToMytyuk

Reputation: 4277

Solved by using

  FormsAuthentication.SetAuthCookie(username.Value, True)

Instead of

FormsAuthentication.RedirectFromLoginPage(username.Value, True)

Upvotes: 2

Dionny Prensa
Dionny Prensa

Reputation: 139

It is not necessary. You can have two pages and redirect or show the Admin's Page when the administrator is logged in.

Upvotes: 1

Related Questions