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 15:00:56 +0100
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
- Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- Prev by Date: newbie: Help, I have problems with this!
- Next by Date: RE: Problem with FileUpload control and doPostback
- Previous by thread: 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):