I worked in C Sharp code works vote and found the problem appointed Data Reader
If you will allow me in the solution
Error 25 Cannot convert method group 'Read' to non-delegate type 'bool'. Did you intend to invoke the method?
Show Erorr also
Line 23: Con.Open ();
Line 24: OleDbDataReader dr = cmd2.ExecuteReader ();
Line 25: if (dr.Read)
Line 26: {
Line 27: label2.Text = dr (0);
code
public partial class Default2 : System.Web.UI.Page
{
System.Data.OleDb.OleDbConnection Con = new System.Data.OleDb.OleDbConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings("MyConnectionString").ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
OleDbCommand cmd2 = new OleDbCommand("select Q,a1,a2,a3,a4 from ope", Con);
Con.Open();
OleDbDataReader dr = cmd2.ExecuteReader();
if (dr.Read)
{
label2.Text = dr(0);
RadioButton1.Text = dr(1);
RadioButton2.Text = dr(2);
RadioButton3.Text = dr(3);
RadioButton4.Text = dr(4);
}
dr.Close();
Con.Close();
}