void Page_Load()
{
sSql = " SELECT * FROM tblClient_Supervisor_List WHERE RepName ='" + Session["gUserID"] + "'";
OleDbConnection myConn = new OleDbConnection(strDSN);
OleDbCommand myCmd = new OleDbCommand(sSql, myConn);
OleDbDataReader dr = null;
myConn.Open();
recdr = myCmd.ExecuteReader();
With dlClientID;
.DataSource = recdr;
.DataTextField = "RepName";
.DataValueField = "ClientID";
.DataBind();
End With;
}
Here I am getting the error as "Identifier Expected".
I don't know, What is the problem is..
Compiler Error Message: CS1001: Identifier expected
In this line-- With dlClientID;
the error is coming.
Could you find any error, please let me know.
Thanks in Advance,
Laks
{
sSql = " SELECT * FROM tblClient_Supervisor_List WHERE RepName ='" + Session["gUserID"] + "'";
OleDbConnection myConn = new OleDbConnection(strDSN);
OleDbCommand myCmd = new OleDbCommand(sSql, myConn);
OleDbDataReader dr = null;
myConn.Open();
recdr = myCmd.ExecuteReader();
With dlClientID;
.DataSource = recdr;
.DataTextField = "RepName";
.DataValueField = "ClientID";
.DataBind();
End With;
}
Here I am getting the error as "Identifier Expected".
I don't know, What is the problem is..
Compiler Error Message: CS1001: Identifier expected
In this line-- With dlClientID;
the error is coming.
Could you find any error, please let me know.
Thanks in Advance,
Laks