.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

ช่วยดู code ให้ด้วยนะคะ มีปัญหาในการเรียกใช้ service ค่ะ Options · View
kaewkab
Posted: Wednesday, June 04, 2008 9:59:05 AM
Rank: มือฝึกหัด
Groups: Member

Joined: 6/4/2008
Posts: 2

คือว่า เขียนหน้าขึ้นมาเพื่อเรียกใช้เซอร์วิสชื่อ venderbooklist  ให้แสดงใน gridview โดยส่งค่ามาสองตัว  มันขึ้น error
จะแก้ไขอย่างไร ดีคะ error ตามด้านล่างค่ะ

Error 401

Source Error:

Line 18:         Dim book As New localhost.Service
Line 19:         Dim booklist As New DataSet
Line 20:         booklist = book.VenderBookList("kaew", "1525")
Line 21:         GVBookList.DataSource = booklist.Tables(0)
Line 22:         GVBookList.DataBind()

ช่วยแนะนำด้วยนะคะ
ขอบคุณมากค่ะ

ball
Posted: Saturday, June 07, 2008 12:14:50 AM

Rank: อาจารย์
Groups: Administration

Joined: 12/1/2007
Posts: 473
Location: Bangkok

ให้ error มาแบบนี้ไม่พอหรอกนะครับ น่าจะมี error message บอกมาซักนิดก็ยังดี

งั้นเดาละกัน คิดว่าคุณคงจะส่งผิด DataType ตรง "1525" ถ้ายังไงให้ลองลบคอมม่า (,) ออกก่อนแล้วพิืมพ์คอมม่าใหม่อีกทีนึงมันจะขั้น code inellisense แล้วอ่านดูครับว่าส่ง parameter type ถูกรีเปล่านะ



Imagination is more Important than Knowledge... /A.Einstein
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by