sending data to other application - ASP.NET

G

Guest

I am writing an ASP.NET application, in a particular page I have to update a
record in database and after the record is entered one of the field value has
to move to other application as a string ...I am able to store the data as
string but how I will move the data in other application and how can I get
back the acknowledgement.

Raj
 
V

Vuong

Raj,

Socket is used to send information from application to application, from pc
to pc ..

Vuong,
Tran Xuan
 
M

Maheshkumar.R

I'm not getting Raj's question clearly amd Vuong answer...??

Data can be moved from one app to another app - by storing in intermediate
db ..etc
Socket - winsock is there to achieve this...

I 'm asuming moving data from Web app (asp,net) - to - another Web
app(asp.net) -- right ? for this you can use temp file in local system or
storing in sql etc.
If it is a windows app - thn socket comm is the way to go.. Winsock control
in VB else system.net.socket for .NET.

Maheshkumar.R
http://spaces.msn.com/members/cyberiafreak
 
G

Guest

Of course there are potential difficulties with these solutions too in a
distributed environment: the app might not have database access nor be able
to see the other server. Such solutions also tend to couple apps together
which I see as a bad thing. We use simple web services or xml listeners.
 
I

Ignacio Machin \( .NET/ C# MVP \)

hi,

The easier solution is to use a HttpWebRequest , you pass the data as part
of the GET and then using GetResponse you will get the response.


cheers,
 
I

Ignacio Machin \( .NET/ C# MVP \)

hi,

AFAIK the user used to run the aspnet process has no right to access the
net, so for using sockets either you have to change it or change the
permissions, also it's not a good idea using sockets here as you will have
to deal with the http protocol ( the receiving end is a aspx page
aparently ).
IT's easier to use WebRequest

cheers,
 
V

Vuong

Maheshkumar,
I'm not getting Raj's question clearly amd Vuong answer...??
and me too !!!

I'm not sure that Raj's question about moving from Web app to another Web
app. Because it doesn't make any sense. why we have to do this ?? We just
store information in the same database

I just give the thing Socket, because Raj mention things which transfer from
app to app.

Best regards,
Vuong
Tran Xuan
 
G

Guest

Hi, I have resolved this issue using WebClient, I have tried with WebRequest
but there was no success. I have quick question again how do I read the
uploaded data in the other application , I am using
webClient.UploadData(url,string) to upload data

Thanks for all the reply!

Regards
Raj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top