I have created my web application on http protocol, http://SPExample.com and deploy .wsp solution on it. My application runs on both protocols, i.e http://SPExample.com and on https://SPExample.com. On page load function i have written following code. If i access my application on https protocol, then under Page_Load, what value RootUrl variable will contain? http://SPExample.com or https://SPExample.com?
RootUrl = SPContext.Current.Site.WebApplication.GetAbsoluteUrl();

0 commentaires:
Enregistrer un commentaire