开发者

Add a Value parameter

h开发者_JAVA技巧ow to add a Value parameter for DropDownList list item in code (use C#/ASP.NET/SharePoint)?


Value is a property on the ListItem class you can set it as any other property:

item.Value = "your value";


DropDownList1.Items.Add(new ListItem("item 1", "Item 1 Value"));

Please refer here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