tring strCategory1 = “select * from tbl_test where status=’Active’ and id=’” + drpmaincategory.SelectedValue.ToString() + “‘”;
SqlCommand cmdCategory1 = new SqlCommand(strCategory1, conn);
cmdCategory1.CommandType = CommandType.Text;
SqlDataAdapter daCategory1 = new SqlDataAdapter(cmdCategory1);
DataSet dsCategory1 = new DataSet();
daCategory1.Fill(dsCategory1, “tbl_test”);
drpsubcategory.DataSource = dsCategory1.Tables["tbl_test"];
drpsubcategory.DataTextField = “name”;
drpsubcategory.DataValueField = “id”;
drpsubcategory.DataBind();
drpsubcategory.Items.Insert(0, new ListItem(“Select SubCategory”, “”));
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
SQL Server has never been short of ways to read from and write to files and it is always better to use the standard techniques provided b...
-
In this article we will look at the basics of Angular.Js. This is the first part of an article series. The main objective of this series i...