How to set RequireSssl Property Programmatically from Master template
What I'd like to do is (pseudo code from the master page template):
1.if (_forceSSL && (!Request.IsLocal) && (!Request.IsSecureConnection)) 2. 3. //override sitefinity requireSSL checkbox in admin 4. Page.RequireSsl = true; //HOW DO I DO THIS?5. 6. //redirect page 8. Hi Ben,
You should work with PageData object and its RequireSsl property. PageData stores the page information/data for each PageNode. You can get a page node using the fluent or standard API.
After you set the RequireSsl property you should call SaveChanges() method of the PageManager ( if you use the standard API or SaveChanges() from the fluent facade)
Kind regards,
Ivan Dimitrov
the Telerik team