本文整理汇总了C#中Bobs.Usr.UrlApp方法的典型用法代码示例。如果您正苦于以下问题:C# Usr.UrlApp方法的具体用法?C# Usr.UrlApp怎么用?C# Usr.UrlApp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bobs.Usr
的用法示例。
在下文中一共展示了Usr.UrlApp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: uiLookupUserButton_Click
void uiLookupUserButton_Click(object sender, EventArgs e)
{
//string PromoterRefNumeric = rNumbers.Replace(PromoterRef.Text.Trim(), "");
//try
//{
Usr u = new Usr(int.Parse(this.uiUserAutoComplete.Value));
if (u.IsPromoter)
{
Response.Redirect(u.UrlApp("promoters"));
}
else
{
this.uiUserIsNotPromoterPanel.Visible = true;
}
//else if (u.IsSkeleton)
//{
// NoPromoterAccounts.Visible = false;
// NotFoundLabel.Visible = true;
//}
//else
//{
// NotFoundLabel.Visible = false;
// NoPromoterAccounts.InnerHtml = u.Link() + " is not in any promoter accounts";
// NoPromoterAccounts.Visible = true;
//}
//}
//catch
//{
// NoPromoterAccounts.Visible = false;
// NotFoundLabel.Visible = true;
//}
}
示例2: ChangeNumber
protected void ChangeNumber(object sender, EventArgs eventArgs)
{
if (Usr.Current.IsAdmin)
{
if (AdminPhoneNumbersDropDown.SelectedValue.Equals("0"))
Response.Redirect(CurrentPromoter.UrlApp("edit"));
else
{
Usr u = new Usr(int.Parse(AdminPhoneNumbersDropDown.SelectedValue));
Response.Redirect(u.UrlApp("edit"));
}
}
}
示例3: SpotterCodeClick
protected void SpotterCodeClick(object o, EventArgs e)
{
try
{
int k = int.Parse(SpotterCode.Text.Replace("-", string.Empty));
Usr u = new Usr(k);
if (u.IsSkeleton)
SpotterCodeError.Visible = true;
else
Response.Redirect(u.UrlApp("mygalleries"));
}
catch
{
SpotterCodeError.Visible = true;
}
}