Rajesh Kumar Chekuri wrote:
DataRow DRow = DSImages.Tables[0].Select("imgId=" + Request.QueryString[1].ToString())[0];
You need to pass the value within single quotes
DSImages.Tables[0].Select(string.Format("imgId='{0}'", Request.QueryString[1].ToString())[0]);
Rajesh Kumar Chekuri wrote:
Server.MapPath(@"~\\xml\\"+Request.QueryString[0].ToString()+".xml"));
You need not specify \\ as you have given @. Also it would make it easier to read if you used
string.Format(@"~\xml\{0}.xml", Request.QueryString[0].ToString());.