Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mathias Valentin 60 posts 208 karma points
    May 28, 2013 @ 15:28
    Mathias Valentin
    0

    Web User Control and loginstate - Need help

    Hi,
     
    I’ve been having a “minor” issues for the last couple of days that’s been pulling my hair.
     
    I have a AspMembership enviroment in which I would like to have a regular Asp.net Web User Control (via a macro of course). I’m working on requesting some data (formatted in json) via a Umbraco generated and login protected page with an altTemplate, by using a asp.net method called “WebClient.downloadString”.
     
    Somehow I’m not able to. When trying to gain access to the page containing the JSON, I’m being returned the “Not logged in”-page. It seems that I’m not sharing the same loginstate, when using a Web User Control.
     
    Do I have to import something, change a bit in the web.config or anything else?
     
     
    I’d greatly appreciate the help.
     
    Best regards,
    Mathias
Please Sign in or register to post replies

Write your reply to:

Draft