473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to link ASP .NET and a program?

Hi,

I working on an ASP .NET project, in this project I need to link my project
with another program to retrieve data, how can I do that? I have access to
source code of the other program where the data is stored.

Can I convert the program to a web service and then in my ASP .NET project
access the web service?

The program basically parse weather data for the day periodically and store
it, and I want to retrieve this data to be used on my ASP .NET project.

Hope someone can help!

Thank You!!!
Jan 16 '06 #1
5 1680
Hello James,

A few things to know before I can give sugestions:

- Do jou know how the collected data is stored by your windows program
- Is the data accessable from your webserver

Greets
--
--
Jean Paul (ON7AMI)
-------------------------------------------------------------------------------------
C# is Second finger high on the A
-------------------------------------------------------------------------------------
www.opelwilly.com

"James" <po*****@gmail.com> schreef in bericht
news:uq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I working on an ASP .NET project, in this project I need to link my
project with another program to retrieve data, how can I do that? I have
access to source code of the other program where the data is stored.

Can I convert the program to a web service and then in my ASP .NET project
access the web service?

The program basically parse weather data for the day periodically and
store it, and I want to retrieve this data to be used on my ASP .NET
project.

Hope someone can help!

Thank You!!!

Jan 16 '06 #2
Hello Jean Paul,

Thanks for replying!

Yes, I do know how the collected data is stored by the windows program, a
listview is used in the program to stored the data collected.

Regarding your next question about whether the data is accessible from the
webserver? I'm afraid that I do not get what you mean. But the program is
suppose to be ran like a background process on the same server that I'll be
using to host my ASP .NET project.

What I wish to do is that my ASP page will be able to query the program,
such that the data will be returned to the ASP page.

Thank you!!!

"Jean Paul Mertens" <ON****@newsgroups.nospam> wrote in message
news:u0*************@TK2MSFTNGP11.phx.gbl...
Hello James,

A few things to know before I can give sugestions:

- Do jou know how the collected data is stored by your windows program
- Is the data accessable from your webserver

Greets
--
--
Jean Paul (ON7AMI)
-------------------------------------------------------------------------------------
C# is Second finger high on the A
-------------------------------------------------------------------------------------
www.opelwilly.com

"James" <po*****@gmail.com> schreef in bericht
news:uq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I working on an ASP .NET project, in this project I need to link my
project with another program to retrieve data, how can I do that? I have
access to source code of the other program where the data is stored.

Can I convert the program to a web service and then in my ASP .NET
project access the web service?

The program basically parse weather data for the day periodically and
store it, and I want to retrieve this data to be used on my ASP .NET
project.

Hope someone can help!

Thank You!!!


Jan 16 '06 #3
James,

I think the best thing to do is looking at the program you have on how it is
reading the data and using the very same code to read data into your ASP.NET
application as a string and fill a listbox. Just you have to be aware on the
security settings on the file or whatever where the data is stored in. You
have to have permision to read the file with the asp-user account.

cu.

JP

"James" <po*****@gmail.com> schreef in bericht
news:OP*************@TK2MSFTNGP12.phx.gbl...
Hello Jean Paul,

Thanks for replying!

Yes, I do know how the collected data is stored by the windows program, a
listview is used in the program to stored the data collected.

Regarding your next question about whether the data is accessible from the
webserver? I'm afraid that I do not get what you mean. But the program is
suppose to be ran like a background process on the same server that I'll
be using to host my ASP .NET project.

What I wish to do is that my ASP page will be able to query the program,
such that the data will be returned to the ASP page.

Thank you!!!

"Jean Paul Mertens" <ON****@newsgroups.nospam> wrote in message
news:u0*************@TK2MSFTNGP11.phx.gbl...
Hello James,

A few things to know before I can give sugestions:

- Do jou know how the collected data is stored by your windows program
- Is the data accessable from your webserver

Greets
--
--
Jean Paul (ON7AMI)
-------------------------------------------------------------------------------------
C# is Second finger high on the A
-------------------------------------------------------------------------------------
www.opelwilly.com

"James" <po*****@gmail.com> schreef in bericht
news:uq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I working on an ASP .NET project, in this project I need to link my
project with another program to retrieve data, how can I do that? I have
access to source code of the other program where the data is stored.

Can I convert the program to a web service and then in my ASP .NET
project access the web service?

The program basically parse weather data for the day periodically and
store it, and I want to retrieve this data to be used on my ASP .NET
project.

Hope someone can help!

Thank You!!!



Jan 16 '06 #4
Hi Jean Paul,

To be exact the program is kinda complex, as it does a few things,
1. parse a http response to obtain weather information periodically
2. establish a telnet connection with a 3rd party engine and parse data
obtain through telnet

The 2 above steps are implemented as threads and are always running. The
data that I want to get is the processed results of the 2 steps. As I'm
quite new to ASP .NET programming, I'm not to sure if I could implement all
this into ASP codes. As I have read that using threads in ASP could be
unsafe.

