Hi am new to this asp.net
solution for next,Previous button in asp.net with c#.net.
I have 7 Buttons ADD,SAVe,Edit ,Delete,Next,Previous and find
to get the details of record in gridview.
My save snippet is as follows:
protected void BtnSave_Click(object sender,
ImageClickEventArgs e)
{
/* try
{*/
//if (txtDate.Text.Length != 0)
//{
string Insertsql = "Insert into
Product(PNo,Pname,Shape,Component,Qty,Rate,)values('" +
txtPno.Text + "','" + txtPnm.Text + "','" + txtshape.Text +
"','" + txtCmp.Text + "','" + txtQty.Text + "','" + txtRg.Text
+ "')";
SqlConnection con = new
SqlConnection(connectionstring);
SqlCommand cmd = new SqlCommand(Insertsql, con);
//SqlDataReader reader1;
int added = 0;
con.Open();
added = cmd.ExecuteNonQuery();
//}
/* }
catch (Exception err)
{
string a = err.Message;
}*/
}
Everything i will get correctly.But i dont know how to get next and previous record.plz help me