本文整理汇总了C#中Util.GetCustomerIDFromUsername方法的典型用法代码示例。如果您正苦于以下问题:C# Util.GetCustomerIDFromUsername方法的具体用法?C# Util.GetCustomerIDFromUsername怎么用?C# Util.GetCustomerIDFromUsername使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Util
的用法示例。
在下文中一共展示了Util.GetCustomerIDFromUsername方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID];
Util util = new Util();
if (!IsPostBack)
{
string username = Request.QueryString.Get("user");
string email = null;
if (username == null)
email = Request.QueryString.Get("email");
string confirm = Request.QueryString.Get("confirm");
ConfirmationNumber.Text = confirm;
string order = Request.QueryString.Get("order");
string[] skus = order.Split("_".ToCharArray());
string customer_id = null;
if (username != null)
{
customer_id = util.GetCustomerIDFromUsername(State, username);
}
else
{
customer_id = util.GetCustomerIDFromEmail(State, email);
}
if (customer_id != null)
{
State["CustomerID"] = customer_id;
util.SetPaidService(State, confirm, customer_id, skus);
}
else
{
Warning.Visible = true;
}
}
}
示例2: ApplicationInit
private bool ApplicationInit(Hashtable State, RadComboBox AppsList, string AppID, string AppCGCustomerCode)
{
Util util = new Util();
string app = AppsList.SelectedValue;
if (app.Contains("->"))
return false;
State["SelectedApp"] = app;
State["SelectedAppType"] = util.GetAppType(State);
State["application_id"] = util.GetAppID(State);
AppID = State["application_id"].ToString();
BillingUtil billingutil = new BillingUtil();
AppCGCustomerCode = billingutil.getAppPaidSKU(State);
if (State["SelectedDeviceType"] == null)
{
State["SelectedDeviceView"] = State["SelectedDeviceType"] = Constants.IPHONE;
}
XmlUtil x_util = new XmlUtil();
State["SelectedDeviceView"] = State["SelectedDeviceType"] = x_util.GetAppDeviceType(State);
string username = State["Username"].ToString();
State["customer_id"] = util.GetCustomerIDFromUsername(State, username);
return true;
}