Professional Web Applications Themes

redirecting to main page - ASP.NET Security

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...

  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. #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

  3. #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" <ballenNOSPAMdevelop.com> wrote in message
    news:303934632477757022294672msnews.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

  4. #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" <ballenNOSPAMdevelop.com> wrote in message
    > news:303934632477757022294672msnews.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

Similar Threads

  1. Question Redirecting page to referrer without using http_referrer
    By S S Prasad Baggam in forum ColdFusion
    Replies: 0
    Last Post: July 9th, 12:16 PM
  2. redirecting from another page besides the login page
    By WhiskyRomeo in forum ASP.NET Security
    Replies: 1
    Last Post: January 18th, 10:05 PM
  3. redirecting to a page
    By Cédric Franquet in forum PHP Development
    Replies: 2
    Last Post: September 5th, 06:03 AM
  4. redirecting from .aspx page to .asp page
    By Steve C. Orr, MCSD in forum ASP.NET General
    Replies: 1
    Last Post: July 16th, 04:25 AM
  5. Redirecting to another page, after doing something
    By reynoldscraigr@hotmail.com in forum PHP Development
    Replies: 5
    Last Post: July 15th, 09:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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