Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!



Thanks Jacob. I didn't get all you are suggesting (I have no idea what
you mean by "have an application that receives the data as arguments in
its startup".) Thanks anyway for the suggestions.

Actually, in other words, what I need is a working example of an ASP
page talking with an object which implements the interface IHttpHandler
within a win application.

For my purposes asp net is totally insufficient. I need to make tal IE
with a win app directly.

Does anybody have some working example or some pointer ?

-Pam

Jacob ha scritto:

You write that there is no IIS involved. This is not true since you are
serving your web page in a browser that requests the page from a
webserver.

Designwise I think it's a bad idea to send the information to be
processed in an external application. When you send the information
back to IIS to send to the client you are going to have to find out
which client sent it (using a session ID I guess). As IIS doesn't
support push technology you have no way of notifying the client that
the information has been successfully processed or it has failed.

But I guess the short and dirty answer to your question is to have an
application that receives the data as arguments in its startup. You the
open the application using System.Diagnostics.Process.Start(). The
process gets the information from the arguments and processes them and
then closes itself down.

Alternatively you pass the information to a database. You processing
app then checks the database every once in a while for new data and
processes it.

Otherwise you need to look into message queueing.


pamelafluente@xxxxxxxxx wrote:
I agree that from the example it would seem that ASP is sufficient.

But, as I told you, I have made an oversimplified scenario to make
easier to
answer to the core of the question. You are trying to solve my example,

but my example serves only to show the principle.
I do not just need to send a string back and forth between a IE and
IIS.

I want to tell a win application (server side) what to do from a
browser and viceversa, I want the browser to display what the win
application sends back.

My scheme:

Web client --> Win App (extensive processing) [no IIS involved]
Win App (Extensive processing) --> Web Client

Got it?

Thanks,

-Pam



Jacob ha scritto:

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

.