I have the following code snippet :-
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
string idd = Session["senderefirstname"].ToString();
Query = " create table '"+ idd +"' ( senderid varchar(90) , recipientid varchar(90),senderimage varchar(90), senderfirstname varchar(90), senderlastname varchar(90), message varchar(max) ) ";
adap = new SqlDataAdapter(Query, con);
ds = new DataSet();
adap.Fill(ds);
Response.Redirect("newmessage.aspx");
}
but m getting the error is
"Incorrect syntax near 'noah'"
noah is the string stored in session["senderfirstname"] I'm getting this error. Can anyone guide?