如何在FormView控件中绑定数据 [英] how to bind data in the formview control

查看:61
本文介绍了如何在FormView控件中绑定数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在formview控件中绑定数据
为此发布解决方案
在此先感谢

how to bind data in the formview control
post solution for this
thanks in advance

推荐答案

类似于GridView .......

Same like GridView.......

SqlConnection myConnection = new SqlConnection(ConnectionString);

SqlDataAdapter ad = new SqlDataAdapter("SELECT * FROM Users", myConnection);

DataSet ds = new DataSet();

ad.Fill(ds);

FormView1.DataSource = ds;

FormView1.DataBind();


尝试
使用FormView控件插入数据 [使用FormView控件显示数据 [
Try
Inserting Data with the FormView Control[^]
Displaying Data with the FormView Control[^]


尝试
使用FormView控件插入数据 [使用FormView控件显示数据 [ ASP.NET& FormView-DataBind&数据源 [ ^ ]
Try
Inserting Data with the FormView Control[^]
Displaying Data with the FormView Control[^]
ASP.NET & FormView - DataBind & DataSource[^]


这篇关于如何在FormView控件中绑定数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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