开发者

Add a Value parameter

开发者 https://www.devze.com 2023-02-28 22:11 出处:网络
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:

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

精彩评论

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