Creating custom classes

Results 1 to 2 of 2

Thread: Creating custom classes

  1. #1
    Join Date
    Dec 1969

    Default Creating custom classes

    I created a class called writer and inside of a namespace I called GridWriter. Do I need to compile this file to use it and import it as a namespace in other pages, if so how? If not, how would I go about including this custom namespace in other pages?<BR><BR>Thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default Yes

    Compile the project into a dll and put it into the /bin folder under the root of your web site. Then, you can reference it in standard .aspx pages by doing this at the top of your page.<BR>Remember, just the namespace name not the full namespace name and class name.<BR><BR>&#060;%@ Import Namespace="MyNameSpaceName" %&#062;<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts