At your level, rather than giving you a direct answer, I will direct
you to a few resources that will give you comprehensive information:

MSDN:
http://msdn.microsoft.com/en-us/library/53s18z5c(VS.80).aspx

4Guys: (Read all the ASP.NET articles linked from this page)
http://www.4guysfromrolla.com/webtech/LearnMore/Authentication.asp

One last thing: Don't talk about VBScript when you're working in .NET.
You should realize that you are working in ASP.NET with VB (.NET/
2005/2008)

On Feb 12, 8:25 pm, "[email protected]" <[email protected]>
wrote:
> I was see this method in ASP .Net with C# but I have created my web
> site in ASP .Net with Vb... See my tutorial C# script
>
> <!-- This is C# Script using in Default.aspx.cs
> -->
> System.Web.UI.Page
> User.IsInRole("Admin")) Server.Transfer("Admin.aspx")
>
> <!-- Set Hyperlink by using NavigateUrl
> This is Using in Default.aspx
>   -->
>         <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/
> SignUp.aspx">Sign Up</asp:HyperLink><br />
>         <br />
>
> So this type of code If I'm use so it's possible but I want to do in
> this script on default.aspx.vb
> Just I don't know how to do vbs?
>
> Please help me...
>
> On Feb 7, 10:40 am, Cerebrus <[email protected]> wrote:
>
>
>
> > How are you redirecting the non-Admin users to the Default page ? Show
> > us (that part of) the code.
>
> > On Feb 7, 1:24 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > Dear Sir/Madam,
> > >                 I'm making Login System in ASP .NET 2.0 with vb in
> > > Visual Web Developer 2005. I have created default, login and sign up
> > > page Successfully create but I can't create admins page Successfully.
> > > I have problem for admins special page. I want to when admin logins in
> > > our site project, he can get special page where can admins new login
> > > so now you can understand my problem. I want only, Admins get his New
> > > Page [Not a Public Default.aspx page] but I don't know Which scrip I
> > > use in Default.aspx.vb via for connect Admin.aspx?
>
> > > For Example:
> > > 1. Default.aspx [When Public Login in login.aspx he/she can get this
> > > page]
> > > 2. Admin.aspx [When Administrator login in login.aspx he/she can get
> > > this page]
>
> > >            So I think Default.aspx.vb page in we can make VB Script so
> > > it is possible by using "If" with Boolean (bit) and Redirect()... but
> > > I don't know how to create Vb script. Now a days I'm Learning so
> > > please help me.
>
> > > Thank you very much for give me time...
>
> > > Regards,
> > > Chinmay- Hide quoted text -
>
> - Show quoted text -

Reply via email to