我想在gridview中编辑数据我应该怎么做如果我想编辑gridview中的特定行 [英] I want to edit the data in gridview how should I do it If I want to edit a particular row in gridview
本文介绍了我想在gridview中编辑数据我应该怎么做如果我想编辑gridview中的特定行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我。请紧急
can anyone help me.pls its urgent
public partial class login_next : System.Web.UI.Page
{
SqlConnection con = new SqlConnection ();
//SqlCommand cmd=new SqlCommand();
DataSet ds =new DataSet();
SqlDataAdapter da=new SqlDataAdapter();
protected void Page_Load(object sender, EventArgs e)
{
if (Convert.ToString(Session["user"]) != "")
{
Label1.Text = "welcome " + Session["user"];
}
else
{
Response.Redirect("login.aspx");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("login.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("edit_application.aspx");
}
}
推荐答案
请参阅以下链接
如何插入更新删除行gridview-ASP.NET [ ^ ]
编辑,更新,取消,删除Gridview中的行(使用MS Access DB) [ ^ ]
Refer to links below
How to insert update delete rows in gridview-ASP.NET[^]
Edit, Update, Cancel, Delete rows in Gridview(using MS Access DB)[^]
这篇关于我想在gridview中编辑数据我应该怎么做如果我想编辑gridview中的特定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文