473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Web Service Behaviour problem

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
Nov 18 '05 #1
2 1193
Might be wrong but I don't think that INPUT has an innerText property you
could use Text instead.
"Veke" <an*******@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
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; BEHAVIOR: url(webservice.htc)" id="service"
</div></form></body></HTML>
code that doesn't work:

same code just with INPUT control
<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 control

Nov 18 '05 #2
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!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody see the situation when the VS refuses to debug the Web Service at all? I can't catch why, the initially created Web Service can be debugged very easy but after some changes...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: Wild Wind | last post by:
Hello all, I apologise in advance for the long windedness of this post, but I feel that if I am going to get any solution to this problem, it is important that I present as much information...
5
by: Gardar | last post by:
I have a .net webservice, developed with c++ managed extensions. The websrvice returns an xml-document with a reference to a server side xml-stylesheet in the format <?xml-stylesheet href =...
6
by: Eric Guthmann | last post by:
Hello all We have an SOA application that includes an ASP.NET webservice and WinForms client. My question is regarding the use of Add Web Reference in Visual Studio. The tool is nice because...
4
by: jez123456 | last post by:
Hi Experts I've written a c# windows service which runs another program at certain intervals. The other program may take upto 20 minutes to complete it's tasks. My question is what happens to...
4
by: =?Utf-8?B?Z3Jhenph?= | last post by:
Hello If someone can help me with this it would be greatly appreciated. I’m no web service expert but I don't think i'm trying to do anything too special. I think i must be missing something...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
5
by: =?Utf-8?B?cnZhbmdlbGRyb3A=?= | last post by:
Hello, I have a problem with our OnlineBackupService.exe. This is a Windows Service which is built in .Net 1.1 and basically grabs files from the file system and will try to upload them using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.