Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- From: "Jacob" <jacob@xxxxxxxxxx>
- Date: 2 Jul 2006 07:30:06 -0700
You are definitely overcomplicating this issue. If you want the asp.net
page to return the value to the textbox, you merely use the
Textbox.Text property.
You say you also want to send the Textbox.Text value to an application
running on the server? Why, to feed it into a database? Asp.net can do
that for you. Passing values to other programs is advanced stuff and
you might want to learn the basics first.
Question 3 is obvious -
Response.Write(GenerateResponsePage(Textbox.Text))
pamelafluente@xxxxxxxxx wrote:
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: Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
- Next by Date: Other facets of the Client/Server problem
- 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):