如何从中将数据检索到TextBox中 [英] How to retrieve the data into TextBox from
问题描述
先生您好,
我用文本框创建了PatientFirstname(P_FNAME),用文本框创建了P_LName(lastname),& P_MName(中间名)带有文本框,我也已经在MSSQL中创建了P_FNAME,P_MNAME,P_LNAME字段.所以我需要的是-
1.如果我在输出窗口中输入P_FName(FIRSTNAME)的文本框,则其他P_MNAME& P_LNAME必须自动显示在其文本框中.
或
2.如果我在输出窗口中输入P_MName(MIDDLENAME)的文本框,则其他P_FNAME& P_LNAME必须自动显示在其文本框中.
3.反之亦然,表示P_LNAME(姓氏).
在这里,对于所有字段(P_FNAME,P_MNAME,P_LNAME),我已经在其中的列中输入了名称.因此,如何从MSSQL检索到那里的文本框.
< b> Plz在这方面确实帮助了我.
</b>
谢谢,
Pradeep CBZ
Hello sir,
I had created the PatientFirstname(P_FNAME) with textbox,P_LName(lastname)with textbox,& P_MName(middlename)with textbox and also i had created the P_FNAME,P_MNAME,P_LNAME fields in the MSSQL.So what i need is-
1. If i enter the textbox of P_FName(FIRSTNAME) in the output window other P_MNAME& P_LNAME has to be automatically displayed in their textboxes.
OR
2. If i enter the textbox of P_MName(MIDDLENAME) in the output window other P_FNAME& P_LNAME has to be automatically displayed in their textboxes.
3. and viceversa for P_LNAME(lastname).
Here for all the fields(P_FNAME,P_MNAME,P_LNAME) i had already entered the name in there columns.So how to retrieve from MSSQL into there textboxs.
<b>Plz do help me in this regard.
</b>
Thanks,
Pradeep CBZ
推荐答案
有很多方法可以实现.
为了帮助您,请检查下面给出的链接
C#.NET中的三层体系结构 [
There are many ways to do it.
To help you, please check the link given below
Three Layer Architecture in C# .NET[^]
这篇关于如何从中将数据检索到TextBox中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!