2

What is the concept @ Before coming to select this code?

SqlDataSource2.SelectCommand = @"SELECT tblstore.storname,tblproduct.pid, tblproduct.pname, tblproduct.pprice, tblproduct.publisher, tblproduct.writer FROM tblproduct INNER JOIN tblstore ON tblproduct.storeid = tblstore.storeid WHERE tblproduct.pname LIKE @likeText";
SqlDataSource2.SelectParameters.Add("likeText", "%" + txtName.Text + "%");
John Saunders
  • 160,644
  • 26
  • 247
  • 397

1 Answers1

1

that defines a string literal

string (C# Reference)

to quote msdn

"The advantage of verbatim strings is that escape sequences are not processed, which makes it easy to write, for example, a fully qualified file name"

huMpty duMpty
  • 14,346
  • 14
  • 60
  • 99
iamkrillin
  • 6,798
  • 1
  • 24
  • 51