asked on
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
forumstats.Visible = False
Dim s As String = Request.QueryString("fn")
If s <> "News" Or "General" Or "Training&Races" Or "Injurys&Health" Or "Other" Then
Submit.Visible = False
End If
End Sub
ASKER
ASKER
ASKER
Imports Microsoft.VisualBasic
Imports BBcode
Partial Class forums_newthread
Inherits System.Web.UI.Page
Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit.Click
Dim s As String = Request.QueryString("fn")
If s <> "News" Or s <> "General" Or s <> "Training&Races" Or s <> "Injurys&Health" Or s <> "Other" Then
newthread.addpost(s, theTitle.Text, inputforum.Text)
End If
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
forumstats.Visible = False
Dim s As String = Request.QueryString("fn")
If s <> "News" Or s <> "General" Or s <> "Training&Races" Or s <> "Injurys&Health" Or s <> "Other" Then
Submit.Visible = False
End If
End Sub
End Class
ASKER
ASKER
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY
Try to replace this
Are you looking for Server.URLEncode?
http://www.4guysfromrolla.com/webtech/042601-1.shtml
Or maybe Server.HTMLEncode and Server.HTMLDecode?
http://www.devx.com/tips/Tip/13459