I received this error:
Microsoft JScript runtime error: Object doesn't support this
property or method
from this call:
Service.useService("http://localhost/Ders23/TemperatureService.asmx?
WSDL","Service");
}
in this block of code:
<%@ Page %>
<SCRIPT language="JavaScript">
var intCallID = 0;
function Init()
{
Service.useService
("http://localhost/Ders23/TemperatureService.asmx?WSDL","Service");
}
function Service_Result()
{
lblCelsius.innerText = event.result.value;
}
function Button_Click()
{
intCallID = Service.TemperatureService.callService( "ToCelsius",
txtFahrenheit.value );
}
</SCRIPT>
<html>
<head><title>BehaviorSimple.aspx</title></head>
<body onload="Init()">
<div
id="Service"
style="behavior:url(webservice.htc)"
onresult="Service_Result()"></div>
Fahrenheit:
<input
id="txtFahrenheit">
<input
Type="Button"
Value="Convert!"
OnClick="Button_Click()">
<hr>
<span id="lblCelsius"></span>
</body>
</html>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/