AJAX :: ModalPopupExtender + Web Service Call Failed: 500?

Nov 17, 2010

I know this is a pretty common issue as i have read a lot of posts from people with similar issues. However thus far what i have uncovered doesn't seem to help resolve my issue. I have used the ModalPopupExtender regular enough but this is my first time needing the Dynamic side of things. The code I have is very basic and generic at the minute..I have the following ASPX code in place:


Now just to say at this stage the Modal Dialog box pops up and closes 100%. So my ProductPopulate.asmx service at the moment for testing is just using the VS2010 default Web Service with a few changes that i will explain.


So the changes i have made to the default VS2010 webservice is from this article http://sandblogaspnet.blogspot.com/2009/07/working-with-modal-popup-extender.html

I changed the default HelloWorld method to static and also uncommented the following line


So this is as far as my code has gotten at the minute. The Modal Dialog pops up 100% and what i would expect to see within the dialog box would be the text "Sampling Control" from the DynamicContextKey. Instead what i get is the "Web Service call failed: 500" error. I have stripped everything back to basics as you can see.. but for some reason i am still getting this error. I have used Web Services before from time to time without any issues and i have used the ModalPopupExtender without any issues.. but i am left scratching my head as to what i am missing on putting the two together.

Also just to note, both ASMX and ASPX files are currently in the root of the web project to rule out any path issues. Also i am using the VS Web Service to preview and debug.

View 5 Replies

Similar Messages:

AJAX :: Call To Web Service Failed On Internet Explorer?

Dec 27, 2010

Some of my customers using Internet Explorer can't use my website because the call to my .net webservice failed. Under FF and Chrome no problem. For most of my customer using IE, it's working fine also but not for all...

I have isolated a call to the webservice that failed


I can't find why it's not always working with IE. I'm not able to get the error on my computer (even by changing security, privacy settings in IE).

View 3 Replies

AJAX :: ConfirmButtonExtender And ModalPopupExtender Server Control With Master Page Failed To Find Element

Sep 24, 2010

I am in the process of building a server control that contains a ConfirmButtonExtender. This is my code:

The Master Page:


View 2 Replies

AJAX :: ModalPopupExtender Not Getting Displayed After Async Method Call?

Jan 11, 2010

In our application we have a scenario where we need to display a panel using modalpopupextender after performing an async call on the server. We were using the Show method for displaying the popup. It used to work fine without any async call. But when an async call was introduced during the request processing the popup is not getting displayed.

View 7 Replies

AJAX :: ModalPopupExtender - Display Loading Indicator During WebService Call

Dec 16, 2010

On one of my pages I've got a popup window implemented using the ModalPopupExtender. The content html of the popup is retrieved from a webservice dynamically (using DynamicServicePath, DynamicServiceMethod properties of the extender). Everything works fine, however there is a minor problem: web service call takes about 2 seconds and the popup panel is blank during this time, which confuses the users. I would like to display 'Loading...' message in the popup window (or an animated image, does not really matter) during the webservice call. Is there a way to do it?

View 2 Replies

AJAX :: Trying To Get AutoComplete To Call Web Service

Apr 26, 2010

I'm going on my 3rd day trying to get my Ajax AutoComplete textbox to call my web method. Based on my google searches, I'm not alone. I suspect the problem has something to do with the ServicePath property on the extender, although I'm not sure. My web service is at the same level, on the same server as my test web page. I'm not sure exactly what should go into the ServicePath property, although I think I've tried every possibility. Below is my web service followed by my script.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Configuration;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using AjaxControlToolkit;
using System.Text;
using System.Xml;
using System.Xml.XPath;
using System.IO;
using System.Collections.Specialized;
using System.Web.Services.Protocols;
[WebService(Namespace = [URL])]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.

public class Service : System.Web.Services.WebService
public Service()
public string[] AutoCompleteNames(string prefixText, int count)
System.Data.SqlClient.SqlConnection cxn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["HumanResourcesConnectionString"].ConnectionString);

View 11 Replies

Call An Ajax - Enabled WCF Service With JQuery?

Jan 28, 2011

I have this Aja.svc in my root folder