Please enlighten!

Thank you!

"Jean Paul Mertens" <ON****@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
James,

I think the best thing to do is looking at the program you have on how it
is reading the data and using the very same code to read data into your
ASP.NET application as a string and fill a listbox. Just you have to be
aware on the security settings on the file or whatever where the data is
stored in. You have to have permision to read the file with the asp-user
account.

cu.

JP

"James" <po*****@gmail.com> schreef in bericht
news:OP*************@TK2MSFTNGP12.phx.gbl...
Hello Jean Paul,

Thanks for replying!

Yes, I do know how the collected data is stored by the windows program, a
listview is used in the program to stored the data collected.

Regarding your next question about whether the data is accessible from
the webserver? I'm afraid that I do not get what you mean. But the
program is suppose to be ran like a background process on the same server
that I'll be using to host my ASP .NET project.

What I wish to do is that my ASP page will be able to query the program,
such that the data will be returned to the ASP page.

Thank you!!!

"Jean Paul Mertens" <ON****@newsgroups.nospam> wrote in message
news:u0*************@TK2MSFTNGP11.phx.gbl...
Hello James,

A few things to know before I can give sugestions:

- Do jou know how the collected data is stored by your windows program
- Is the data accessable from your webserver

Greets
--
--
Jean Paul (ON7AMI)
-------------------------------------------------------------------------------------
C# is Second finger high on the A
-------------------------------------------------------------------------------------
www.opelwilly.com

"James" <po*****@gmail.com> schreef in bericht
news:uq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I working on an ASP .NET project, in this project I need to link my
project with another program to retrieve data, how can I do that? I
have access to source code of the other program where the data is
stored.

Can I convert the program to a web service and then in my ASP .NET
project access the web service?

The program basically parse weather data for the day periodically and
store it, and I want to retrieve this data to be used on my ASP .NET
project.

Hope someone can help!

Thank You!!!



Jan 16 '06 #5
Hi,

Thanks for replying!

I did a implementation of using a database, but thinking further I realise
that I might have some problem.

Program does:
1. read data containing current clients' ip addresses
2. update data to database using the ip address as a search key
(basically I'm using a update command to update the database record)

ASP codes does:
1. When client access the page, and the page updates client's ip address to
database
2. Page will load data related to client obtain from the database using
client's ip address as key
(the data mention is loaded by the program above during Step 2)

Thus if the client does not log in, I'll not be able to update the data to
the database as the ip does not exist.

As mention in previous reply, I'm quite new to ASP .NET regarding remoting
and web services, I"m afraid that I do not have much knowledge about them.

Please guide me along!!!

Thank You!!!


"Spam Catcher" <sp**********@rogers.com> wrote in message
news:Xn**********************************@127.0.0. 1...
"James" <po*****@gmail.com> wrote in
news:uq**************@TK2MSFTNGP10.phx.gbl:
I working on an ASP .NET project, in this project I need to link my
project with another program to retrieve data, how can I do that? I
have access to source code of the other program where the data is
stored.

Can I convert the program to a web service and then in my ASP .NET
project access the web service?


Remoting and Web Services are two options... Perhaps start with remoting
(tho remoting is ugly)..

Another method is to go through a database.

--
Stan Kee (sp**********@rogers.com)

Jan 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
1
by: Russ Green | last post by:
I hav previosuly had VB.NET 2003 Standard installed on my machine and it works great. Yesterday I installed C++.NET 2003 Standard and starting playing with it. Hardly surprisingly it also worked...
3
by: debbie | last post by:
I have an Access 2002 program that I install using Wise. The first thing my program does when a front end is opened is re-link, then it checks the version and if needed upgrades the backend. My...
33
by: STILL LEARNING | last post by:
I'm not sure if this can even be done, but what prompts the question is my desire to be able to create an "Uber Link" script/code of some sort, such that even if the html page contains nothing but...
2
by: =?Utf-8?B?SmltSGVhdmV5?= | last post by:
This is not really an ASP.Net Question, but still I hope that it can be answered here... I have a link which when clicked invokes a program which invokes a program which generates a PDF file and...
4
by: mendiratta | last post by:
Hello, I am Learning Link List. Today wrote a simple program, but not working. Program is like this #include<stdio.h> #include<stdlib.h> #include<alloca.h> struct node{ int...
1
by: =?Utf-8?B?Sm9oYW5uZXM=?= | last post by:
Hello, I have Visual C++ 2005 on XP-Pro. I try do do a "quick and dirty" program to run on a Win2000 computer. The only system call is a "printf()". When I try to run this program on the other...
0
by: jerger | last post by:
I found a great page that reads a language i need in the program... is there anyway to have a clickable or launching html link from my program? all i have is copy/paste. also is there a way i...
3
by: Kevin | last post by:
Hi guys, I am a beginner for QT, and I installed the free qt 2.3 under windows (XP), as well as the MS's free VC expression edition (for their compilers, linkers, etc), and the SDK tool. My...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.