重新发布:使用下拉列表/文本框搜索记录,并从数据库显示到Gridview中 [英] REPOST: Searching the Records by Using Dropdownlist / Textboxes and Displaying into Gridview from DataBase

查看:61
本文介绍了重新发布:使用下拉列表/文本框搜索记录,并从数据库显示到Gridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是苏菲.

我有一个ASP.NET Web表单,在其中使用DropDownList控件作为searchby

我也有3个标签& 3个文本框,例如输入报价号,输入报价日期,输入客户代码.....当用户从下拉列表中选择一个项目时,应显示第一个文本框,而另两个文本框必须隐藏.

-------------------------------------------------- -------------------------------
ASPX设计页面

搜索-下拉列表

输入报价单编号-文本框
输入报价日期-文本框
输入客户代码-文本框

提交按钮

-------------------------------------------------- ------------------------------

假设用户在文本框中输入ID号1001并单击提交"按钮,则应从数据库中搜索数据,并应使用gridview显示该数据.


谢谢,

Hi,This is Sufi.

I have an ASP.NET webform on which I use a DropDownList control as searchby

i also have 3 labels & 3 textboxes such as enter Quotation number,enter quote date,enter customer code..... when the user selects one item from dropdown, first textbox should be displayed and the other two text boxes must hide.

---------------------------------------------------------------------------------
Aspx-design page

Search by -- Dropdownlist

Enter Quote Number -- Textbox
Enter Quote Date -- Textbox
Enter Customer Code - Textbox

Submit Button

--------------------------------------------------------------------------------

Suppose when user enters id number 1001 into textbox and clicks on submit button the data should be searched from the database and should be displayed by using gridview.


Thanks,

推荐答案

您已经问过这个问题 [
You have already asked this question Dropdownlist selected Item ,,,Should be Displayed in GridView[^]

If you need to give additional detials then edit the original question don''t repost it.


这篇关于重新发布:使用下拉列表/文本框搜索记录,并从数据库显示到Gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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