Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Socket Connection from ASP.NET Page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dav Tan - 14 Dec 2007 20:10 GMT
Here is the situation, we have a old server application using TCP/IP socket
communication. Right now, we need to build a ASP.NET web application to be
the front-end client to talk to the server application. A complete
communicate will happen back & forth between the ASP.net page and server
application several times. I think the issue here is state management. My
question is: is there a good way to do it? Or is there a kind of
architecture to do this?

BTW, I read one user's response to a similar question in the forum: " there
will be no difference between using tcp/ip socket in a window form and
calling from asp.net page". I think this is wrong, the big difference is
"State management".

Thanks,
DT
Peter Bromberg [C# MVP] - 14 Dec 2007 21:53 GMT
That is correct. Unless you find a way to maintain the socket across Page
postbacks / callbacks, it would not work. I suppose you could try storing the
socket in Session, or making it a static public property in Global.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> Here is the situation, we have a old server application using TCP/IP socket
> communication. Right now, we need to build a ASP.NET web application to be
[quoted text clipped - 11 lines]
> Thanks,
> DT

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.