当前位置: 首页>>代码示例>>C#>>正文


C# Site.getUserGUID方法代码示例

本文整理汇总了C#中Site.getUserGUID方法的典型用法代码示例。如果您正苦于以下问题:C# Site.getUserGUID方法的具体用法?C# Site.getUserGUID怎么用?C# Site.getUserGUID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Site的用法示例。


在下文中一共展示了Site.getUserGUID方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     ////this.URLRedirect();
     if (Session[SiteConstants.UserFullName] == "" || Session[SiteConstants.UserFullName] == null)
     {
         Response.Redirect("home.aspx");
     }
     Site s = new Site();
     iFrameAccount.Text = "<iframe src=\"https://" + Global.globalMySiteUrl + "/user/account.aspx?Frame=1&Token="+s.getUserGUID()+"\" frameborder=\"0\" id=\"iframeMyAccount\" width=\"100%\" height=\"845\"></iframe>";
     Main_MasterPage main = (Main_MasterPage)Page.Master;
     main.pageTitleBar = "My Account - " + main.pageTitleBar;
     main._site_breadLink += "<li><a href=\"#\" onClick=\"location.href=location.href\"><strong>" + "My Account" + "</strong></a></li>";
     Session["CurrentChilPage"] = "myAccount.aspx";
 }
开发者ID:hugovin,项目名称:shrimpisthefruitofthesea,代码行数:14,代码来源:myAccount.aspx.cs

示例2: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session[SiteConstants.UserValidLogin] != null && (bool)Session[SiteConstants.UserValidLogin] == false)
     {
         Response.Redirect("Home.aspx");
     }
     GetVars();
     Site s = new Site();
     Main_MasterPage main = (Main_MasterPage)Page.Master;
     main.pageTitleBar = "Email Sign Up - " + main.pageTitleBar;
     string userGuid = s.getUserGUID();
     main._site_breadLink += "<li class=\"last\"><a href=# onClick=\"return false;\"><strong>My Account</strong></a></li>";
     catalogIframe.Text = "<iframe src=\"https://" + Global.globalMySiteUrl + "/Requests/CatRequest.aspx?Frame=1&Token=" + userGuid + "\" frameborder=\"0\" height=\"480\" width=\"100%\"></iframe>";
 }
开发者ID:hugovin,项目名称:shrimpisthefruitofthesea,代码行数:14,代码来源:emailsignup.aspx.cs

示例3: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     //--
     string CurrentChilPage = "";
     if (Session["CurrentChilPage"] != null)
         CurrentChilPage = Session["CurrentChilPage"].ToString();
     else
         CurrentChilPage = "contactUs.aspx";
     //--
     Site site = new Site();
     string userToken = site.getUserGUID();
     contactLiteral.Text = "<iFrame id=\"contactFrame\" name=\"contactFrame\" src=\"http://" + Global.globalMySiteUrl + "/general/contact_us.aspx?Token=" + userToken + "\" frameborder=\"0\" width=\"100%\" height=\"450\"></iFrame>";
     Main_MasterPage main = (Main_MasterPage)Page.Master;
     main._site_breadLink += "<li><a href=#>" + "About " + SiteConstants.SiteName + "</a></li><li class=\"last\"><a href=#><strong>" + "Contact Us" + "</strong></a></li>";
     main.pageTitleBar = "Contact Us - " + main.pageTitleBar;
     //this.URLRedirect();
 }
开发者ID:hugovin,项目名称:shrimpisthefruitofthesea,代码行数:17,代码来源:contactUs.aspx.cs

示例4: getUserInfo

 private void getUserInfo()
 {
     DataSet siteCQ = new DataSet();
     SiteCatalogQuote siteCQObject = new SiteCatalogQuote();
     Site s = new Site();
     siteCQ = siteCQObject.getUserIndo(s.getUserGUID().ToString());
     foreach (DataTable table in siteCQ.Tables)
     {
         foreach (DataRow row in table.Rows)
         {
             _user_email = row["Email"].ToString();
             _user_fullname = row["Fullname"].ToString();
             _user_schoolname = row["BldgName"].ToString();
             _user_add1 = row["Adress1"].ToString();
             _user_add2 = row["Adress2"].ToString();
             _user_city = row["City"].ToString();
             _user_state = row["State"].ToString();
             _user_country = row["Country"].ToString();
             _user_zip = row["Zip"].ToString();
             _user_phone = row["Phone"].ToString();
             _user_title = row["Title"].ToString();
         }
     }
 }
开发者ID:hugovin,项目名称:shrimpisthefruitofthesea,代码行数:24,代码来源:emailsignup.aspx.cs

示例5: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.IsSecureConnection != false)
     {
         string redirect = Request.Url.ToString().Replace("https://", "http://");
         Response.Redirect(redirect);
         return;
     }
     //--Login
     if (Session[SiteConstants.UserValidLogin] == null)
     {
         Session[SiteConstants.UserValidLogin] = false;
     }
     string _ulo = Request["ulo"];
     if (_ulo == "0")
     {
         Logout();
         Response.Redirect("home.aspx");
     }
     //--
     GetVars();
     //--
     Site s = new Site();
     userGUID = s.getUserGUID();
     s.Dispose();
     //--
     //-- Left Menu Active
         Session["am"] = Request.QueryString["am"];
         Session["asm"] = Request.QueryString["asm"];
     //--
     Left_Menu uc_left_menu = (Left_Menu)(Page.LoadControl("Left_Menu.ascx"));
     uc_left_menu._ActiveMenu = SiteConstants.LeftMenuActive;
     if (Session["am"] != null && Session["am"].ToString() == "3")
     {
         uc_left_menu._Finder = false;
         uc_left_menu._Subject = false;
         uc_left_menu._Browse = false;
         uc_left_menu._Resourcecenter = false;
         uc_left_menu._Aboutus = true;
     }
     LeftMenuPlaceHolder.Controls.Add(uc_left_menu);
     //--
     LoadHeadMenu();
     if ((Session["CurrentChilPage"].ToString()) == "home.aspx")
     {
         LoadAdds();
     }
     else
     { LoadBread(); }
     LoadSiteContact();
     LoadResourceCenter();
     LoadAboutUs();
     LoadSite();
 }
开发者ID:hugovin,项目名称:shrimpisthefruitofthesea,代码行数:54,代码来源:home.master.cs


注:本文中的Site.getUserGUID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。