Gridview 中 HyperLinkField 連結失效 ,發生無法產生 連結的狀況,測試了好久發現原來是
datatime 格式的內容造成的錯誤,所以需要在引用時宣告格式,還好這次的資料也只需要日期,
是不需要時間的。
asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
asp:HyperLinkField DataNavigateUrlFields="IR_date,IR_no,ttype" DataNavigateUrlFormatString="Invest_comfirm1.aspx?irdate={0:d}&irno={1}&ttype={2}"
Text="交易確認" /
/Columns
/asp:GridView
留下紀錄 給自己參考
沒有留言:
張貼留言