Click here to Skip to main content
15,903,854 members
Please Sign up or sign in to vote.
1.75/5 (4 votes)
See more:
Hai All,
I am developing one ASP Application in Visual Studio 2010. I am very new to ASP.NET and this is my first project in ASP.NET. In my ASP.NET i need to listen the particular port address. How should i listen that port and keep the data into database...........
Please give some guidance on this .....
Thanks in ADV..:-)
Posted
Updated 15-Feb-12 1:30am
v2
Comments
Sergey Alexandrovich Kryukov 7-Feb-12 0:11am    
Listening port has nothing to do with ASP.NET. Please change it to ".NET".
--SA
Sergey Alexandrovich Kryukov 7-Feb-12 0:12am    
Listening for the port is only one part of communication. Asking just about listening is pretty much useless. What protocol you you need? What kind of socket, UDP, TCP?
--SA
Himachandra 7-Feb-12 0:35am    
In my application i retrive data from database and show it on page....... and now i need to listen online PORT and fetch the data packets from that port ... How....?
Himachandra 7-Feb-12 0:39am    
TCP Port i need to listen
Herman<T>.Instance 7-Feb-12 3:41am    
use TcpClient object of .NET framework.

1 solution

You don't do this in an ASP.NET application. ASP.NET is designed to generate HTML pages to send to clients. Other than that, it sits idle waiting for a web page request.

What you're talking about is writing a socket server that listens on a different port, but has nothing to do with the ASP.NET side of things.
 
Share this answer
 
Comments
Himachandra 7-Feb-12 8:51am    
Ok ... Thank You ...... Then Which platform you prefer for this Project....
Dave Kreskowiak 7-Feb-12 10:41am    
I can't answer that as I have no idea what your writing or why you need to listen on a port. Your original post is extremely vague. You need to describe what this app is about and what your data flow looks like. What are the detailed requirements?

DO NOT say "I need to listen on this port". That's not a requirement. A requirement is "The client needs to send 'such and such' data to the database." "The database will be on a central server." "My clients need access to the database over the Internet." blah, blah, blah...
Himachandra 8-Feb-12 0:02am    
Ok..... Thank U

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900