N
needin4mation
public class FilterSQL
{
public FilterSQL(string strSQL)
{
}
private string FilteredData(string strSQL)
{
string s;
s = strSQL.Replace("\\", "\\\\");
s = s.Replace("%", "\\%"); //must come after the one for the slashes
or you get \\%
s = s.Replace("\"\"", "\\\"\""); //'same reason
s = s.Replace("'", "\\'");
return s;
}
....
I have this in a separate codebehind file. I enter
myFilter = new FilterSQL();
but it fails to compile. The class itself above compiles. I just
can't use it in my other codebehind files. How do I access it? Thank
you.
{
public FilterSQL(string strSQL)
{
}
private string FilteredData(string strSQL)
{
string s;
s = strSQL.Replace("\\", "\\\\");
s = s.Replace("%", "\\%"); //must come after the one for the slashes
or you get \\%
s = s.Replace("\"\"", "\\\"\""); //'same reason
s = s.Replace("'", "\\'");
return s;
}
....
I have this in a separate codebehind file. I enter
myFilter = new FilterSQL();
but it fails to compile. The class itself above compiles. I just
can't use it in my other codebehind files. How do I access it? Thank
you.