Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7076113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:15:33+00:00 2026-05-28T06:15:33+00:00

I created a class in asp and wanted to know if it was possible

  • 0

I created a class in asp and wanted to know if it was possible to create a function or sub named “END”. Is this possible even as a sub or function. The reason I wanted to call this for my class instance or class module like MyClass.End is to then call response.end?

Or is it possible to overide the response.end function to first check something before ending?

class Myclass

sub write(dim str)
      response.write(str)
end write

' Is this "END" possible?
sub end
   response.end
end sub

End class
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:15:34+00:00Added an answer on May 28, 2026 at 6:15 am

    Correction

    This is not a valid subroutine declare : sub write(dim str)
    Dim statement cannot be used to declare parameters. You should use ByRef or ByVal. Default is ByRef if not specified.
    And end write should be end sub.
    See instructions from MSDN : Sub Statement

    Trick

    When you need to use a reserved keyword for property or method name in the classes, you can declare it with brackets. Then you can call without brackets.
    Here the example:

    Class Myclass
    
        Sub Write(str)
            Response.Write str
        End Sub
    
        Sub [End] 'with brackets
           Response.End
        End Sub
    
    End Class
    
    Set o = New Myclass
        o.write "what's up?"
        o.end 'without brackets
    
    Response.Write "..." 'this will not be printed
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to build a .dll created from a class library in ASP.NET
I am created class diagram in asp.net mvc. I drag and droped some of
How to create a pragraph <p> tag in ASP.NET using the HtmlGenericControl class?
I created a class that's something like this: public class MovieTheaterList { public DateTime
I have a ASP.NET MVC 2 project. I've created edmx file on the class
I have a asp.net webapp and I am using Jquery. I wanted to know
i followed all of these steps in this tutorial: Created a validator class public
I have created a website in ASP.NET and have created a class and put
In ASP.NET MVC 2, to secure controller action, i have created a class RequirePermission
I created a class in ASP.NET C# which is located in the App_Code folder.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.