The name 'Count' is not a member of &#03

lJesterl

New Member
I used to use this code in Classic ASP:<BR><BR>FOR intloop = 1 to Request.QueryString(Item).Count<BR><BR>But when I tried it in ASP.NET, I get the following error:<BR><BR>The name 'Count' is not a member of 'String'.<BR><BR>Is there a new way to write this?The QueryString is still a collection but it works a little different.<BR>I rewrote this code and is a start.<BR><BR>Dim Item As String<BR>Dim QueryVars As String<BR>For Each Item in Request.QueryString<BR> QueryVars & = Request.QueryString(Item)<BR>next <BR><BR>(Note each "Variable" in the QueryString must only have one value assigned to it)<BR><BR>Also look at:<BR>http://samples.gotdotnet.com/quickstart/aspplus/<BR>Under the heading:<BR>ASP to ASP.NET Migration<BR><BR> "Syntax and Semantics" link<BR><BR><BR>Aaron
 
Back
Top