A
abdul bari
Hi if you have a page called name.aspx and in there you want to use
the methods available in a custom class such as:
using System;
namespace tester{
public class testclass {
public String myString;
public void setMystring(){
myString = "hello world";
}
public String getString(){
return myString;
}
}
}
In the import directive you have <%@ Import Namespace="tester" %> do
you have to compile the source file into a dll and if so where do you
put it in IIS. (i have tried in wwwroot\Bin\ and other levels but
keeps on coming up with the following error
CS0246: The type or namespace name 'tester' could not be found (are
you missing a using directive or an assembly reference?)
I havnt got visual studio either!!
thanks abz
the methods available in a custom class such as:
using System;
namespace tester{
public class testclass {
public String myString;
public void setMystring(){
myString = "hello world";
}
public String getString(){
return myString;
}
}
}
In the import directive you have <%@ Import Namespace="tester" %> do
you have to compile the source file into a dll and if so where do you
put it in IIS. (i have tried in wwwroot\Bin\ and other levels but
keeps on coming up with the following error
CS0246: The type or namespace name 'tester' could not be found (are
you missing a using directive or an assembly reference?)
I havnt got visual studio either!!
thanks abz