Posted on: 11/27/2013 8:49:51 PM | Views : 840

hello frnd i am workin on reply button code  here all the function is working correctly all my sql databse's data is shoing previously when i click but when data is empty i want that it shoud open a new page/tab here i am using tab but if u want to open a page welcome  my previous button code is here guide me where i am wrong
string cs = WebConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString; SqlConnection cn = new SqlConnection(cs); cn.Open(); j = Convert.ToInt32(ViewState["j"]) - 1; SqlDataAdapter da5 = new SqlDataAdapter("select * from math_en", cn); da5.Fill(ds5, "math_en"); ViewState["j"] = (int)ViewState["j"] - 1; if (ds5 != null && (int)ViewState["j"] < ds5.Tables[0].Rows.Count) {
q1.Text = ds5.Tables[0].Rows[j]["quesno"].ToString(); ques0.Text = ds5.Tables[0].Rows[j]["ques"] ...

Go to the complete details ...