Category Archives: Webservice

Webservice

Getting data of json array

I create an array with javascript that has some ids. I pass them back to my controller like so

$.ajax(
{
url: "/Home/GetChildKeys",
data: { ids: nodeKeys },
dataType: "json",
type: "GET"
}).done(function (result) { });

What I’m not sure on is how I get that data in my c# code to work with it. Here’s my function in my controller

//how do I get the array passed in as an argument
        [HttpGet]
        public JsonResult GetChildKeys(object var)
        {
            //need to figure out how to read id data and then pass back child keys
            return Json("foobar", JsonRequestBehavior.AllowGet);
        }

The param you choose for your ‘data’ option in the ajax-request must match the param of your post-action. 

[HttpGet]
public JsonResult GetChildKeys(someType ids)
{
...

Is nodeKeys a list of objects, or a string?  That will determine the "someType" above

I knew I’d have to get the type, I just wasn’t for sure what type it would be.

nodeKeys is just a javascript string array;

Something like 

var nodeKeys = ["cat_1", "cat_2", "cat_3"];

That’s not json, but anyway, try

string[] ids

or

List<string> ids

Then you could do

[HttpGet]
public JsonResult GetChildKeys(string[] ids)
{
foreach (var id in ids)
{
// process each id here
}

...
}

I was under the impression if I sent the data like this (underlined in bold)

$.ajax(
{
url: "/Home/GetChildKeys",
data: { ids: nodeKeys },
dataType: "json",
type: "GET"
}).done(function (result) { });

that it would convert that to json for me?

The "data" node will be json, but the data you are passing in the "ids" property is just a plain javascript array.

hi,

usually ajax communication more serialized content, while receiving  action method have to serialise as per mention data type, 

client : var array1 = ["A", "B", "C", "D"];
server : public JsonResult AjaxCallTest(List<string> postedModel){ //code…… }

client : var array = [1, 2, 3, 4, 5];
server : public JsonResult AjaxCallTest(List<string> postedModel){ //code….. }

or just pass json string, then in controller action have to parse posted json to respective model object.

Ref : serializing and deserializing json in c#

Thanks,

Jai

So how do I go about passing that array back to my application?

Basically, there’s some code that runs through a treeview and pulls the ids of any checked items and pushes them into the array. So, I need to send that array of ids back to my controller as json data. I don’t really care how they get there, array, list,
etc. but I just need to be able to loop through them. Ideas?

hi,

Client :

var selectedItems = [1, 2, 3, 4, 5]; // try to push your selected item.

$.ajax({
url: "/Account/AjaxCallTest/", //your url
traditional: true,
dataType: "json",
type:’post’,
data: { ids : selectedItems },
success:function(data) { 
},
error: function (errorMsg) {
}
});

Server:

[HttpPost]
public JsonResult AjaxCallTest(List<int> ids )
{
// your logic…
}

Thanks,

Jai.

That’s what I tried after your first post with no luck. This is what I have

var nodeKeys = ["cat_1", "cat_2", "cat_3"];

$.ajax(
{
url: "/Home/GetChildKeys",
data: { ids: nodeKeys },
dataType: "json",
type: "GET"
}).done(function (result) { });

C# 

        //how do I get the array passed in as an argument
        [HttpGet]
        public JsonResult GetChildKeys(List<string> ids)
        {
            //ids is still null
            var foo = ids;

            //need to figure out how to read id data and then pass back child keys
            return Json("foobar", JsonRequestBehavior.AllowGet);
        }

http://forums.asp.net/t/1934215.aspx?Using+jQuery+ajax+to+call+asmx+webservice+methods

either add

contentType:
"application/x-www-form-urlencoded; charset=UTF-8",

to your $.ajax call, or try

data: JSON.stringify({ ids: nodeKeys }),

I’ve tried both of those and ids is still null

nodeKeys = ["cat_1", "cat_2", "cat_3"];
$.ajax(
{
url: "/Home/GetChildKeys",
data: JSON.stringify({ ids: nodeKeys }),
dataType: "json",
type: "GET"
}).done(function (result) { });

and even

nodeString = "cat_1,cat_2,cat_3";
$.ajax(
{
url: "/Home/GetChildKeys",
data: "{keys: ‘" + nodeString + "’}",
dataType: "json",
type: "GET"
}).done(function (result) { });

You have to set the correct contentType too so the service knows how to interpret the data you are sending.  As well as the link I posted with all the examples, look at this to see how you can use the browser’s dev tools to see what is being sent and what
the response is.

http://forums.asp.net/t/1982579.aspx?Using+the+browser+s+dev+tools+to+diagnose+ajax+problems+and+other+things+

[RESOLVED]how to create webservices in mvc 5?

hi all,

i am learning mvc 5.

i searched for web services in mvc 5 but i cant’t find proper resource

could any one please provide me step by step tutorial for web services in mvc 5.

Thanks,

Murali.

You should look at Web API: http://www.asp.net/web-api

murali krishna14

i searched for web services in mvc 5 but i cant’t find proper resource

WebServices are just asmx fiule added to asp.net project( webforms or mvc)

Hi Mike,

Thanks for Reply

i have a doubt

is both web services and web-api are same?

or can we use webservices in webforms and web-api in mvc?

Web services are services delivered over HTTP. They can be Soap-based or REST-based. WCF and asmx files are examples of Soap-based web services frameworks. Web API is a REST-based framework for delivering services over the web. You can use Web API with Web
forms or MVC. You can also use WCF and Asmx files with Web Forms and MVC.

You have two major options when working with Web Services in ASP.NET. The older approach being Windows Communication Foundation (WCF) and the newer being Web API. I’ll include a few resources below detailing Getting Started with both technologies.

Windows Communication Foundation

Windows Communication Foundation (or WCF) is a one of Microsoft’s primary methods of handling web services within ASP.NET. I would recommend checking out the following resources :

Web API

ASP.NET Web API is a development environment aimed at developing RESTful Web Services that will allow your application to easily send and recieve HTTP Requests (web
requests
) and perform operations based on the types of Requests that are made to it (such as providing information about a user if provided their ID etc.) It was designed to replace the previous Windows Communication Foundation
(WCF) approach to developing Web Serviecs within .NET.

You can learn more about it by visiting the Web API area of this site.

General Web Service Information

If you need some advice on using Web Services in ASP.NET, I would recommend the following resources : 

Hi murali krish,

Thanks for your post.

I agree with Mike.

WebApi is an alternative Service oriented application from Microsoft just like WCF. But WCF uses SOAP protocol and WebAPI uses HTTP protocol for communication.

So if you are using WCF to provide service for your MVC application you would host that wcf service seperately and consume its service by MVC application, EXACTLY same way you have to host your WebAPI project seperately and provide service to your Web application
(MVC).

More information:Add Web API to an existing MVC 5 Web Application

Hope this can be helpful.

Best Regards,

Eileen

Thanks Mike and Rion,

Now i understood.

[RESOLVED]WebAPI – Separate Project or Built into Existing Project?

Good day,

I have an existing MVC project for a client and they would like to build on to it.

The tools that I will be adding will also be called by other external systems, so I plan to build a WebService / WebAPI.

My question is; Should I just add a WebAPI Controller class to the existing project, OR should I add a new Project to the entire solution?

TIA,

Mark

Hi,

that depends on the fact if you want to deploy them separately or not. If yes then make a new project for your Web API’s, if not then you can put them in the MVC project all together.

Grz, Kris.

Hi 2lethal,

Thanks for your post.

I think you can try to  add web API to the existing project or others

Please refer to the following links:

How to add Web API to an existing ASP.NET MVC 4 Web Application project?

How to add Web API to an existing ASP.NET MVC (5) Web Application project?

Add Web API to an existing MVC 5 Web Application

Hope this can be helpful.

Best Regards,

Eileen

Java Script Exception

Hi ,I m getting below exception if any one know why its coming then let me know.

Stack Trace:    at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Script.Services.RestHandler.GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer)
at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)<br/>Service Error: Request timed out.<br/>Status Code: 500<br/>Exception Type: System.Web.HttpException<br/>Timedout: false

Hi krajmehra,

Base on the error message, the status code is 500 which means the target site has the exception.

Please check the target site, whether it works fine.

On the other hand, please provide the related code.

Best Regards

Starain

Yes it seems to be Internal Server error.

Please debug and put the block of code in try catch that is throwing this exception.

I am sure you would figure out the issue then

Thanks.:)

