在Asp.net C#中的listview中随机显示linq查询的结果

时间:2015-05-16 03:11:50

标签: asp.net sql-server

var interstitial: GADInterstitial!

  override func viewDidLoad() {
    super.viewDidLoad()

    self.interstitial = self.createAndLoadAd()

  func createAndLoadAd() -> GADInterstitial {
    var ad = GADInterstitial()
    ad.adUnitID = "myInterstitialID"

    var request = GADRequest()

    request.testDevices = ["2077ef9a63d2b398840261c8221a0c9b"]
    ad.loadRequest(request)

    return ad
}

@IBAction func adButton(sender: AnyObject) {
    if (self.interstitial.isReady)
    {
        self.interstitial.presentFromRootViewController(self)
        self.interstitial = self.createAndLoadAd()
    }
}

如何在Asp.net C#中的listview中随机显示linq查询的结果?

1 个答案:

答案 0 :(得分:1)

您可以通过向查询添加guid属性来创建随机数据。之后,您通过这个新属性订购结果。

<img src="images/char-boy.png" id="boy" onclick="char_select()">