J
jason
I'd like to write an asp.net-VB subroutine that accepts the name of an
itemlist as a parm to be populated. I think under classic ASP I would
use EVAL() to accomplish dynamic code like this. How would I do this
in ASP.NET-VB?
For example in the code below I'd like pass nnnnnn in. Of course this
code as-is will not work.
<vb code snippet>
sub loaditems(nnnnnn as string, regstring as string)
Dim regexp as Regex = New Regex(regstring, RegexOptions.IgnoreCase)
Dim objMatch as Match
dim z as string
For Each objMatch in regexp.Matches(session("readin"))
z = objMatch.ToString()
nnnnnn.items.add(z)
Next
end sub
</vb code?>
Many Thanks in Advance for any help or info!
itemlist as a parm to be populated. I think under classic ASP I would
use EVAL() to accomplish dynamic code like this. How would I do this
in ASP.NET-VB?
For example in the code below I'd like pass nnnnnn in. Of course this
code as-is will not work.
<vb code snippet>
sub loaditems(nnnnnn as string, regstring as string)
Dim regexp as Regex = New Regex(regstring, RegexOptions.IgnoreCase)
Dim objMatch as Match
dim z as string
For Each objMatch in regexp.Matches(session("readin"))
z = objMatch.ToString()
nnnnnn.items.add(z)
Next
end sub
</vb code?>
Many Thanks in Advance for any help or info!