需要比較asp net中的兩個不同的表格單元格。一個表中包含的結果和去如下如何比較asp.net中的兩個數據庫表字段
round id = 1 |
game1 = 25 |
game2 = 25 |
game2 = 10 |
round id = 2 |
game1 = 25 |
game2 = 0 |
game3 = 0 |
the user table goes as follows :
username = Mike |
round id = 2|
game1 = 25 |
game2 = 10 |
game3 = 0|
我希望它這樣,如果roundid
在用戶表中匹配一個在成績表,然後比較這一輪的遊戲的價值。所以,第二回合如果game1匹配results : totalscore =+ 1;
的遊戲1,並且如果它不匹配,它什麼也不做,並且什麼都不加!最後在標籤或文本框中顯示總分如何在asp.net中執行此操作?
張貼你的努力 – 2014-11-02 07:00:41
我搞亂了sqldatasources @SagarPudi所以真的沒有代碼背後我只需要知道一種方法,我可以搜索該方法的代碼 – justCause 2014-11-02 07:13:25