下拉列表中选定的项目必须显示在gridview中 [英] Dropdownlist selected items must display in gridview
问题描述
亲爱的朋友,
祝你有美好的一天!
请解决我的问题并给我最好的解决方案.
我的网页上有2个下拉列表和Gridview
下拉列表1(用月填充)
---选择月份---
一月
二月
三月
四月
五月
六月
七月
八月
九月
十月
十一月
十二月
和Dropdownlist 2填充为
---选择年份-
2011
2012
2013
我的要求是,如果用户从下拉列表1中选择1月,从下拉列表2中选择... 2012,则它必须在gridview中显示与1月相关的所有记录.
注意:我在Gridview中的字段是UserName,Password,CreationDate
因此日期必须根据CreationDate回传.
请帮我亲爱的兄弟们.
阅读: ^ ]
Dear Friends,
Have a Good Day !!
Please Solve my Problem and Give me a best Solution.
I have a 2 dropdownlists and a Gridview on my Webpage
Dropdownlist 1 as filled with Months
---Select Month ---
January
February
March
April
May
june
July
August
September
October
November
December
and Dropdownlist 2 as filled with
---Select year --
2011
2012
2013
and my requirement is, if the user selects January from Dropdown 1 and... 2012 from Dropdown 2.....It must show all the records in gridview related to January.
Note: My fields in Gridview are UserName,Password,CreationDate
so Dates must be postback according to CreationDate.
Please help me my dear brothers.
Thanks in ADVANCE.
Read this: http://www.eggheadcafe.com/tutorials/asp-net/c67c4daa-83c2-4baa-aea4-2c8855527acb/aspnet-gridview-filtering-with-dropdownlist.aspx[^]
这篇关于下拉列表中选定的项目必须显示在gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!