using
system;
using
system.componentmodel;
using
system.text;
using
system.web;
using
system.web.ui;
using
system.web.ui.webcontrols;
[assembly: tagprefix(
"efplatform.webcontrols",
"efp")]
namespace
efplatform.webcontrols
:datedropdownlist runat=server>")]
public
class
datedropdownlist : webcontrol, inamingcontainer
set}
#endregion
#region
firstyear
[category(
"data")]
[defaultvalue(
1900
)]public
intfirstyear
set}
#endregion
#region
lastyear
[category(
"data")]
public
intlastyear
set}
#endregion
#endregion
#region
#region
selectcssclass
[category(""
)]public
string
selectcssclass
set}
#endregion
#region
yeartitle
[category(""
)][defaultvalue("年
")]public
string
yeartitle
set}
#endregion
#region
monthtitle
[category(""
)][defaultvalue("月
")]public
string
monthtitle
set}
#endregion
#region
daytitle
[category(""
)][defaultvalue("日
")]public
string
daytitle
set}
#endregion
#endregion
#endregion
#region
getdate
private
void
getdate()--"
, stryear, strmonth, strday));}}
#endregion
#region
buildjscript
private
string
buildjscript()
#endregion
#region
buildhtmlelement
private
string
buildhtmlelement()
", i);
}else" "
" ",
this
.clientid,
this
.yeartitle,
this
.selectcssclass);
for(
inti =1
; i
<=
12; i++)
", i);
}else" "
"", this
.clientid,
this
.monthtitle,
this
.selectcssclass);
for(
inti =1
; i
<=
datetime.daysinmonth(
this
.date.year,
this
.date.month); i++)
", i);
}else" "
" ",
this
.daytitle);
return
sb.tostring();
}#endregion
#region
override renderchildren
protected
override
void
renderchildren(htmltextwriter writer)
#endregion}}
Spinner控制項 下拉列表
簡單的spinner舉例,一言不合上 第2步載入介面卡和第3步設定下拉樣式都是採用android自帶的樣式哦 自定義spinner控制項 1.設定資料來源 getdata 2.配置介面卡 adapter 2 new adapter spinneractivity.this,lists 2,r.lay...
下拉選擇控制項 select
下拉選擇控制項 select 寫法 可以有n多個 name屬性,應該寫在上,所有選項只有乙個name multiple multiple 設定select控制項為多選,可在介面使用ctrl 滑鼠,進行多選。一般不用。option常用屬性 value 當option沒有value屬性時,往後臺傳遞的是...
iOS 下拉列表選擇
ios下拉列表選擇 下拉展開列表選擇 import typedef ns enum nsuinteger,itemtype ns assume nonnull begin inte ce item uibutton property nonatomic,assign nsinteger index ...