Bill Z

Bill Z

  • NA
  • 1
  • 1.8k

Calling a method

Jul 27 2010 5:22 PM

This is a rudimentary question as I am new to vb.net, so your patience is appreciated. I have created a method within a class and now I am trying to import that into my page.
The method looks like this
Public
Shared Sub urlVars(ByVal langVar, ByVal countryVar)
Dim countryLanguage As String
countryLanguage = (HttpContext.Current.Request(
"URL"))
langVar = (Mid(countryLanguage, 2, 2))
countryVar = (Mid(countryLanguage, 5, 2))
End Sub
On the page I am trying to call that method into the page with this
Dim
globalVars As url-parser = new url-parser(countryLanguage)
 
As you might of guessed this isn't working. Thanks for any help.

Answers (1)