surajmindfir…

I am not getting this exception in development,its happening in production env,I am unable to debug.

Hi,

How do you get that error message? Is there the detail error message?

Please provide the related code.

Best Regards

Starain

[RESOLVED]Populate Textbox/FormView based on selection

<div itemprop="text" class="parsed-message clear">

Hi, I am currently working on an assignment and am stuck on the very end of it.
In a previous assignment we created a SQL database and GUI in vs C# for this one we have to turn this into a web service, I have all forms working apart from one.

I need to be able to type a customersID into the box at the top click the button and populate the fields below based on what ID has been selected..it sounds easy but I can’t get it to work. I have looked at the option of making it into a dropdownlist and
populating the textboxes based on what is selected in that, i have spent hours researching and can’t find a way to make it work in a webservice.

If anyone has any ideas on what I should be doing, I would be forever Greatful!!

</div>

Hi Roisin,

Can you post your webservice code please.

If you have a textbox where the user can enter a value and then press submit which in return will load everything associated with that Id then you could use Jquery for this.

But post your code so we can check it out.

**Update**

Typed this on my phone so not sure if its 100% bullet proof.

// Html for tetbox and button

<input type="textbox" id="txtCustomerId"/>
<button type="submit" id="btnFindCustomer">Find<button>

// Javascript section to call WebMethod to return customer name

