Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- From: "John Timney \(MVP\)" <x_john@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 2 Jul 2006 20:12:24 +0100
Then look at the second simple suggestion of creating a webserver in your
windows application.
Web browsers follow the HTTP protocol - they submit requests based on this
protocol over TCP to port 80 (typically) so you have to work within those
constraints if you wish to use a web browser (as you state) as your client.
To respond to a request from a web browser, you need a port listener that
understands the http commands the browser will issue when you post a request
to a remote port.
--
Regards
John Timney (MVP)
<pamelafluente@xxxxxxxxx> wrote in message
news:1151850498.327714.85900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
No I am not reinventing it. This is a simplified example. The point
here is I want
to talk with a win application. Not to IIS. In this example it seems
not necessary
but I need to talk to a Win app that does huge processing before and
after
receiving dome data from asp page. I have removed the processing
problem just
to get to the essence of the problem.
You have seen only the surface of the question and not got the real
point.
See my previous posting, in case. Thanks anyway.
-Pam
John Timney (MVP) ha scritto:
You appear to be trying to reinvent the wheel. This is what web servers
are
for, and IIS can do what you need with 1 line of code in an asp.net page.
Look at the request and response objects in the asp.net section of the
framework.
http://www.asp.net/QuickStart/aspnet/doc/pages/pages.aspx#writingpages
If your looking to create your own webserver, then you'll need to examine
other examples.
http://www.csharphelp.com/archives/archive152.html
--
Regards
John Timney (MVP)
<pamelafluente@xxxxxxxxx> wrote in message
news:1151843978.937058.269330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am still working with no success on that client/server
problem. I need your help. I will submit simplified versions
of my problem so we can see clearly what is going on.
My model:
A client uses IE to talk with a server.
The user on the client (IE) sees an ASP net page containing
a TextBox. He can write some text in this text box and
push a submit button.
Problem 1. What's the code the ASP NET page?
============================================
A server computer on http://MyServer/MyApp.exe has a .NET
program running. This is a win application which contains
somewhere the following public function:
Function GenerateResponsePage(ByVal ThisIsWhatReceivedFromClient As
String) As String
Dim MyWebPage As String = String.Empty
MyWebPage &= "<html>"
MyWebPage &= vbCrLf & "<Body>"
MyWebPage &= vbCrLf & "Received from client: <br>"
MyWebPage &= vbCrLf & ThisIsWhatReceivedFromClient
MyWebPage &= vbCrLf & "</Body>"
MyWebPage &= vbCrLf & "</html>"
Return MyWebPage
End Function
The win application on the server receives the text submitted in the
text box
(we call it "ThisIsWhatReceivedFromClient") by the user who is using IE
on the client side. As an answer the Server sends back a page generated
by
the function "GenerateResponsePage" and the browser displays it to the
User
on the client side.
Problem 2. How do I make the win application to
receive the text submitted by the user in the TextBox ?
======================================================
Problem 3. How do I make display the string generated by
the "GenerateResponsePage" (simple html page) on the user
browser ?
============================================================
That all for now. My biggest problems are with problems 2 and 3. I need
a simple
working example to get started. Please help!
-Pam
.
- Follow-Ups:
- References:
- Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- From: pamelafluente
- Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- From: John Timney \(MVP\)
- Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- From: pamelafluente
- Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- Prev by Date: Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- Next by Date: Re: Memory leak when using Response.Write()
- Previous by thread: Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- Next by thread: Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- Index(es):
Loading