Hi all,
Have filled a dropdown list with data directly from the database. Wish to have a specific value selected when the page first loads. I am using the following line of code:
I am getting the error: "Specificed arguement was out of range of valid values.", any suggestions on how to overcome this problem?
Mike55
Have filled a dropdown list with data directly from the database. Wish to have a specific value selected when the page first loads. I am using the following line of code:
Code:
ddlOrgtype.DataSource = dsOrgTypes
ddlOrgtype.DataTextField = "OrgType"
ddlOrgtype.DataValueField = "Identifier"
ddlOrgtype.DataBind()
ddlOrgtype.selectedValue = "Select Organisation Type"
I am getting the error: "Specificed arguement was out of range of valid values.", any suggestions on how to overcome this problem?
Mike55