-
Mar 2nd, 2015, 02:53 PM
#1
Thread Starter
Hyperactive Member
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
-
Mar 9th, 2015, 08:31 PM
#2
Frenzied Member
Re: no access to page when passing a querystring
Could you post your web.config and page_load for that specific page?
Justin
-
Mar 29th, 2015, 12:23 PM
#3
Thread Starter
Hyperactive Member
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
-
Mar 30th, 2015, 08:36 AM
#4
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|