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 SrivastavaPosted Aug 24, 2013, 11:29 AM
Like this-
//put your code here
Cheers
chandra kumarPosted Aug 25, 2013, 8:01 AM
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;
}
Abhineet SrivastavaPosted Aug 25, 2013, 2:02 AM
Kindly go through this link-
http://forums.asp.net/t/1528616.aspx/1
Cheers
chandra kumarPosted Aug 25, 2013, 2:00 AM
Abhineet SrivastavaPosted Aug 25, 2013, 1:35 AM
Cheers
chandra kumarPosted Aug 25, 2013, 12:37 AM
Abhineet SrivastavaPosted Aug 24, 2013, 1:12 PM
Cheers
chandra kumarPosted Aug 24, 2013, 12:15 PM