I want to set the value in the database in the page load event. I tried many ways but it did not happen. Could you help.
<dx:ASPxComboBox ID="ASPxComboBox3" IncrementalFilteringMode="None" runat="server" DropDownStyle="DropDownList" Height="30px" DataSourceID="SqlDataSource3" TextField="SubKategoriAdi" ValueField="SubKategoriid" Enabled="True" SettingsLoadingPanel-Text="Lütfen bekliyiniz">
</dx:ASPxComboBox>
<asp:SqlDataSource runat="server" ID="SqlDataSource3" ConnectionString='<%$ ConnectionStrings:baglan %>' SelectCommand="SELECT * FROM [SubKategoriler]"></asp:SqlDataSource>
-
SqlConnection bagla = new SqlConnection(ConfigurationManager.ConnectionStrings["baglan"].ConnectionString);
bagla.Open();
SqlDataAdapter komut = new SqlDataAdapter("select * from urunler where id='" + Temizle(Request.QueryString["id"].ToString()) + "'", bagla);
DataTable dt = new DataTable();
komut.Fill(dt);
ASPxComboBox1.Value = dt.Rows[0]["SubKategoriid"];
I want to select the value of the database from the database but it only writes the incoming value.