473,399 Members | 3,888 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,399 software developers and data experts.

passing paremeter when concume Web Service

kai
Hi, All

I try to use a Webservice CustomerOrderHistory to get customer order by
passing a "CustomerID". The Webservice works but the following code

Dim ds1 As DataSet

Dim CustomerID As String

Dim svc As New CustomerOrderHistory.Main

DataGrid1 = svc.GetCustomerOrderHistory(CustomerID = "ALFKI")

DataGrid1.DataBind()

will generate error on

"svc.GetCustomerOrderHistory(CustomerID = "ALFKI")" has a blue under line
says

"Cannot convert to "System.Web.UI.WebControls.Datagrid". What is my problem?

Thanks

kai
Nov 18 '05 #1
1 1276

svc.GetCustomerOrderHistory is not returning a datagrid.
Probably it's returning a dataset.
Maybe you want:

DataGrid1.DataSource = svc.GetCustomerOrderHistory
(CustomerID = "ALFKI")

instead?
-----Original Message-----
Hi, All

I try to use a Webservice CustomerOrderHistory to get customer order bypassing a "CustomerID". The Webservice works but the following code
Dim ds1 As DataSet

Dim CustomerID As String

Dim svc As New CustomerOrderHistory.Main

DataGrid1 = svc.GetCustomerOrderHistory (CustomerID = "ALFKI")
DataGrid1.DataBind()

will generate error on

"svc.GetCustomerOrderHistory(CustomerID = "ALFKI")" has a blue under linesays

"Cannot convert to "System.Web.UI.WebControls.Datagrid". What is my problem?
Thanks

kai
.

Nov 18 '05 #2

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

Similar topics

4
by: Amr Mostafa | last post by:
Hello :) I'm trying to write a script that deals with a web service. I'm using NuSoap class. my question is : Can I pass some variables By Reference to the web service and get the result back...
1
by: franklinbruce | last post by:
Hi all, I have a ASP script which will get 2 query string value. i put val1 Value in a session and pass val2 value to javascript for parent page reload with the specified value. Problem i face is...
16
by: Simon | last post by:
Hi all, I think I've seen someone passing an emumeration in code before. Can anyone tell me if thats possible and why i would want to. Many thanks Kindest Regards
3
by: Paul Michaud | last post by:
Consider the following: Class A { .... } Class B:A { ....
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
12
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded...
2
by: Peter | last post by:
Hello I have the following tag <select name="cat" id="cat" onchange="popUpWin('cmPhaseReload.php?category='+document.getElementById('cat').options.value ,600,600,'yes')" class="tbl_result"...
2
by: Hakan Örnek | last post by:
Hi , I want to parameter passing to my windows sevice. I call service commands like this ; '------------------------------------------------------------ Dim sc As ServiceController sc = New...
3
by: H. Martins | last post by:
I need to use command line input to a tinny c# application: It goes like this: ** program.cs ** using System; using System.Collections.Generic;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.