Hi friends i am new to ASP .net Web Development. I am planning to develop a web application which will display the real time ( string of data updated every 1
sec). The server will have input of the data . Web server will read this data and display it in browsers in every sec update rate. how may it be possible plz suggest any solution. I have worked on database web application but not have any idea about real time application in ASP .net
Loading

Abhineet SrivastavaRank #1,890 · 783 reputationPosted Aug 24, 2013, 7:29 AM EDT
Like this-
//put your code here
Cheers
chandra kumar15 reputationPosted Aug 24, 2013, 8:15 AM EDT
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Aug 24, 2013, 9:12 AM EDT
Cheers
chandra kumar15 reputationPosted Aug 24, 2013, 8:37 PM EDT
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Aug 24, 2013, 9:35 PM EDT
Cheers
chandra kumar15 reputationPosted Aug 24, 2013, 10:00 PM EDT
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Aug 24, 2013, 10:02 PM EDT
Kindly go through this link-
http://forums.asp.net/t/1528616.aspx/1
Cheers
chandra kumar15 reputationPosted Aug 25, 2013, 4:01 AM EDT
In the label2 i want to display the realtime data that will come through the multicast socket
as i have mentioned. The only problem i see is the socket creation part ie the code block belo
// socket creation operation
is also refreshed which creates problem because multiple instance of sockets are created and i get the error
How should i arrange the code so that only // data receive and display block will get refreshed. Kindly suggest
Thaninh u in advance
code behind is like this
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = System.DateTime.Now.ToLongTimeString();
// socket creation part
IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 4321);
s.Bind(ipep);
IPAddress ip = IPAddress.Parse("226.1.1.1");
s.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership,
new MulticastOption(ip, IPAddress.Any));
// data receive and display
DataSize = s.Receive(databuffer);
raw = System.Text.Encoding.ASCII.GetString(databuffer);
Label2.Text = raw;
}