Last post May 09, 2012 02:03 AM by Kelmen
May 04, 2012 01:46 PM|cenk1536|LINK
I have a web page which displays live odds. There is no user interaction (No clicks). I am getting odds and other info (team names,score etc) from SQL database. I also want to build sqlcachedependency. And of course I have updatepanel and a timer which is
set to 1 minute. So;
if there is only one live game, there is no problem. I just get the data and display on the screen. (By the way screen is made up of couple of tables)
The question is if there is 2 live games at the same time, what I am doing is,
My first question is what do you think of this design? Any suggestions or improvements?
And finally, this is not generic, I mean if there is more than 2 games what should I do?? add the same markup for the 3rd time?
Would you please share your opinions?
May 09, 2012 01:47 AM|Kelmen|LINK
is that a requirement you can only display 1?
for N games, maybe just build a list with N div/display-panel, and workout a script only to display 1st (if that's the req), and the timer function will just toggle/display the next view everytime it ticked
May 09, 2012 01:53 AM|cenk1536|LINK
How to build a list with N divs?
May 09, 2012 02:03 AM|Kelmen|LINK
List GamesList = HowManyGamesINeedToBeBother()
for (int i = 1; i <= GamesList .Count; i++)