bxdxmx3

きじれてじろあ なきがせすで あぷせとねでぶ

2012-01-01から1ヶ月間の記事一覧

magic methods

__construct() __destruct() __clone # $y = clone $x; # $y is new copy of the object $x. and then __clone is called. __autoload($class)__get($arg) __set($key,$arg) __isset($arg) __call($name,$argv)__toString()

GridViewデータ0件時、ヘッダーを表示する(4.0未満版)

DataGridではデータ0件でもヘッダーが表示されていたが、 GridViewではヘッダーが表示されなくなる。4.0未満の場合は、簡単に設定する方法が存在しないので、 手動でヘッダーを出力するコードを書く必要あり。 例えば以下のようなコード。 if (dtFunding.Row…

GridViewデータ0件時、ヘッダーを表示する(4.0版)

4.0以降の場合は、GridViewのプロパティ設定で簡単にできる。 GridView.ShowHeaderWhenEmpty プロパティ (System.Web.UI.WebControls) aspx <asp:GridView runat="server" ID="dataGrid" AutoGenerateColumns="False"> <Columns> <asp:BoundField DataField="world1" HeaderText="hello1" SortExpression="world1" /> </asp:boundfield></columns></asp:gridview>

CDNからのjquery読み込み失敗時のfallback処理

jquery <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="jquery-1.7.1.min.js"><\/script>')</script> jquery ui <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>