create dropdown in datatable c# dynamically
DataTable dtt1 = (DataTable)Session["dbasecolumns"];
int l = dtt1.Columns.Count;
string[] sqlcolumn = new string[l];
DropDownList drd = new DropDownList();
foreach (String colname in sqlcolumn)
{
drd.Items.Add(colname);
}
Also in C#:
- wpf label text in center
- c# send email
- asp list box
- c# asp.net hover tooltip
- regex replace all special characters
- c# dictionary literal initializer
- access object property C#
- unity draw wire square
- godot c# move towards
- c# string remove special characters
- c# reverse array
- non null array length
- how can convert string to int csharp
- blazor wasm routable page in separate project
- c# how to add newline on text box
- c# console writeline color
- how to get specific length of row in matrix c#
- how to add a componet to a gameobject throgh code unity
- C# function return datareader
- query into complex object using dapper
- declare string array c# without size
- http post request login example asp.net c#
- c# nullable generic
- How to set an expiry date on a program