+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / UserControls - determine if in edit mode

UserControls - determine if in edit mode

2 posts, 0 answered
  1. Dustin
    Dustin avatar
    7 posts
    Registered:
    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
    Registered:
    28 Oct 2016
    28 Mar 2011
    Link to this post
    Hi Dustin,

    Thank you for contacting us.
    There are couple of examples posted here - http://www.sitefinity.com/devnet/forums/sitefinity-3-x/general-discussions/designmode-cmspagemode-edit-etc.aspx

    I hope this helps. 

    Regards,
    Georgi
    the Telerik team
2 posts, 0 answered