获取URL

重点是:

HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.ApplicationPath

 

string strHref = string.Format("http://{0}?SignID={1}&CID={2}&FID={3}&EntID={4}&ID={5}", HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.ApplicationPath + "/BaseForm/FormHandler.aspx", signID, mailerID, flowID, enterpriseID, empID);

 

 

你可能感兴趣的:(获取URL)