服务器控件与webservice的问题。
如题,服务器控件中如何封装一个asmx文件供jquery调用。作为嵌入资源的话能下载但是不能正常调用。
[assembly: WebResource("ServerControl2.WebGridAjax.asmx", "application/octet-stream", PerformSubstitution = true)]
String path = this.Page.ClientScript.GetWebResourceUrl(typeof(ServerControl1), "ServerControl2.WebGridAjax.asmx");
也就是说这个方法,能得到url,能下载,但是不能正常使用。