在运行时在Asp.net中绑定文本框 [英] Binding TextBox in Asp.net in Runtime

查看:57
本文介绍了在运行时在Asp.net中绑定文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我在Asp.net中的数据库字段绑定控件中遇到问题

我将Fornt-end用作Asp.Net,将后端用作MySql

表:用户(user_id int,用户名文本);

我的aspx页面包含一个DropDown和一个TextBox.

在PageLoad上,DropDown和TextBox应该分别与user_name和user_id绑定.

请注意,我只想通过在aspx.cs页面上编写代码来绑定字段,
还是有其他方法,请告诉我.


谢谢,
Praveen

Dear All,

I am facing a problem in Binding Controls with Database Fields in Asp.net

I am using fornt-end as Asp.Net and Back-end as MySql

Table : users(user_id int,user_name text);

My aspx page contains one DropDown and one TextBox.

On the PageLoad, DropDown and TextBox should be bind with user_name and user_id respectively.

Please notice, I want to bind the fields by writing code on aspx.cs page only,
or if any other ways are there so please tell me.


Thanks,
Praveen

推荐答案

ASP.NET数据绑定概述 [ ^ ]和 ^ ]


数据绑定 [ ^ ]会给您一个清晰的提示想法.
Data Binding[^] willl give you an clear idea.


这篇关于在运行时在Asp.net中绑定文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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