<script type="text/javascript">


$(document).ready(function (){
$("#btnFindCustomer").click(function (){
$.ajax({ type: "POST", url: "YourPage.aspx/GetCustomerName", data: {customerId: $('#txtCustomerId').val()}, dataType: "json", success: function(msg) { // Do something with results msg.d alert(msg.d); }, error:function(){ alert('opps'); } }); }); }); </script> // Code behind [WebMethod] public static string GetCustomerName(string customerId) { // Modify this function to return the relevant values from the db return "CustomerName"; }

[RESOLVED]Javascript Web service call useService from webservice.htc not working in IE11

Is there a way for this to work? I am migrating some codes to be IE11 Compatible but then I got the following error for a script calling a web service.

Object doesn’t support property or method ‘useService’. Please help!

 function UpdateCombos(svrType)
{
 var C;
 var C1;
 var I1;
 
 /* get the default cemetery*/
 lblTitle=document.getElementById("lblCaption") ;
 C= getCemeteryName(lblTitle.innerText); 
 
 if  (svrType.length > 0)  
 {  
  service.useService("../Services/wsCMS.asmx?WSDL", "GetList");
  iCallID = service.GetCoffinList.callService(GetListResult,"GetList", C, svrType, C1);  
  
  service.useService("../Services/wsCMS.asmx?WSDL", "GetIList");
  iCallID = service.GetIList.callService(IResult,"GetIList", C, svrType, I1);  
 }
 
 return(false);
}

Hi,

Check this site. There it mentions clearly, webservice behavior has been obselete from IE10.

http://msdn.microsoft.com/en-us/library/ms531034%28VS.85%29.aspx

[RESOLVED]Reading XML and getting Nodes

I’m having some trouble ready an xml file and getting the nodes. Here is the structure of the xml I’m working with:

<?xml version="1.0" ?>
<ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2013-08-01">
	<OperationRequest>
		<RequestId>94a1557f-239b-411f-b053-15e59b568e61</RequestId>
		<Arguments>
			<Argument Name="Operation" Value="ItemLookup"></Argument>
			<Argument Name="Service" Value="AWSECommerceService"></Argument>
			<Argument Name="Signature" Value="u1v4Mc="></Argument>
			<Argument Name="AssociateTag" Value="bbbb20"></Argument>
			<Argument Name="Version" Value="2013-08-01"></Argument>
			<Argument Name="ItemId" Value="B005VDX3ZK"></Argument>
			<Argument Name="IdType" Value="SKU"></Argument>
			<Argument Name="AWSAccessKeyId" Value=""></Argument>
			<Argument Name="Timestamp" Value="2014-11-10T19:16:07Z"></Argument>
			<Argument Name="ResponseGroup" Value="Medium"></Argument>
			<Argument Name="SearchIndex" Value="hhh"></Argument>
		</Arguments>
		<RequestProcessingTime>0.0286930000000000</RequestProcessingTime>
	</OperationRequest>
	<Items>
		<Request>
			<IsValid>True</IsValid>
			<ItemLookupRequest>
				<IdType>SKU</IdType>
				<ItemId>B005VDX3ZK</ItemId>
				<ResponseGroup>Medium</ResponseGroup>
				<SearchIndex>Toys</SearchIndex>
				<VariationPage>All</VariationPage>
			</ItemLookupRequest>
		</Request>
		<Item>
			<ASIN>B005VDX3ZK</ASIN>
			<ParentASIN>B00BEFJNQ2</ParentASIN>

I’m trying to get the Items/Item and I’m getting an error:
System.Collections.Generic.List`1[<>f__AnonymousType0`3[System.String,System.String,System.String]]

This is the code I’m working with to load the xml:

 var feed = XDocument.Load(requestUrl);
    var items = feed.Descendants("Items").Descendants("Item")
        .Select(item => new
    {
        Title   = item.Element("ASIN").Value,
        ASIN    = item.Element("ItemAttributes").Element("ASIN").Value,
        IMGAGE  = item.Element("MediumImage").Element("URL").Value
        
    });


-----

  @foreach (var item in items)
        {            
            <strong>@item.Title</strong>
            @item.ASIN<br />
            <img src="@item.IMGAGE" />
        }

You need to declare and initialise an XNamespace object:

 

XNamespace ns ="http://webservices.amazon.com/AWSECommerceService/2013-08-01";
var feed = XDocument.Load(yourDoc);

var items = feed.Descendants(ns + "Items").Descendants(ns +"Item")
    .Select(item => new
{
    Title   = item.Element(ns +"ASIN").Value,
    ASIN  = item.Element(ns +"ItemAttributes").Element(ns + "ASIN").Value
    //etc
});

Thanks Mike!

Is possible to test if the item node is null with Linq? For example if I’m passing a ItemId that doesn’t exist I receive the following response:

My first thought is to place a try catch and check if Item is null and check the errors > error, so I’m wonder if this could be accomplished in the Linq select?

<ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2013-08-01">
  <OperationRequest>
    <RequestId>a2b04789-fa9c-4010-8ee8-404200a48508</RequestId>
    <Arguments>
      <Argument Name="Operation" Value="ItemLookup"></Argument>
      <Argument Name="Service" Value="AWSECommerceService"></Argument>
      <Argument Name="Signature" Value="000="></Argument>
      <Argument Name="AssociateTag" Value="000-20"></Argument>
      <Argument Name="Version" Value="2013-08-01"></Argument>
      <Argument Name="ItemId" Value="BBB"></Argument>
      <Argument Name="AWSAccessKeyId" Value="000"></Argument>
      <Argument Name="Timestamp" Value="2014-11-10T22:44:59Z"></Argument>
      <Argument Name="ResponseGroup" Value="Medium"></Argument>
    </Arguments>
    <RequestProcessingTime>0.0095860000000000</RequestProcessingTime>
  </OperationRequest>
  <Items>
    <Request>
      <IsValid>True</IsValid>
      <ItemLookupRequest>
        <IdType>ASIN</IdType>
        <ItemId>BBB</ItemId>
        <ResponseGroup>Medium</ResponseGroup>
        <VariationPage>All</VariationPage>
      </ItemLookupRequest>
      <Errors>
        <Error>
          <Code>AWS.InvalidParameterValue</Code>
          <Message>BBB is not a valid value for ItemId. Please change this value and retry your request.</Message>
        </Error>
      </Errors>
    </Request>
  </Items>
</ItemLookupResponse>

You can use FirstOrDefault:

var el = doc.Descendents("SomeElement").FirstOrDefault();
if(el != null){
    // it exists
}

[RESOLVED]Data get written out on page after jquery ajax call to method

I’m calling a method and passing an id to get a product in the form of xml. It’s working fine but i’m writing out the results to the page which I don’t want. I would like to work with the xml on the ajax success. Is there a better way of doing this?

Method located in: Methods/getProduct.cshtml

if(IsPost){
        
        var itemID = Request["itemID"];

        string MY_AWS_ACCESS_KEY_ID = "00";
        string MY_AWS_SECRET_KEY = "00";
        string DESTINATION = "ecs.amazonaws.com";
        string ASSOCIATE_TAG = "0000-20";
        string NAMESPACE = "http://webservices.amazon.com/AWSECommerceService/2013-08-01";

        var helper = new AmazonProductAdvtApi.SignedRequestHelper(MY_AWS_ACCESS_KEY_ID, MY_AWS_SECRET_KEY, DESTINATION);
        var r1 = new Dictionary<string, String>();
        r1["Service"] = "AWSECommerceService";
        r1["Version"] = "2013-08-01";
        r1["Operation"] = "ItemLookup";
        r1["ItemId"] = itemID;
        r1["ResponseGroup"] = "Medium";
        r1["AssociateTag"] = ASSOCIATE_TAG;

        // Get the signed url
        var requestUrl = helper.Sign(r1);

        // Make the request
        var client = new WebClient();
        var xml = client.DownloadString(requestUrl);

        //Response.Write(xml);

    }
    else {
        Response.Write("Nothing");
    }

Jquery located in Product.cshtml

<script type="text/javascript">
    $(function () {

        $("#formGetProduct").submit(function (e) {
            request();
            e.preventDefault();
        });

        function request() {
            $.ajax({
                type: "POST",
                url: "Methods/getProduct",
                data: "itemID=" + $("#productId").val(),
                success: function (data) {

                    //$("#result").html(data);
                }
            });
        }
    });
</script>

You could probably do with reading this first: https://www.udemy.com/blog/jquery-xml/

Two points: you should make sure the Response.ContentType in your getProduct file is set to application/xml, and you should use GET in your jquery instead of POST.

[RESOLVED]IE11 having issues with javascript. If i'm put alert() in my code it's working. without alert() not working in for only IE11 only all IE version working without alert()

Hi!

    I doing on a big product requirement that if client close the browser need to logout from database that client. while I’m working on this I’m able to execute this function all browsers. in < IE10 versions working fine. But I’m recently upgraded
to IE11. This functionality not working in IE11 version only if I put alert() message in this code it’s working.

here’s the code

varCookieClientID =
"";

varCookieUserID =
"";

$(window).unload(function() {

});

$(window).bind("beforeunload",
function() {

beforeunloadval++

if(beforeunloadval == 1) {

varvalue = document.cookie.split(‘|’);

CookieClientID = value[7];

CookieUserID = value[8];

if(CookieClientID !=
""|| CookieUserID !=
""|| CookieClientID != undefined || CookieUserID != undefined) {

try{

//BTGUI.WebServices.ConnectionToken.LogoutMethod(CookieClientID, CookieUserID, LogoutMethodSucess);

if(Sys.Browser.name ==
"Microsoft Internet Explorer") {

BTGUI.WebServices.ConnectionToken.LogoutMethod(CookieClientID, CookieUserID, LogoutMethodSucess);

// without alert() not working on IE11 but working on below versions of IE versions if put alert() it’s working in IE11

//alert(‘ok’);

}

else{

BTGUI.WebServices.ConnectionToken.LogoutMethod(CookieClientID, CookieUserID, LogoutMethodSucess);

}

}

catch(e) {

alert(e)

}

}

}

return;

});

Hi,

What error is thrown by IE11?

You have to know that: UserAgent string has been changed in IE11, making it difficult to detect it.

check this site for details:

http://msdn.microsoft.com/en-in/library/ie/hh869301%28v=vs.85%29.aspx

When you close the browser, there is no guarantee that the server side code will make success. Sometimes it works, sometimes it’s not. You are experience the outcome of a badly designed solution. We usually handle logout in the Session_End event. Do not
rely on the client side events. :)

As for it’s working when you put an alert, I believe the browser hangs on because it displays the alert so it has time to make the server call. When you close the browser, the process ends so there is no way to make the server call. It depends on how the
OS handle the exit process of the browser application I guess.

[RESOLVED]specific need for tutorial or examples of java script in web forms.

I have a specific need to learn the best way to include java script in ASP.net WEB FORM pages.

I have already performed the obvious script calls using the Client Register StartUp script and experience with passing session values to java script functions.

I am looking for tutorials with more elaborate uses of a .js file that basically populates java script page content within a web form.

Any links or tutorials would be greatly appreciated. My search has gone on for a few days now, and nothing seems to fit my needs. There just doesn’t seem to be a great deal of material.

One example of the requirement is the use of the client side index DB to transfer blocks of data, rather than constant postbacks as is so common with ASP.net when displaying records synchronously.

It sounds like you are looking into using AJAX to make requests, as these will allow you to access information from your server-side code (such as Session values) from your client-side Javascript code.

An example of using this that involved jQuery might look like the following example.

I suppose you could define two WebMethods within your Example.aspx page and then make AJAX Requests to either set or retrieve the value from the Session :

[WebMethod]
public static string GetSessionValue(string key)
{
     return Session[key];
}

[WebMethod]
public static string SetSessionValue(string key, string valueToStore)
{
     Session[key] = valueToStore;
}

This way if you needed to retrieve a Session key through AJAX, you could use :

$.ajax({
            type: "POST",
            url: "Example.aspx/GetSessionValue",
            data: '{ key: "YourSessionKey" }',
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(data) {
                  // Grab your Session value here
                  alert("The Session value for YourSessionKey is " + data);
            }
});

or if you needed to set one :

$.ajax({
            type: "POST",
            url: "Example.aspx/GetSessionValue",
            data: '{ key: "YourSessionKey", valueToStore: "Example" }',
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(data) {
                  alert("The Session value for YourSessionKey has been set!");
            }
});

You could define areas within this same scripts and instead of performing an alert, you could set the value for a particular field :

success: function(data) {
        $("#IDOfYourControl").val(data);
}

You can find some additional AJAX and Javascript related tutorials / walkthroughs below :

It’s best to have a reasonable understand of Javascript if you are planning on using AJAX directly, although there are several different ways to get around this (using the jQuery framework for instance greatly simplifies
this process
) or by using a series of AJAX-based Controls like the AJAX Control Toolkit which automate much of the process for you, but only for certain tasks.

You can use many of the resources listed below if you want to get more familiar with Javascript or with other associated technologies :

Thanks Rion,

I have seen many of your posts and appreciate your feedback. But I think I wasn’t clear enough in my sample. A key factor in the process I am working on is that I would like to display a chart or graph or map.

I set this up with AJAX and it works, but because of the amount of data, the postbacks flicker and there are large amounts of data being transferred, all within the .net aspx environment.

In a php environment with javascript, the indexDB is populated and the chart or graph refreshes from the local PC rather than a postback. The initial download may pull down 1000 records, then after playing back 750, the next 1000 are retrieved. In this instance
we are playing back recorded data at a 1 second interval, that may have been record in 100 millisecond interval. Both of these values may change by user selection or based on the recorded data was captured.

The same logic might apply to a Google map as a marker travels a recorded route and plots the path of the route taken on the map.

Again, I have this working in an ASP environment, its the Postback refresh that is killing the visual.

I am hoping to learn more about how to take advantage of the indexDB with asp.net.

Hi,

Maybe this is because you are trying to search that in conjonction with ASP.NET? When you are client side the server side technology doesn’t matter much. So for example something like
http://www.html5rocks.com/en/tutorials/indexeddb/todo/ doesn’t deal at all with that. You can even  do ajax request etc… and you end up in the ASP.NET land only when you’ll deal with providing
the server side endpoints for those AJAX calls…

So here it seems you should just focus on how to use indexDB (which is unrelated to using PHP, ASP, ASP.NET or whatever server side).

The current situation is a bit confusing. It seems you have done something like this previously with PHP or that you "set this up with AJAX and it works" but still you have "postbacks flicker" ??? Do you actually SEE postbacks? Could it be for example rather
a graphic rendering issue or whatever?

If you’re talking about postbacks and flickering it sounds like you’re not using ajax after all.  Are you doing this via your own javascript or via an update panel?

I agree with Aidy.

One of the major benefits of AJAX requests is that you shouldn’t be seeing any PostBacks occur (that are related to your AJAX calls). Otherwise, it would simply be a page that is just refreshed every x seconds and uses the same data store to persist
the previous data between postbacks.

Another consideration, which might just be a shot in the dark, but it sounds like a system like yours may be able to benefit from a real-time technology like
SignalR, which could handle graphically mapping your results in real-time and presenting them to the user. Brij has a
very basic example demonstrating this functionality here that could be worth reading.
Ravi Kiran has another more detailed article with SignalR real-time charting using the popular d3.js library as well.

Thanks for the feedback I’ll check these out. FYI the dataset is 5000 records with 400 parameters per record.

Not ideal, and foolish IMHO for web analysis. a sub set would be much more practical. I have reviewed SignalR extensively, currently our platform does not support it, primarily on the data collection side.

AidyF Its an update panel.

The issue is fully related to the volume of data transfer and the javascript refresh and graph and map renderings. The javascript solution works well but it is static test data not live.

An updatepanel isn’t going to perform as well an ajax call to a webservice or similar, if you’re having performance issues I’d look to re-architect it away from updatepanels and onto custom javascript.

Thanks for you input.

Note that is the gist of the original post, and the link you provided is one I spent much time reviewing. I was hoping that there was some sort of ASP.net integration of the indexDB that I could glean for design ideas.

thanks again, it always helps to bounce ideas off of others.