Creating Namespace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Utkarsh GAjjar
    New Member
    • Feb 2007
    • 1

    Creating Namespace

    I have created a Namespace named String1

    in which i have created a class named String11

    in that class i have two functions

    Trim1 ( Byval Str as String )

    ReplaceStr ( Byval Str as String )

    now i have to use it as Trim1(str) ' str is String
    ReplaceStr (str) ' str is String


    But how can i use it like str.Trim1() or str.ReplaceStr
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Here is an article that may help:

    Reusability in ASP .NET: Code-behind Classes and Pagelets

    Comment

    • rsr
      New Member
      • Dec 2006
      • 25

      #3
      Originally posted by kenobewan
      Hi Keno,

      I am quite new to .NET.

      Doesn't it depend on the language which he is using?.like whether its c# or vc++ or vb?..I mean the implementation.

      regards
      RSR

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Yes the implementation is...

        Comment

        Working...