Sorry, I didn't make myself clear. What I means is...
I try to add a test class to the "ExtDirectSample" so that it can be seem by the client .
Here is how I do it:
I created a Test.ashx as below:
Code:
namespace ExtDirectSample
{
[DirectAction]
public class test : DirectHandler
{
public override string ProviderName
{
get
{
return "Ext.app.REMOTING_API_1";
}
}
public override string Namespace
{
get
{
return "MyApp_1";
}
}
[DirectMethod]
public string SayHello()
{
return "Hello!";
}
}
}
I used different ProviderName and Namespace in class compare to the same items of Sample class in Sample.ashx
Then, I add following code to default.aspx.
Code:
<script type="text/javascript" src="test.ashx"></script>
After that client will return results.
Code:
Ext.app.REMOTING_API_1 = {"type":"remoting","url":"/control/ExtDirectSample2/ExtDirectSample/test.ashx"
,"namespace":"MyApp_1","actions":{"test":[{"name":"SayHello","len":0}]}};
How to make the client return test class using the same ProviderName and Namespace?
thx.