S
shapper
Hello,
I created a DropDownList as follows:
With ddlRole.Items
.Add("---")
.Add(New ListItem("Administrator", "Admin")
.Add(New ListItem("Collaborator", "Coll")
.Add(New ListItem("User", "Us")
End With
I need to defined the current Selected item as the one which value is
equal to the value of variable ROLE.
For example, if ROLE = "Admin" then I want the visible item in the
DropDownList to be:
.Add(New ListItem("Administrator", "Admin")
How can I do this?
Thanks,
Miguel
I created a DropDownList as follows:
With ddlRole.Items
.Add("---")
.Add(New ListItem("Administrator", "Admin")
.Add(New ListItem("Collaborator", "Coll")
.Add(New ListItem("User", "Us")
End With
I need to defined the current Selected item as the one which value is
equal to the value of variable ROLE.
For example, if ROLE = "Admin" then I want the visible item in the
DropDownList to be:
.Add(New ListItem("Administrator", "Admin")
How can I do this?
Thanks,
Miguel