redirecting to main page

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default redirecting to main page

    I am working on asp.net application
    what should I do so that if any user directly types the url other than
    "mainpage.aspx" of my application, he should be directed to
    "mainpage.aspx".
    I am managing user access by enabling and disabling the links on the web
    page depending on the user.

    cheers


    vips Guest

  2. Similar Questions and Discussions

    1. Start Page gives incorrect link to site's main page
      I designed a small site in Dreamweaver and imported it into Contribute. It's an ASP-based site, so the index file is index.asp, not index.html. I...
    2. redirecting from another page besides the login page
      We have forms authentication working on a website. A user is presented the login page where he can login or press a button to go to the...
    3. redirecting to a page
      Hi every one, How can I redirect to a page after having checked that user was logged in correctly .... select id_user, user_login,...
    4. redirecting from .aspx page to .asp page
      There is no great way to share session state between ASP and ASP.NET. But that doesn't mean you don't have options. Here are some common ways:...
    5. Redirecting to another page, after doing something
      Hi After I have done some work on one of my php pages, I want to go to another page, and have that display, but I can't seem to work out how to...
  3. #2

    Default Re: redirecting to main page

    You should look into the <authorization> element in web.config -- this allows
    you to specify who is and isn't allowed to see certain pages and it automatically
    redirects the user to a login page (or any page you specify) if they're not
    authorized:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfauthorizationsection.asp[/url]

    And here's a way more in depth look:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetch03.asp[/url]

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > I am working on asp.net application
    > what should I do so that if any user directly types the url other than
    > "mainpage.aspx" of my application, he should be directed to
    > "mainpage.aspx".
    > I am managing user access by enabling and disabling the links on the
    > web
    > page depending on the user.
    > cheers
    >


    Brock Allen Guest

  4. #3

    Default Re: redirecting to main page


    how to use roles ...do i need to create tables ??
    what should be the table strcuture ..
    can u give me an example of creating this security model ...if I am using
    windows based authentication.

    please help...



    "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
    news:303934632477757022294672@msnews.microsoft.com ...
    > You should look into the <authorization> element in web.config -- this
    allows
    > you to specify who is and isn't allowed to see certain pages and it
    automatically
    > redirects the user to a login page (or any page you specify) if they're
    not
    > authorized:
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfauthorizationsection.asp[/url]
    >
    > And here's a way more in depth look:
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetch03.asp[/url]
    >
    > -Brock
    > DevelopMentor
    > [url]http://staff.develop.com/ballen[/url]
    >
    >
    >
    > > I am working on asp.net application
    > > what should I do so that if any user directly types the url other than
    > > "mainpage.aspx" of my application, he should be directed to
    > > "mainpage.aspx".
    > > I am managing user access by enabling and disabling the links on the
    > > web
    > > page depending on the user.
    > > cheers
    > >
    >
    >
    >

    vips Guest

  5. #4

    Default Re: redirecting to main page

    The docs cover that. Also, the second link I gave you should give you more
    insights. But yes, windows authentication is supported and it does allow
    you to specify the windows groups.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > how to use roles ...do i need to create tables ??
    > what should be the table strcuture ..
    > can u give me an example of creating this security model ...if I am
    > using
    > windows based authentication.
    > please help...
    >
    > "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
    > news:303934632477757022294672@msnews.microsoft.com ...
    >
    >> You should look into the <authorization> element in web.config --
    >> this
    >>
    > allows
    >
    >> you to specify who is and isn't allowed to see certain pages and it
    >>
    > automatically
    >
    >> redirects the user to a login page (or any page you specify) if
    >> they're
    >>
    > not
    >
    >> authorized:
    >>
    > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgen[/url]
    > ref/html/gngrfauthorizationsection.asp
    >
    >> And here's a way more in depth look:
    >>
    > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnet[/url]
    > sec/html/SecNetch03.asp
    >
    >> -Brock
    >> DevelopMentor
    >> [url]http://staff.develop.com/ballen[/url]
    >>> I am working on asp.net application
    >>> what should I do so that if any user directly types the url other
    >>> than
    >>> "mainpage.aspx" of my application, he should be directed to
    >>> "mainpage.aspx".
    >>> I am managing user access by enabling and disabling the links on the
    >>> web
    >>> page depending on the user.
    >>> cheers


    Brock Allen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139