public partial class GiveExam : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string strtitle = Request.QueryString["title"]; string examID = Request.QueryString["exmid"]; LblExmNm.Text = strtitle; SqlCommand cmd = new SqlCommand("select distinct examHours,totalQn from dbo.Exams where examID=@examID"); cmd.Parameters.AddWithValue("@examID", examID); DataSet ds = GlobalConnect.ExecuteDataSet(cmd); if (ds != null && ds.Tables.Count > 0 ) { lblTotQns.Text = ds.Tables[0].Rows[0][1].ToString(); int TotalTime = Convert.ToInt32( ds.Tables[0].Rows[0][1].ToString());//here value is 70 } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)