本文整理汇总了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;
}