我是编程新手,正在尝试用ASP.NET构建一个网站。我正在尝试制作一个标签,用于显示在用户执行搜索后使用的过滤器,并指定要使用的过滤器。我不确定如何显示标签中使用的过滤器。
发布于 2013-05-31 17:17:05
您可以创建类型为string的临时变量。例如:
Dim tempFilterText as String = ""
tempFilterText &= "You filter the data with criteria : Country " & dropdownlistCountry.selectedvalue
tempFilterText &= " and City " & dropdownlistCity.selectedvalue
tempFilterText &= " and ZipCode " & txtZipCode.Value
然后您可以像这样分配您的标签
labelCriteria.Text = tempFilterText
我希望这就是你要找的
https://stackoverflow.com/questions/16862035
复制