如何从母版页到.asmx页访问方法 [英] HOw to access the methods from master page to .asmx page
本文介绍了如何从母版页到.asmx页访问方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
我正在做一个asp.net项目,我对此表示怀疑,
我需要从母版页调用.asmx页中的某些函数.
我们可以从母版页访问.asmx页的方法吗?
请给我建议.
预先感谢,
Dileep ..
HI Sir,
I am doing a asp.net project, i have doubt,
I need to call some functions in .asmx page from a master page.
Can we access the methods from master page to .asmx page.
Please advice me.
Thanks in advance,
Dileep..
推荐答案
首先,.asmx是Web服务类,而不是您在问题中称呼的页面".
第二件事是使用Web服务,即将.asmx中的函数转换为母版页或母版页(以相同的方式使用).使用它的步骤如下:
使用ASP.NET调用Web服务 [ http://www.aspdotnet-suresh.com/2011/05/aspnet-web-service-or-creating-and.html [ http://www.simple-talk.com/dotnet/asp .net/using-webservices-with-asp.net/ [ http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-and-call-a-simple-web-service-in-aspnet [
First of all a .asmx is a webservice class and not a ''page'' as you call it in your question.
Second thing is using the webservice i.e. functions from .asmx into a master page or page ( used in same way). The steps for using it are as follows:
Calling Web Service using ASP.NET[^]
http://www.aspdotnet-suresh.com/2011/05/aspnet-web-service-or-creating-and.html[^]
http://www.simple-talk.com/dotnet/asp.net/using-webservices-with-asp.net/[^]
http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-and-call-a-simple-web-service-in-aspnet[^]
这篇关于如何从母版页到.asmx页访问方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文