in .cs code i have this line:
String query = "select userid from tblUser where email='" + EmplyrSession + "'";
now in .aspx page i am using detailsview having insert mode, now i want to put the above variable in Insert command of sqldatasource.
so how i will accomplish this bcz i have variable in .cs code and want to put it in select command of datasource which happens to be in .aspx page.
here is complete code of .cs part, and its working but want to accomplish wat i mentioned:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class advertisementSubmission : System.Web.UI.Page
{
...
Go to the complete details ...