muffin_vbulletin3_import26778
New Member
I am new at creating web services in ASP.net/VB.net. I am setting up a public variable like so inside my Service.vb in App_Code folder:\[code\]Imports System.WebImports System.Web.ServicesImports System.Web.Services.ProtocolsImports System.DiagnosticsImports System.Web.Script.Services<System.Web.Script.Services.ScriptService()> _<WebService(Namespace:="http://tempuri.org/")> _<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _Public Class Service Inherits System.Web.Services.WebService Public avIP As String = "0.0.0.0"etc etc....\[/code\]And now i have made another Class and i want to get the value of avIP. However, when i do this:\[code\]Client.Connect(Service.avIP, 60128)\[/code\]It does not give me that value only an error. I do not seem to get any value if i do Service.. Nothing comes up in the list of suggestions.How can i grab the value from Service.vb into my other class?