Results 1 to 4 of 4

Thread: no access to page when passing a querystring

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Stockholm, Sweden
    Posts
    316

    no access to page when passing a querystring

    Hi,

    I have a page on my website with access granted to loggged in users (I'm using the built in asp.net membership database). This works.

    however, when passing a querystring parameter in combination with that url adress, the user is denied access.

    Do you guys recognize this? How do I solve it?

    Thanks!

    Fuga.
    Visual Studio 2010 xpress, Visual Studio 2008 pro, SQL Server, SQL Server management studio 2008 r2, MSAccess

  2. #2
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Re: no access to page when passing a querystring

    Could you post your web.config and page_load for that specific page?

    Justin
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Stockholm, Sweden
    Posts
    316

    Re: no access to page when passing a querystring

    Thanks for repying.

    sure, this is the relevant config section:
    Code:
      <location path="agera.aspx">
        <system.web>
          <authorization>
              <allow roles="FAB, Handläggare"/>
              <deny users="*"/>
          </authorization>
        </system.web>
      </location>
    and this is the vb code, which generates a div that the user clicks on to pass the querystring:
    Code:
                    Me.doclist.Controls.Add(New LiteralControl("<div class=""doclist"" onclick=""javascript:window.location.href='Agera.aspx?doc=" & rw.Item("DocFileName") & "';"" onmouseover=""javascript:this.style.cursor='pointer';"">" & rw.Item("DocName") & " </div>"))
    Thanks!
    Visual Studio 2010 xpress, Visual Studio 2008 pro, SQL Server, SQL Server management studio 2008 r2, MSAccess

  4. #4
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Re: no access to page when passing a querystring

    Maybe htmlencode your datarow's value that you use in the querystring.
    Then in the Load event on Agera.aspx, htmldecode that querystring parameter.
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

Posting Permissions

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



Click Here to Expand Forum to Full Width