Web Service Behaviour problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have attached web service behaviour control on may Label control and it worked fine, but when I've tryed the same thing on TextBox control it didn't work. It returned "error on page" message. Any ideas way??
Have anyone done this before? I would like an experts opinion

Code that works
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML><HEAD><title>WebForm1</title><SCRIPT language="javascript"
var iCallID = 0
function init(

service.useService("http://localhost/WebService2/Service1.asmx?WSDL","MyService")
iCallID = service.MyService.callService(callBack, "GetText")


function callBack(result

if(!result.error

service.innerText = result.value

els

service.innerText = "error: " + result.errorDetail.string


</SCRIPT><meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta name="vs_defaultClientScript" content="JavaScript"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"></HEAD><body MS_POSITIONING="GridLayout" onload="init()"><form id="Form1" method="post" runat="server"><div style="Z-INDEX: 101; LEFT: 144px; WIDTH: 456px; POSITION: absolute; TOP: 96px; HEIGHT: 64px
BEHAVIOR: url(webservice.htc)" id="service" ></div></form></body></HTML

code that doesn't work

same code just with INPUT contro
<INPUT style="Z-INDEX: 101; LEFT: 64px; WIDTH: 424px; POSITION: absolute; TOP: 128px; HEIGHT: 120px
BEHAVIOR: url(webservice.htc)" type="text" size="65" id="service"
instead of DIV contro
 
Might be wrong but I don't think that INPUT has an innerText property you
could use Text instead.


Veke said:
I have attached web service behaviour control on may Label control and it
worked fine, but when I've tryed the same thing on TextBox control it didn't
work. It returned "error on page" message. Any ideas way???
Have anyone done this before? I would like an experts opinion.

Code that works:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<HTML><HEAD><title>WebForm1</title><SCRIPT language="javascript">
var iCallID = 0;
function init()
{
service.useService("http://localhost/WebService2/Service1.asmx?WSDL","MyServ
ice");
iCallID = service.MyService.callService(callBack, "GetText");
}

function callBack(result)
{
if(!result.error)
{
service.innerText = result.value;
}
else
{
service.innerText = "error: " + result.errorDetail.string;
}
}
</SCRIPT><meta name="GENERATOR" Content="Microsoft Visual Studio
..NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta
name="vs_defaultClientScript" content="JavaScript"><meta
name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5"></HEAD><body
MS_POSITIONING="GridLayout" onload="init()"><form id="Form1" method="post"
runat="server"><div style="Z-INDEX: 101; LEFT: 144px; WIDTH: 456px;
POSITION: absolute; TOP: 96px; HEIGHT: 64px;
 
No, it's not that. I think that problem is in INPUT control.
All I've needed were srollbars so I've thought that textbox will solve my problem.
Now, I have found in CCS overflow:"scroll".
Thenks!
 
Back
Top