1. Get the data in DataSet or DataTable (or list, collection etc)
2. set DataTextField and DataValueField - first is column name that is shown to the user, second one is the value you get for dl.SelectedValue
3. Set dl.DataSource to your data (whatever that is)
Read detailed description here[
^] - it wasn't hard to find and it is clear, step-by-step with code examples and download.
Put some more effort into it next time.
Code:
You don't need New DropDownList, if you do it this way you have to add it to the page somewhere. Instead, put
<asp:DropDownList id="dl" runat="server" />
where you need it in your html.
Server side:
If Request.QueryString("userid").Trim <> String.Empty Then
Dim ddlResult As New DataSet
ddlResult = GetUserName.ddlData(Request.QueryString("userid").ToString)
dim dr as DataRow = ddlResult.Tables(0).NewRow
dr("description") = string.Empty
ddlResult.Tables(0).Rows.InsertAt(dr, 0)
ddlResult.AcceptChanges()
sysDDL.DataValueField = "description"
sysDDL.DataTextField = "description"
sysDDL.DataSource = ddlResult.Tables(0)
sysDDL.DataBind()
End If