G
Guest
If have a dropdown control and have set this to the first position of the
dropdown":
ddUserRole.Items.Insert(0, "Select Role...");
But, I want to be able to set the value of the above item to zero. I
thought it was this:
ddUserRole.Items.Insert(0, New ListItem("0","Select Role..."));
but it doesn't seem to be the case. I get the squigly line under ListItem.
Can anyone help out with the correct syntax?
dropdown":
ddUserRole.Items.Insert(0, "Select Role...");
But, I want to be able to set the value of the above item to zero. I
thought it was this:
ddUserRole.Items.Insert(0, New ListItem("0","Select Role..."));
but it doesn't seem to be the case. I get the squigly line under ListItem.
Can anyone help out with the correct syntax?