Why do I get Compilation error ‘<Control> is not a member of <Page>’
You may get this error if you have not give runat=server for a tag
How can I enforce that only one radiobutton gets selected among a list of Radiobutton controls
Set same Groupname for the radiobutton controls
How to read data from the XML file using FileStream and display it in a DataGrid
Use namespace System.IO VB.NET dim ds as new DataSet() dim fs as FileStream = new FileStream (Server.MapPath (‘products.xml’),FileMode.Open , FileAccess.Read ) ds.ReadXml (fs) DataGrid1.DataSource = ds DataGrid1.DataBind () C# DataSet ds= new DataSet (); FileStream fs = new FileStream (Server.MapPath (‘products.xml’),FileMode.Open , FileAccess.Read ); ds.ReadXml (fs); DataGrid1.DataSource = ds; DataGrid1.DataBind ();
How to read data from an XML file and display it in a DataGrid
VB.NET dim ds as new DataSet() ds.ReadXml (Server.MapPath (‘products.xml’)) DataGrid1.DataSource =ds DataGrid1.DataBind() C# DataSet ds= new DataSet (); ds.ReadXml (Server.MapPath (‘products.xml’)); DataGrid1.DataSource =ds; DataGrid1.DataBind();
When I use the Session in component class as Session(‘CustID’), I get error message ‘Session is not declared’. Why?
Use HttpContext.Current.Session i.e VB.NET HttpContext.Current.Session(‘CustID’) = ‘1’ C# HttpContext.Current.Session[‘CustID’] = ‘1’;