NameValueCollection and code behind

calmshot

New Member
Ok this is just one of those things I don't get quite yet. This line works fine in default.aspx<BR><BR><%<BR>Dim colHeaders As NameValueCollection<BR>%><BR><BR>obviously there is more code. But the page gives no errors and works exactly as desired.<BR><BR>However if I move this line into default.aspx.vb, I get an error saying it can't find NameValueCollection. How do I make this thing work?Did you import some class to get it to work in the aspx page? If so, you must add:<BR><BR>imports System.Collections.Specialized.NameObjectCollectio nBase<BR><BR>at the beginning of the .vb page.No I didn't. That's why I don't understand why it works in one but not in the other.NT
 
Back
Top