im gets the string value regression = (Session["Regression"]).ToString(); as regression = (Session["Regression"]).ToString(); in the .aspx.cs file, then I want to use this value in the .aspx file in the SelectCommand property of the SqlDataSource property, as shown below
SelectCommand="SELECT [issue_oid], [issue_num], [regression], [status], [tested_by], [tested_on], [patch_name], [arrived_on], [previous_info], [comment], [is_duplicate] FROM [itt_monthly_patch_issue_list] where status='Not Tested' and `regression='<%#regression%>'"`
.aspx.cs file page_load method as shown below
protected void Page_Load(object sender, EventArgs e) { if ((Session["UserName"].ToString()) == string.Empty) { Server.Transfer("regressionType.aspx"); } regression = (Session["Regression"]).ToString(); usrname = (Session["UserName"]).ToString(); DataBind(); }
suggest me how can i do this? thanks in advance...
picnic4u
source share