Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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
 
Old December 1st, 2005, 03:25 AM
Registered User
 
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing a string

how do i write a web service [WebMethod] to accept a string value from a textBox in an Infopath form.

 
Old December 1st, 2005, 02:09 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

you cannot access a textbox directly from a web service. The web service and the application invoking the web service are in no way related. What you can do is to pass the value of the textbox to the web method.

Regards
Ganesh
 
Old December 3rd, 2005, 10:41 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Create a method on your web service page marked with the WebMethod method attribute. Have this method accept a string as an argument and your web service will accept a string. Like Ganesh said, how you consume this web service is separate. You can't post a textbox to a web service.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Group of value passing to String Dhanapal General .NET 1 April 8th, 2007 10:23 PM
String passing from one page to other _abhi Pro JSP 0 December 27th, 2006 05:17 AM
Passing string to a text box in search engine rylemer ASP.NET 1.0 and 1.1 Professional 2 October 25th, 2005 06:11 PM
Urgent Help : passing multiline String to CR Milan VB Components 0 September 30th, 2004 04:30 AM
error in formula field (passing multiline String) Milan VB Components 0 September 29th, 2004 07:01 AM





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