How to send data from an ASP form to a visual basic form?

  • Thread starter Thread starter Guest
  • Start date Start date
please be more specific. What server is the asp app running on? Is the vb
app on a different machine or on the same machine? What business problem
are you trying to solve? What have you tried already?


--- Nick
 
Hello Nick,
Thank you for responding to my mail.i am using IIS and the vb
application is on the same system.what i want to do is i want to generate an
excel report from the datas provided by the user in the asp form.hope this
will be able for you to solve my query.
 
"Kurien Baker Fenn"
Hello Nick,
Thank you for responding to my mail.i am using IIS and the vb
application is on the same system.what i want to do is i want to generate an
excel report from the datas provided by the user in the asp form.hope this
will be able for you to solve my query.

Write the data to a file in a common directory
use a FileSystemWatcher

NET Framework Class Library FileSystemWatcher Class
http://msdn.microsoft.com/library/d.../frlrfsystemiofilesystemwatcherclasstopic.asp

A.) in the running Windows Forms application to detect the
appearance of a new file and load it.

B) in a Windows Service to launch the Windows Forms
application specifying the file as command-line argument. If
the Windows Forms application is already running notify the
Windows Form application by an alternative means.

Alternately you could use .NET remoting to directly send
data from the ASP.NET application to the Windows Forms
Application/Windows Service (acting as the remoting host) -
however the file solution is simpler and isn't as likely to
"lose" data because the receiving end isn't listening.
 
Hi Kurien,

Is the user uploading an excel spreadsheet, or are they just entering data?
If they are entering data, are they entering it into a database via your
ASP.NET app? If so, use the database as the common point of control. Have
your VB app poll for new data (send queries that return TRUE if new data
exists). Simply reload your excel spreadsheet when the new data arrives.

--- Nick
 
Back
Top