asp.net sql更新查询 [英] asp.net sql update query

查看:89
本文介绍了asp.net sql更新查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过更新某些行来加载gridview.so,请使用哪个查询?..请给我答案的问题

i want load gridview with updating some rows.so which query is used?..please give me answer of the question

推荐答案

您需要使用Select查询以获取行值,然后将结果绑定到GridView的DataSource.
介绍GridView控件 [
You need to use a Select query to get the row values and then bind the result to the GridView''s DataSource.
Introducing the GridView Control[^] should help you get started.


使用以下查询

use the below query

SqlDataAdapter da= new sqldataadapter("Query",connectionObject);
Dataset ds=new Dataset();
da.Fill(ds);
Return(ds);

GridView.DataSource=ds.Tables[0];
gridview.DataBind();


这篇关于asp.net sql更新查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