如何在文本框和标签中获取数据库表值 [英] how to get database table values in textboxes and lables

查看:180
本文介绍了如何在文本框和标签中获取数据库表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
任何人都知道这一点,请解决我的问题

我有一个表名Coldstr和column(id,name,color,stat ..)
然后我将gridview放在gridview里面,我有一个EDIT和View ..
听到我单击编辑"以显示wt中的所有数据我有文本框和标签...我已经这样做了.

然后问题是当我单击查看"时我想转到另一页,并且我在查询字符串中传递名称,然后我想基于名称获取基于行数据的完整行数据....这也是我完成的事情.
主要问题.我想在此页面中的文本框和标签中获取完整的行值.在此页面中(我的意思是下一页)

请有人知道告诉我如何显示.

Hi Friends,
Any one knows this please resolve my problom

i have one table name coldstr and columns(id,name,color,stat..)
then i put in gridview in inside gridview i have one EDIT and View..
hear i click EDIT to display all data in wt i have textboxes and lables...i have done this.

then the problom is when i click View i want to go another page and i pass name in query string then i want to get full row data based table row values based on name ....this is also i done.
the main problom . i want to get full row values in textboxes and lables wt i have.in this page(i mean next page)

please any one knows tell me how to display.

推荐答案

正如某人所说,您没有指定语言,我们不得不猜测它是ASP.NET.如果您需要帮助,请尝试问清楚.

我所看到的最好的方法是,将两个页面作为一个页面上的控件,以便viewstate如果需要的话将包含您的所有数据,或者至少包含您需要查找所需信息的数据.填充您的表单.
As someone said, you don''t specify a language, and we have to guess that it''s ASP.NET. If you want help, try to ask well.

The best way I can see, is for your two pages to be controls on the one page, so that viewstate will contain all your data if you want it to, or at least contain the data you need to look up the info you need to populate your form.


这篇关于如何在文本框和标签中获取数据库表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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