Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Beginning XML 3rd Edition
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning XML 3rd Edition
This is the forum to discuss the Wrox book Beginning XML, 3rd Edition by David Hunter, Andrew Watt, Jeff Rafter, Jon Duckett, Danny Ayers, Nicholas Chase, Joe Fawcett, Tom Gaven, Bill Patterson; ISBN: 9780764570773
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 21st, 2005, 08:40 AM
ML ML is offline
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap 15, Try It Out: Creating RPC Server in asp

Having created the rpc with asp fine i was keen to try accessing the data through vb.net (code on page 567). Firstly i created a vb.net console app, then typed in the code. Expecting the simple app to work i hit play. The following error appears.

"An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll

Additional information: Argument 'Prompt' cannot be converted to type 'String'."

Can anyone tell me what im doing wrong? the codes in fine, the link to the asp.net page works fine. (works fine as an asp page to)

I think the problems with this line..

MsgBox(xdDoc.SelectSingleNode("/updateTotalResponse/extPrice"))

but im not positive. Any help would be much appreciated.

  #2 (permalink)  
Old July 25th, 2005, 11:54 AM
Registered User
 
Join Date: Jul 2005
Location: Monterrey, Nuevo León, Mexico.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, my english sucks, so I hope you can understand it

The problem appeared when I tried to move the value of a textbox to one of the parameters of a SQL query, i fixed it by adding a new parameter to the DataAdapter
Lines of code 2 & 3 produced that error. Line 1 was added to fix it.

1. OleDbDataAdapter3.SelectCommand.Parameters.Add("?n umc", OleDb.OleDbType.Integer)
2. OleDbDataAdapter3.SelectCommand.Parameters.Item("? numc").Value = Me.txtBuscar.Text
3. OleDbDataAdapter3.Fill(DsBusqueda1, "qry_condomino")

Suerte ;)

-----------------------------
IvâN RC

P.D. : Odio que me exigan registrarme ¬¬, hasta para ofrecer soluciones hay que hacerlo ¬¬

IvâN RC
  #3 (permalink)  
Old September 30th, 2005, 07:25 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I know this may not help the poster as it's so long since posting but for others...

I don't have the XML to hand but if extPrice is an element like this:
Code:
<extPrice>51</extPrice>
then modify the selectSingleNode to read:
Code:
MsgBox(xdDoc.SelectSingleNode("/updateTotalResponse/extPrice").InnerText)
(I presume the code uses System.Xml)



--

Joe


Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 chap 15 help needed twr Beginning PHP 1 January 5th, 2008 06:20 AM
Chap 15 (p.579) Connection string to SQL Server Venboy BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 July 23rd, 2006 10:56 AM
chap 15 manal_sag BOOK: Beginning ASP 3.0 2 July 10th, 2005 03:29 AM
help in chap 15 manal_sag BOOK: Beginning ASP 3.0 2 May 25th, 2005 02:59 AM
Sessions - Chap 15 mminnie BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 January 10th, 2005 04:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.