本文整理匯總了C#中Attributes.GetName方法的典型用法代碼示例。如果您正苦於以下問題:C# Attributes.GetName方法的具體用法?C# Attributes.GetName怎麽用?C# Attributes.GetName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Attributes
的用法示例。
在下文中一共展示了Attributes.GetName方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RenderControl
public override System.Web.UI.WebControls.WebControl RenderControl(Attributes.Setting setting, Object sender)
{
tb.ID = setting.GetName();
tb.TextMode = TextBoxMode.Password;
tb.CssClass = "guiInputText guiInputStandardSize";
return tb;
}
示例2: RenderControl
public override System.Web.UI.WebControls.WebControl RenderControl(Attributes.Setting setting, Object sender)
{
cc.ShowXPath = false;
cc.ID = setting.GetName().Replace(" ", "_");
cc.Value = _val;
return (System.Web.UI.WebControls.WebControl)cc;
}
示例3: RenderControl
public override System.Web.UI.WebControls.WebControl RenderControl(Attributes.Setting setting, Object sender)
{
fu.ID = setting.GetName();
if (!string.IsNullOrEmpty(_val))
fu.FileName = _val;
return fu;
}
示例4: RenderControl
public override System.Web.UI.WebControls.WebControl RenderControl(Attributes.Setting setting, Object sender)
{
tb.ID = setting.GetName();
tb.TextMode = TextBoxMode.SingleLine;
tb.CssClass = "guiInputText guiInputStandardSize";
if (string.IsNullOrEmpty(tb.Text) && Prevalues.Count > 0)
tb.Text = Prevalues[0];
return tb;
}
示例5: RenderControl
public override System.Web.UI.WebControls.WebControl RenderControl(Attributes.Setting setting, Object sender)
{
ddl.ID = setting.GetName();
ddl.Items.Clear();
foreach(string s in Prevalues){
ddl.Items.Add(s);
}
ddl.SelectedValue = _val;
return ddl;
}
示例6: RenderControl
public override System.Web.UI.WebControls.WebControl RenderControl(Attributes.Setting setting, Object sender)
{
cb.ID = setting.GetName().Replace(" ", "");
return cb;
}