More in this section
Forums / General Discussions / UserControls - determine if in edit mode

UserControls - determine if in edit mode

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Dustin
    Dustin avatar
    7 posts
    15 Feb 2011
    23 Mar 2011
    Link to this post
    I have a control that does a logout and then a redirect to a url. I want the user to be able to add this control to the page and edit the url but when you add the control to the page it runs the code and does a logout and redirect so it's impossible. Is there a way to check if the control is being run from the sitefinity page editor or under the sitefinity admin other than checking the URL?
  2. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    28 Mar 2011
    Link to this post
    Hi Dustin,

    Thank you for contacting us.
    There are couple of examples posted here -

    I hope this helps. 

    the Telerik team
2 posts, 0 answered