使用Dropdownlist搜索记录,并且ID号必须输入到TextBoxes中,并显示在Gridview中 [英] Search the records by using Dropdownlist , and id number must be entered intoTextBoxes , and display in Gridview

查看:123
本文介绍了使用Dropdownlist搜索记录,并且ID号必须输入到TextBoxes中,并显示在Gridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

搜索-下拉列表

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

提交按钮

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

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

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.

推荐答案

单个标签和文本框.
当用户选择一个选项时,更新标签文本.简单.
Only use a single label and text box.
When the user selects an option, update the label text. Simples.


这篇关于使用Dropdownlist搜索记录,并且ID号必须输入到TextBoxes中,并显示在Gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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