0

我是编程新手,我正在尝试使用 ASP.NET 构建一个网站。我正在尝试制作一个标签,显示用户执行搜索后使用的过滤器并指定要使用的过滤器。我不确定如何显示标签中使用的过滤器。

4

1 回答 1

0

您可以创建一个字符串类型的临时变量。例如:

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 

我希望这就是你要找的

于 2013-05-31T17:17:05.463 回答