[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class Aja
public string Hi()
return "hi world!";

and I'm trying to do this: $.get('Aja.svc?method=Hi', function(d) { alert(d.d); }); In firebug I see that the result is HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. I use .net 3.5, jquery 1.4.4

View 1 Replies

Call WCF Service Through Javascript - AJAX Or JQuery

Jan 13, 2011

I created a number of standard WCF Services (Service Contract and Host (svc) are in separate assemblies). I fired up a Web Site in IIS to host the Services (i.e., address is [URL]). Then in my Web Site project I added the reference. I am able to call the services normally. I am needed to call some of the services client side. Not sure if I should be looking at articles calling WCF services through AJAX, JQuery, or JSON enabled WCF Services. Some of the changes I made was adding the following to the Operation Contract:

[WebInvoke(Method = "POST", UriTemplate = "SetFoo")]
void SetFoo(string Id);

Then this above the implementation of the interface:

[AspNetCompatibilityRequirements(RequirementsMode =

Then in the service webconfig I have this (parens are angle brackets):

<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
<add prefix=[URL]>>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />

Then in the client side I attempted this:

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">

I am attempting to call the service like this in javascript: wcfservices.SetFoo(string Id); Nothing is working. If it is idea or a better solution to call JSON enable, JQuery, etc.... I am willing to make any changes.

View 1 Replies

AJAX :: AutoCompleteExtender Can Call A Service Web Of Another Project?

Jan 25, 2011

it is possible that AutoCompleteExtender can call a service Web of another project of my solution?

View 1 Replies

AJAX :: Can Not Call Two Different Pagemethods With Two Service Methods

Oct 1, 2010

I am using an AJAX dropdownlist control with two dropdownlist. Instead of using a webservice to populate the data, I used the pagemethod to populate. My problem is the second droplist won't populate. I get a server error, 500 in the droplist. The first droplist populates fine.

BUT here's the real kicker. If I reverse the order of the public static function such that GetHelloList2 comes BEFORE GetHelloList1 in the code, then the GetHelloList2 works ...... it just seems like it is only firing one pagemethod event and allowign only one.


View 5 Replies

AJAX :: Add Http Header When Use Call Web Service?

Aug 4, 2010

I have one ajax call web service, and want to add some http headers using javascript, can we do that use setrequestheader in ms ajax?This is my javascript



View 3 Replies

AJAX :: Unable To Call The Service Using Scriptmanager And Js?

May 21, 2010

I'm not able to call a service using the scriptmanager and javascript. But when I include the service into the project i call it. but when i seperate it in another project. I'm not able to call.

<asp:ScriptManager runat="server" ID="sm" EnablePageMethods="true" EnableScriptGlobalization="true">
<asp:ServiceReference Path="http://localhost:2794/Service1.svc" InlineScript="false" />

View 1 Replies

AJAX :: Call To Service To Fill In A DataView

Jan 1, 2010

I'm just learning MS ajax and am having problems getting a relatively simple test to work. I'm attempting to call a web service (of the .asmx variety) to return a very simple 3-column table to render in a dataView in an .aspx page. I've successfully created a working service and can by stepping through the service code it's getting the data correctly. The problem I'm having is that it stops with an exception in MicrosoftAjaxDebug.js on this line:


where my user_table contains 3 columns: user_name, user_key, user_ID. Real simple.My test.aspx page to get this data looks like this:


One more thing, I'm a little confused between the two downloads I've found, "MicrosoftAjaxLibrary_Preview6.zip" and "AspNetAjaxLibraryBeta0911.zip". From what I can tell, the latter contains all the old Ajax toolkit gadgets as well as the MS Ajax scripts. Is the MS Ajax download just a refresh of the ajax scripts in the Asp.Net ajax library? I've installed and am using the preview 6 scripts for my website.

View 3 Replies

AJAX :: ModalPopupExtender / Datalist Original Image Come In Modalpopupextender After Click

Apr 14, 2010

I have a DataList that contains some Thumbnail Image(Image Button).

Now I want when i click on any Item in datalist the original image come in modalpopupextender.

How I can do this?

<ItemTemplate> <table
ImageUrl='<%# Eval("Img_URL") %>'
</table> <br
my panel that shows as modalpopu

Now where I can to write code that when i click on item in datalist Original Image show in modal popup extender?

View 3 Replies

Jquery - Ajax Call For WCF Service Undefined Error

Feb 22, 2011

I have this method in asp.net ajax enabled mvc service

public TestRun GetTestSuite(string testSuitName) {
TestRun testRun =
return testRun;

Where TestRun is Created using entities framework against TestRun table. I am using following ajax method

function getTestSuite() {
type: "POST",
url: "Services/TestRunService.svc/GetTestSuite",
data: '{"testSuitName" : "' + testSuiteName + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
//If the call fails
error: function (xhr, textStatus, errorThrown) {

I get undefined error. If I return string from service it works. Do I need to change dataType: "json" to something else?

View 1 Replies

AJAX :: Invalid Web Service Call, Missing Value For Parameter?

Mar 2, 2010

In a web page, I call a web service (located in the sub folder WebServices) with ajax asp.netHere my aspx code:


My web site uses integrated windows authentication and all works fine.However, my web service doesn't need authentication and in order to not have 2 requests (because of http code 401), I've allowed anonymous access on the WebServices folder. Doing this, I get the folowing error message when I call a web method: "Invalid web service call, missing value for parameter: user"When I look at my body request with Web Development Helper, I can see {"user":"toto"}. So, I don't understand why it's not working.Another weird thing: when I run Fiddler2 instead of Web Development Helper, every thing works fine. I turn off Fiddler2, and it doesn't work any more.

View 1 Replies

AJAX :: Call Web Service Methods Using Soap Headers .Net 2.0?

Feb 2, 2010

I have a web service/wsdl file that requires client authentication to passed through SOAP headers.

There is not property or method available in web service to set the SOAP headers.

how to call the web service method along with SOAP headers in .NET 2.0

View 7 Replies

Jquery Ajax Call To Web Service - Canīt Pass Parameters?

Nov 6, 2010

Iīm using jQuery to make the ajax calls to web services. Iīm not using json, I want the information in XML. If I donīt pass parameters and I make the WS parameter less it works but if I want to pass a value as parameter (I tried int and string) it doesnīt work. Here is my code:

jQuery: [Code]....

The web service


The error that I get from firebug is an exception System.InvalidOperationException and it says that the parameter region_id is missing.It canīt be very difficult because it works without parameters but all the information I find in internet

View 5 Replies

Jquery - Why 3 Extra HTTP Requests Are Done If You Use Ajax Call To A .net Web Service

Apr 4, 2011

When I was reading the blog Using jQuery to Consume ASP.NET JSON Web Services

I have seen this argument:

"By using jQuery to call the web service directly, we've eliminated over 100 KB of JavaScript and three extra HTTP requests. "

Why does the ASP.NET AJAX call to a .NET Web-Service needs 3 extra HTTP requests? What are those requests? (I wonder how jQuery manages the call with lesser HTTP requests in this case).

View 2 Replies

VS 2013 - Call Web Service Function Within (Code Behind) Using AJAX On Page

Dec 4, 2014

I am trying to call a web service function within my own ASP.net (code behind) using AJAX on the page.

Once i push the button to execute the JS/AJAX/codebehind - I got an error.

POST http://************/admin/Admin.aspx/getDBInformation 500 (Internal Server Error)

This is my code below that I am currently using:

<WebMethod> _
Public Shared Function getDBInformation() As String
Return JsonConvert.SerializeObject(dbInfo, System.Xml.Formatting.Indented)
End Function
End Class

The code behind looks like this:

Imports System.DirectoryServices
Imports System.Security.Principal
Imports System.Net
Imports System.Drawing
Imports System.IO
Imports System.Data.SqlClient
Imports System.Web.Services
Imports Newtonsoft.Json

[Code] ......

How can I correct this issue so that I am able to call **loadDBData()** without that 500 error?

View 2 Replies

AJAX :: Throw Exception Message "Authentication Failed" When Call Webservice Form Javascript

Aug 16, 2010

I was created webservice which has a Method:


Then, in my aspx page, i call that method in javascript, but i get a Exception message is "Authentication Failed", code below:


How to resolve this problem?

View 3 Replies

AJAX :: ModalPopupExtender -- Fetch Data In Modalpopupextender

Apr 7, 2010

I would really appreciate if someone can find out what's wrong with this code.

Here is my question. I have textboxes in a modal popup extender (City, state, zip) and there is an image button search for searching the address from the database. All this functionality is within a control (.ascx file). This control is added to the page where it needs to be displayed and is being displayed when a user click the Address button (the code for it is not shown here). The method ShowAddressSearch() in the control is being called from the page and it displays the popup.

When the user enters any of the 3 values and hits search a server event is fired up and the result should be displayed in a grid. What is happening is, when the user hits the search button the server call is made and the data fetched from the db but the modal popup closes itself here is the code for this. I would really appreciate if someone can find out where and how popup is getting closed.


View 1 Replies

AJAX :: How To Avoid Cascading Dropdowns To Call Their Service Methods On Every Postback Of The Page

Feb 24, 2011

I have three cascading dropdowns on my web page and they work fine. The issue I am facing is that there are other controls on the page which cause a postback and with each postback the cascading drop downs are being re-populated (service methods are called) which is becoming a performnace issue.

View 1 Replies

AJAX :: Asynchronous Additional Rendering - Display Piece Of Info Retrieved From Web Service Call

Jun 24, 2010

I am building a page with databound list control. For each row I want to display piece of info retrieved from web service call. This could be time demanding so I want to render page first and retrieved additional info asynchronously and in parallel later on. Anyone has some tips how to make it? Just to have a more detailed picture it is a product list in e-shop which I want to render so customers can use it (go to product detail/add goods to shopping cart...) but meantime there will be a placeholder displaying info that informations are retrieving which after completion of call will be replaced by result data.

View 2 Replies

WCF / ASMX :: How To Call Synchronous Service Call For Combo Boxes

Mar 29, 2010

How to call Synchronous service call for combo boxes? As I know Synchronous calls do not create a good user experience because the application is hung waiting for the Web service call to return. Then it is my requirement.

View 1 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved