How to add the quantity in the drop down dynamically from 0 to 100.
I tried
for (int i=0; i<=100;i++)
{
ddl.datatextfield=i
ddl.datavaluefiled=i
ddl.bind()
}
But there is some thing wrong
Can any one please advice me.
for (var i = 0; i < 100; i++) { ListItem item = new ListItem(); item.Text = i.ToString; item.Value = i.ToString(); ddl.Items.Add(item); }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.