Hi,
I am new to VB.Net and am trying to do a simple thing. I would like to check the URL of a website and if it returns one value set a file path. If it returns something else set the file path to something else.
So far I have this code:
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class HttpRequest
Public myFilePath As String
Public ReadOnly Property FilePath() As String
Get
Return myFilePath
End Get
End Property
End Class
Not sure if I am even off to a good start here. I don't know how to output myFilePath to make sure this is the member I need or if I need to use something else. Any help would be appreciated. Also, if someone could recommend a good vb.net resource for beginners I would really appreciate some suggestions. Thanks.
I am new to VB.Net and am trying to do a simple thing. I would like to check the URL of a website and if it returns one value set a file path. If it returns something else set the file path to something else.
So far I have this code:
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class HttpRequest
Public myFilePath As String
Public ReadOnly Property FilePath() As String
Get
Return myFilePath
End Get
End Property
End Class
Not sure if I am even off to a good start here. I don't know how to output myFilePath to make sure this is the member I need or if I need to use something else. Any help would be appreciated. Also, if someone could recommend a good vb.net resource for beginners I would really appreciate some suggestions. Thanks.