473,473 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can't load web form in web service

Hi everybody,

I'm developing a web service using VB.NET which calls a web form to let user
input something. In web service, I use Server.Execute ("WebForm.aspx") to
load and execute the web input form. But the browser (IE6) says there is a
missing necessary space on the following declaration statement:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I don't know what whether I use the wrong way to get my goal which is
1. load a web form
2. user input value on web form
3. user click "finish" button on web form
4. close web form and return input value to caller (web service)
5. process the input value
6. return result to client of web service

Thanks for your kindly help and advice!

Regards,
James
Nov 17 '05 #1
4 3415
Hi,

I really don’t know what you after. But if you want to get the page
content you need to pass StringWriter in the execute method.

System.IO.StringWriter writer = new System.IO .StringWriter () ;
Server.Execute ("WebForm.aspx",writer) ;
string s = writer.ToString();

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
You can't do it the way you describe, but you can have the browser (Web
Forms) application call on the Web Services. So, the caller is the Web Form,
not the Web Service.

"James Wong" <ja*******@commercialpress.com.hk> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
Hi everybody,

I'm developing a web service using VB.NET which calls a web form to let user input something. In web service, I use Server.Execute ("WebForm.aspx") to load and execute the web input form. But the browser (IE6) says there is a missing necessary space on the following declaration statement:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I don't know what whether I use the wrong way to get my goal which is
1. load a web form
2. user input value on web form
3. user click "finish" button on web form
4. close web form and return input value to caller (web service)
5. process the input value
6. return result to client of web service

Thanks for your kindly help and advice!

Regards,
James

Nov 17 '05 #3
Hi Rick,

Thanks for your reply! If I use web form application to call web services,
I still need to return som values (after process) to its caller (maybe
another web form application, or windows form application). I don't know
whether I should use HttpWebRequest / HttpWebResponse pair to pass
parameters and get result in point of view of caller, and also how the web
form application understand inpurt parameters and prepare result.

Thanks again for your kindly advice!

Regards,
James

"Rick Spiewak" <ri*********@mindspring.com> ¦b¶l¥ó
news:u8**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
You can't do it the way you describe, but you can have the browser (Web
Forms) application call on the Web Services. So, the caller is the Web Form, not the Web Service.

"James Wong" <ja*******@commercialpress.com.hk> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
Hi everybody,

I'm developing a web service using VB.NET which calls a web form to let user
input something. In web service, I use Server.Execute ("WebForm.aspx")

to
load and execute the web input form. But the browser (IE6) says there

is a
missing necessary space on the following declaration statement:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I don't know what whether I use the wrong way to get my goal which is
1. load a web form
2. user input value on web form
3. user click "finish" button on web form
4. close web form and return input value to caller (web service)
5. process the input value
6. return result to client of web service

Thanks for your kindly help and advice!

Regards,
James


Nov 17 '05 #4
Unless you need to have a person interact with the information from a web
browser, I would have the program which needs the information make the Web
Services call.

"James Wong" <ja*******@commercialpress.com.hk> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
Hi Rick,

Thanks for your reply! If I use web form application to call web services, I still need to return som values (after process) to its caller (maybe
another web form application, or windows form application). I don't know
whether I should use HttpWebRequest / HttpWebResponse pair to pass
parameters and get result in point of view of caller, and also how the web
form application understand inpurt parameters and prepare result.

Thanks again for your kindly advice!

Regards,
James

"Rick Spiewak" <ri*********@mindspring.com> ¦b¶l¥ó
news:u8**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
You can't do it the way you describe, but you can have the browser (Web
Forms) application call on the Web Services. So, the caller is the Web

Form,
not the Web Service.

"James Wong" <ja*******@commercialpress.com.hk> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
Hi everybody,

I'm developing a web service using VB.NET which calls a web form to
let user
input something. In web service, I use Server.Execute
("WebForm.aspx") to
load and execute the web input form. But the browser (IE6) says there

is
a
missing necessary space on the following declaration statement:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I don't know what whether I use the wrong way to get my goal which is
1. load a web form
2. user input value on web form
3. user click "finish" button on web form
4. close web form and return input value to caller (web service)
5. process the input value
6. return result to client of web service

Thanks for your kindly help and advice!

Regards,
James



Nov 17 '05 #5

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

Similar topics

1
by: Jeffrey Kelso | last post by:
I am having an issue where doing a PostBack in ASP.NET is losing the form information. This is happening in a NLB environment with two servers using Application Center When a user selects an...
2
by: Scott Ocamb | last post by:
I want to write a simple class that loads a requested url and reports success or failure. I plan to use this to monitor web sites on the web. I would like to implement the class in a windows form...
2
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
2
by: Andy Hunt | last post by:
Hi, I am having a problem with SQLXML Bulk Load inside of a web service ( also inside of a basic aspx page). I have a WebMethod in a web service that makes a call to bulk load. This works...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
3
by: shapper | last post by:
Hello, In have a class inside a compiled DLL where I have the following code: ' Create site map XML document Dim siteMap As XmlDocument = New XmlDocument ' Load site map XML document from...
8
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; I copied a new set of files over to my ASP.NET dir (and subdirs) on our test server. This replaced every file for the app. When I first then tried to bring it up, I got the below error. ...
4
by: fbrewster | last post by:
I'm writing an HTML parser and would like to use Internet Explorers DOM parser. Can I use Internet Explorers DOM parser through a web service? thanks for the help
5
by: Med | last post by:
Hi, Initial load of my pre-compiled ASP.NET app takes more than 50 seconds to load after site has been idle for a while. Then it become fairly fast. Followings are my app/hardware configs: ...
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.