cgountanis
16 Nov 2009, 10:52 AM
Why can I not change the class name Sample to anything and not have it break??? I change Sample to Sample2 for example then in the App.js I change calls to MyApp.Sample.* to MyApp.Sample2.* then I get e is not defined or just a white blank page. This is very annoying. Does everyone just develop with the class Sample only?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ext.Direct;
using Newtonsoft.Json.Linq;
namespace ExtDirectSample
{
[DirectAction]
public class Sample : DirectHandler
{
public override string ProviderName
{
get
{
return "Ext.app.REMOTING_API";
}
}
public override string Namespace
{
get
{
return "MyApp";
}
}
[DirectMethod]
public string GetTime()
{
return DateTime.Now.ToLongTimeString();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ext.Direct;
using Newtonsoft.Json.Linq;
namespace ExtDirectSample
{
[DirectAction]
public class Sample : DirectHandler
{
public override string ProviderName
{
get
{
return "Ext.app.REMOTING_API";
}
}
public override string Namespace
{
get
{
return "MyApp";
}
}
[DirectMethod]
public string GetTime()
{
return DateTime.Now.ToLongTimeString();
}
}
}