Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average.
Old 01-Oct-2005, 13:08
admin's Avatar
admin admin is offline
Join Date: Sep 2002
Posts: 1,052
admin will become famous soon enough

GIDForums enables New [VB] Visual Basic bbcode.

The GIDForums™ Team is proud to announce that GIDForums™ is now among one of the very first Webmaster / Programming forums to offer a custom-written Visual Basic Syntax Highlighter BBCode ([vb] bb code) to it's valued members and readers.

Please use the [vb] and [/vb] tag pair to enclose any visual basic code so that it appears like in the sample effect below:

Sample Effect of [vb] BB Code Tag

VB / Visual Basic Code:
' Example VB code supplied by

' Handler in Global.asax file
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
End Sub

' Handler in Errors.aspx file
Private Sub Page_Load(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load
    Dim errMessage As String = ""
    Dim appException As System.Exception = Server.GetLastError()
    If (TypeOf (appException) Is HttpException) Then
        Dim checkException As HttpException = _
            CType(appException, HttpException)
        Select Case checkException.GetHttpCode
        Case 403
            errMessage &= "You are not allowed to view that page."
        Case 404
            errMessage &= "The page you have requested can't be found."
        Case 408
            errMessage &= "The request has timed out."
        Case 500
            errMessage &= "The server can't fulfill your request."
        Case 503
            errMessage &= "The server is experiencing a heavy load."
        Case Else
            errMessage &= "The server has experienced an error."
        End Select
        errMessage &= "The following error occurred<BR>" & _
    End If
    Label1.Text = errMessage & "<BR>Please contact the server" & _ 
End Sub
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GIDForums enables New [JAVA] bbcode. admin Java Forum 12 18-Dec-2017 02:31
GIDForums enables New [C] / [C++] bbcode. admin C++ Forum 20 25-Aug-2008 05:48
What is "Ambigious symbol" ??*( a compilation error) small_ticket C++ Forum 2 07-Jan-2005 22:10
GIDForums enables New [KBD] bbcode. admin GIDForums™ 0 24-Jul-2003 06:26
GIDForums enables New [CSS] bbcode. admin GIDForums™ 0 01-Jun-2003 23:57

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:03.

vBulletin, Copyright © 2000 - 2018, Jelsoft Enterprises Ltd.