473,549 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1689
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******** ******@TK2MSFTN GP10.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****@newsgro ups.nospam> wrote in message
news:u0******** *****@TK2MSFTNG P11.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******** ******@TK2MSFTN GP10.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******** *****@TK2MSFTNG P12.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****@newsgro ups.nospam> wrote in message
news:u0******** *****@TK2MSFTNG P11.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******** ******@TK2MSFTN GP10.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****@newsgro ups.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP15.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******** *****@TK2MSFTNG P12.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****@newsgro ups.nospam> wrote in message
news:u0******** *****@TK2MSFTNG P11.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******** ******@TK2MSFTN GP10.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**********@r ogers.com> wrote in message
news:Xn******** *************** ***********@127 .0.0.1...
"James" <po*****@gmail. com> wrote in
news:uq******** ******@TK2MSFTN GP10.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**********@r ogers.com)

Jan 16 '06 #6

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

Similar topics

14
2813
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 number) linking (and sometimes compiling) becomes immensely slow, and task manager shows that link.exe (or cl.exe) is barely using any processor time, but...
1
5151
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 and I started playing around and compiling C++ code. I revisited that same code after a reboot and some of the solutions compile without error, two...
3
2163
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 problem is that I have a new front end version upgrade that creates several new tables in the backend and then links them. So when the program opens...
33
2332
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 a background image -or- a background color -- in other words, the page has neither content nor placed images -- any click, ANYWHERE, will launch...
2
2506
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 show it in the web page. The link looks something like this...
4
1987
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 data; struct node *link;
1
2785
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 computer, there is an error message saying "this program can not be started on this computer". I suppose, this is due to the missing system DLLs...
0
1044
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 could implement their embeded link to my program? this is the link i need : http://www.lomation.com/hmong/reader/index.php this is the embed link i...
3
3339
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 first qt program is simple: the first demo which comes with the qt 2.3 installation. The only one code file is: main.cpp, and it is: #include...
0
7546
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7471
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7740
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7985
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7830
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6071
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5387
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

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.