Showing posts with label http. Show all posts
Showing posts with label http. Show all posts

Saturday, March 24, 2012

Want to find a goood HTTP Analyzer.

Hi all,

Anybody know of a good HTTP Analyzer (free, if poss).

Cheers

Jules

fiddler is the best I've found so far, that's free. www.fiddlertool.com

Thanks, Paul.

I've had a play with Fiddler a couple of weeks ago but I couldn't get it to monitor the ASP.Net app I was debugging against. Any info?

Cheers

Jules


The only time I ever had a problem with it was trying to use it with IE7 on an app I was running via localhost. There was a workaround that I found, can't recall it now but you can google it if that's the issue. Otherwise, check their help stuff.


Thanks Paul.

I'm using IE7 so I'll have a look on Google.

Thanks for your help.


Instead of visitinghttp://localhost with fiddler, use your computername


Which only works on IIS btw. The workaround for Cassini (or the development web server or whatever it's called in VS 2005) is to use localhost. (mind the dot). The latter however doesn't seem to work well with async postbacks on my machine (which could very well just be my machine, but the safe route is to run on IIS).

-- Henkk


Thanks for all your help, guys.

Cheers

Jules

Want to use context menu with atlas

Hello,

I want to use this context menu sample (http://msdn.microsoft.com/msdnmag/issues/05/02/CuttingEdge/) within atlas.

I dont understand why i get an unknown error when i use it in an update panel.

Can anyone help me ?

thanks a lot

When I get this error in an UpdatePanel, comment out the UpdatePanel lines so I'm just left with the Content and then run it. I'll see a server-side exception then.

<%--<atlas:UpdatePanel runat="server" id="up_test" Mode="Conditional" RenderMode="inline">
<ContentTemplate>--%>
<cc1:ContextMenu />
<%--</ContentTemplate>
</atlas:UpdatePanel>--%>


Hello,

you must have a config error because for me it works

Thanks

Wednesday, March 21, 2012

We need a horizontal axis (side-ways) accordion!

http://www.g4enterprises.com

Thanks.. Cool

...add it to the existing J-script with a single enumerated property:

Horizontal / Vertical.

The link above was really impressive..can anyone match that?

Thanks...Cool

web service call by javascript

In my AJAX enabled website, call web service by javascript.

Web Service:

<WebService(Namespace:="http://tempuri.org/")> _<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _<ScriptService()> _Public Class SimpleServiceInherits System.Web.Services.WebService<WebMethod()> _Public Function Addup(ByRef int1As Integer,ByRef int2As Integer)As Booleanint1 = int1 + int2Return TrueEnd FunctionEnd Class

Javascript:

var num1=1, num2=2;function Button1_onclick() {HangmanService.Addup(num1, num2, OnComplete);}function OnComplete(ret){if (ret == true){alert(num1);// should popup "3"}}

Actually, I got error of "System.InvalidOperationException -- Can't convert object of type "System.Int32" to type "System.Int32&" instead of "3". So do I have to get number from return value?

Hi,

the reference to num1 on server side has nothing to do with the reference to num1 on client side, they are two separate variables. Therefore Addup must return a number.


Try this,
 
<WebService(Namespace:="http://tempuri.org/")> _<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _<ScriptService()> _Public Class SimpleServiceInherits System.Web.Services.WebService<WebMethod()> _Public Function Addup(ByRef int1As Integer,ByRef int2As Integer)As Stringint1 = int1 + int2Return int1.toString()End FunctionEnd Class

Javascript:

var num1=1, num2=2;function Button1_onclick() {HangmanService.Addup(num1, num2, OnComplete);}function OnComplete(result){alert(result); // should popup "3"}
WS

Thank you guys' reply.

The problem is not about return value but javascript even can't call the web method. Maybe in javascript a variable can't be reference parameter.


Ah, gotcha,

It's a little bit odd how you call your webservice function. Should it be ...

SimpleService.Addup(num1, num2, OnComplete); ......???
WS

I believe you should return the number in the return value if it's possible.
AJAX serializes input parameters and return values. I think that using ByRef is not going to work.
If you need to get those two values back (bool and int), you should consider returning a different type.

Hope this helps,

MaĆ­ra


Thanks for your reply. I just wanna know if it works. Anyway, I know it.

Web service call to different sub domain

I have a web site at http://sub1.mysite.com and a web service at http://sub2.mysite.com. I'm trying to use a script reference in my script manager to allow AJAX calls to the web service. When I trigger the call, I get a popup that says the call failed. The error appears to be because a 404 is coming back on the web service call. I know the script reference has to be within the same domain, but does it have to be in the same subdomain? Is there a way to trick it to work (like setting document.domain to allow javascript)?

It is not possible to call any other WS which resides in different Domain. You can read this article(Cross Doman Sectiion) for more detailshttp://dotnetslackers.com/columns/ajax/MashitUpwithASPNETAJAX.aspx.
Maybe you can try this JSONP approach to solve your issuehttp://weblogs.asp.net/rashid/archive/2007/09/28/implement-jsonp-in-your-asp-net-application.aspx