Posted on: 3/29/2012 12:08:28 PM | Views : 412

i m getting values in my drop down from database,
but i want to make 1 selected depending upon id i m getting i m trying to do so but its not work
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then MultiView1.SetActiveView(View1) Dim id As Integer = Convert.ToInt32(Request.QueryString("id")) ClientId.Value = id Dim ds1 As DataSet = WorkSection.GetClientData() DropDownClientList.DataTextField = "ClientName" DropDownClientList.DataValueField = "ClientName" DropDownClientList.DataSource = ds1.Tables(0) DropDownClientList.DataBind() Dim ds As DataSet = WorkSection.GetDataByClientPage(id) txbCopyContent.Text = ds.Tables(0).Rows(0).Item(2) DropDownClientList.SelectedValue = ds.Tables(0).Rows(0).Item(1) Dr ...

Go to the complete details ...