How can I have the first item in the radiobuttonlist selected
VB.NET RadioButtonList1.Items(0).Selected = true C# RadioButtonList1.Items[0].Selected = true;
Can I use IIS as an alternative way of configuring Custom error pages
Yes, you can. But the preferable way would be ASP.NET, as the ASP.NET custom pages are configured in XML based web.config (application configuration) file, resulting in easy (xcopy) deployment and management.
How to populate a listbox with the Column Names in a Table
VB.NET ’Populate the dataset Dim dc As DataColumn For Each dc In ds.Tables(0).Columns ListBox1.Items.Add(dc.ColumnName) Next C# //Populate the Dataset foreach (DataColumn dc in ds.Tables[0].Columns) { ListBox1.Items.Add(dc.ColumnName); }
How to query the database to get all the Table names
SELECT * FROM information_schema.tables where Table_type=’BASE TABLE’
How to clear all the items in a listbox
VB.NET ListBox1.Items.Clear C# ListBox1.Items.Clear();