Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4564792
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:33:05+00:00 2026-05-21T18:33:05+00:00

Just trying to see if I can add a definition/register AJAX web service explicitly

  • 0

Just trying to see if I can add a definition/register AJAX web service explicitly in a user control that uses it (via client side). Web service is defined and located on the same server as the control(s) that use it, but the control is unable to use it.

It works when I’m adding reference to the web service on SriptManager on the master page, but I want to specifically add it to be used by custom control, and then wan’t to remove it from the master page.

Scenario:
I’ve tried:
<%@ Register TagPrefix=”ajaxws” Assembly=”AssemblyName” Namespace=”WebService.AjaxNameSpace” %>

Let me know if some more details are needed. I’ve been researching a fix for this, but the only reliable fix I found, is to add the .asmx to ScriptManager on a master page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:33:05+00:00Added an answer on May 21, 2026 at 6:33 pm

    It would seem you are trying to add a script reference or a service reference to your script manager.

    You can accomplish this in the code-behind of your user control, using a statement such as:

    ScriptManager.GetCurrent(this.Page).Scripts.Add(/* Whatever it is you want to add */);
    

    … for which you need the Script Reference class, or …

    ScriptManager.GetCurrent(this.Page).Services.Add(/* Whatever it is you want to add */);
    

    … for which you need the Service Reference class.

    Note that either approach will give you fits if the page doesn’t have a script manager.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to display the dBm just as you can see it under: Settings>About
I am just trying to add a Hello World or a program that draw
Didn't find any from their website. I mostly just trying to see which one
Just trying to establish whether prototype can do something like $$('#ID a:last').css('color','#111'); Any ideas
Just trying to get my head around what can happen when things go wrong
Just trying to understand that - I have never used it before. How is
I am trying desperately to move towards OOP but just can't wrap my head
I'm working on an orbit simulation and I'm just trying to add a little
I am trying to add some validation to a form just before it is
So I'm trying to just add a simple ad to my app using admob.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.