Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIhow to call a webservice method through client side Jscript how to call a webservice method through client side Jscript
Previous
 
Next
New Post
7/3/2008 2:24 AM
 

Hello There!

               I am working on Visual Studio 2005 . And i dont have "Ajax Enabled Asp.Net" web f0rms. could any one give a link to study about consuming webservices from client side script. For your inf0rmation the Http object calls the webservice method fine only when i execute the application and not accessing my application's virtual directory from some other system.


Thanks & luv U All, Myself
 
New Post
7/4/2008 11:13 AM
 

Hey Sidewinder2,

Are you attempting to call a web method from client script that resides on a different server? If so, this won't get you very far because its just plain not allowed by the browsers. If this is not the case, can you share in some more detail about what exactly you are doing currently?

Thanks,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/9/2008 1:56 AM
 

Hello Ian!,

                Thanks for ur reply man!. I have solved this issue. i had used webservice behavior to call a webservice method through internet!.

               for more information click this: http://forums.asp.net/t/1285013.aspx

 

Much Obliged & Thanks a Lot,

Myself


Thanks & luv U All, Myself
 
New Post
7/9/2008 8:39 AM
 

Keep in mind that the behavior you are using is IE specific (it will not work with other browsers).  Let me suggest investigating the use of ASP.NET's PageMethods.  More information on how to integrate them can be found here.


 
New Post
9/19/2008 12:42 PM
 

Jon,

I have succesfully created a stand-alone ASP.Net page that calls a WebMethod in the code-behind by calling PageMethods.<FunctionName> from the JavaScript.  However, when I try to do this from within a custom DotNetNuke module, I get the error "PageMethods is not defined".  I tried adding the following to the Page_Load event handler:

        If DotNetNuke.Framework.AJAX.IsInstalled Then
            Dim objScriptManager As ScriptManager
            objScriptManager = DotNetNuke.Framework.AJAX.ScriptManagerControl(Me.Page)
            objScriptManager.EnablePageMethods = True
        End If

I get the same result.  If I look at the page source I do not see the ASP.Net generated code that creates the PageMethods object that I see in the stand-alone page source.  This makes me think that somehow EnablePageMethods is set to False.

Any idea what I can do to fix this?

Thanks,

-Pat

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIhow to call a webservice method through client side Jscript how to call a webservice method through client side Jscript


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out