通过文本框显示数据库中的数据 [英] Display Data from database via textbox

查看:444
本文介绍了通过文本框显示数据库中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何通过文本框显示数据库中的数据以及如何编辑该值

How do i display data from database via textbox and how to edit that value

推荐答案

打开Visual Studio(您也可以使用NotePad,但是它可以使用"只是简单),然后开始编写代码.就这样.

好的,那不是您所期望的.但这就是您什至不需要解释自己到底想做什么以及到目前为止已经尝试过的东西时所得到的.

我的猜测是您正在这里寻找 煮熟的 代码,但很抱歉让您失望,这将不会发生.

请返回并向我们展示您的操作,然后在遇到问题时返回.

人们会很乐意在这里为您提供帮助.
Open Visual Studio (you can use NotePad as well, but it''s just easy) and start writing code. That''s it.

Ok, that''s not what you expect. But this is what you get when you don''t even care to explain what you exactly want to do and what have you have tried so far.

My guess is you are looking for cooked code here but I am sorry to disappoint you that is not going to happen.

Please go back and show us what you have done and then come back if you face issues.

People would be more than happy to help you here.


在这里看看:构建安全的ASP.NET应用程序:身份验证,授权和安全通信 [如何:保护ASP.NET中的SQL注入 [
Have a look here: ASP.NET - Binding to Databases[^]
Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication[^]
How To: Protect From SQL Injection in ASP.NET[^]


报价:

这是我的CS代码,但是如何在aspx页面上显示这些获取的数据.?

here is my cs code but how to display these fetched datas on aspx page..?

您已经在aspx控件上显示了,我相信.

You are already showing on aspx controls, I believe.

Shops.Text =  dr["Shops"].ToString();
Reviews.Text = dr["Reviews"].ToString();

Website.Text = dr["Website"].ToString();
Fbpage.Text = dr["Fbpage"].ToString();
Phone.Text = dr["Phone"].ToString();
Email.Text = dr["Email"].ToString();
Place.Text = dr["Place"].ToString();
Latitude.Text = dr["Latitude"].ToString();

Longitude.Text = dr["Longitude"].ToString();


这些是aspx控件,您已经在从数据库分配值.


Here these are aspx controls and you are already assigning the values from database.


这篇关于通过文本框显示数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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