i use jet engine ,and oledb database but with this i get four errors which r compile time errores,plz help me to solve these errors
i wrote this programe bt it is not working .
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Net.Security;
public class oledbcon :System.Web.UI.Page
{
public static void main()
{
string connectionstring = " provider=microsoft.jet.oledb.4.0;" & "data source=" & country - State.xml & ";" & "extended properties = excel 8.0;hdr=yes; imex=1;";
OleDbConnection objconnection = new OleDbConnection(connectionstring);
objconnection.Open();
OleDbCommand objcmdselect=new OleDbCommand("select * from [sheet1$]",objconnection);
OleDbDataAdapter objadapter1=new OleDbDataAdapter();
objadapter1.SelectCommand=objcmdselect;
DataSet objdataset1=new DataSet();
objadapter1.Fill(objdataset1);
objconnection.Close();
}
}
errors:
1'.ASP.default_aspx.GetTypeHashCode()': no suitable method found to override
'2.ASP.default_aspx.ProcessRequest(System.Web.Http Context)': no suitable method found to override
3'ASP.default_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable'
4ake sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).