Latest

英文、中文 / 諺語、片語、成語、口語對照 (2025.08.25 更新)

做表面功夫 go through the motion 目中無人;自視甚高 have one's nose in the air 有完沒完;別再說了 give it a rest  = can in 兵來將擋,水來土掩 roll with the punches (衍伸至拳擊) = take it as it comes 時間過得好慢。 The day is dragging on. 少臭美了 be full of oneself = Get over yourself! 你真是自以為是。 You are really all about yourself. 你一定找得到的。 You can't miss it. 那還用說。 You're telling me. 物超所值 get more bang for the buck 加把勁 pull one's socks up 出洋相;大吵大鬧 make a scene 風馬牛不相及 be neither here nor there 挖東牆補西牆 rob Peter to pay Paul 我覺得事有蹊蹺。 I smell a rat.  冤冤相報何時了。 Two wrongs don't make a right. 沒魚,蝦也好。 It's not so great, but it'll have to do.  自斷後路 burn one's bridge  這是掛保證的。 You can take it to the bank.  = You can quote me on that. 白手起家 rags-to-riches 放規矩點! Behave youself. = Mind your p's and q's. 悉聽尊便。 Anything you say. = It's up to you. = As you wish. 夠了!(住嘴) Cut it out! = Stop it! 閉嘴! Hold your tongue. = Shut up! 別太挑剔了! Don't be so fussy. 別搞砸了! Don't blow it. 別老叫我做東做西! Don't boss me arou...

Hey, now! Gridview完勝!

最近在公司Gridview的查詢,新增,刪除和修改的功能~

卡了很久@@

而其實我只有到公司才會寫,因為其他天忙其他事@@
唯一看的書卻沒教怎麼寫...
所以我都是上網找,用盡各種方法,當然也各種成功與失敗...Orz

最後終於在這個影片中找到完勝解法



非常簡單~
但傳多個eval的方式我則還沒做出來@@

主要都在這段解決
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CCC1234ConnectionString %>" SelectCommand="SELECT * FROM [Table_Convert]" UpdateCommand="UPDATE [Table_Convert] SET [等級]=@等級,[職業]=@職業 WHERE [ID]=@ID " DeleteCommand="DELETE FROM [Table_Convert] WHERE [ID]=@ID"></asp:SqlDataSource>

還有要用預設的"Update"和"Delete"
<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="True" CommandName="Update" Text="更新"></asp:LinkButton>

然後加了OnClientClick之確認框框
 <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" Text="刪除"  CommandName="Delete" OnClientClick="return confirm('確定刪除這筆資料?')"></asp:LinkButton>
                 
之前極少碰ASP.NET的我總算在今天有點小結果了XD

留言

這個網誌中的熱門文章

公司職務 × 英文縮寫 × 中文對照 (2024.11.30 更新)

國泰世華信用卡 異常簽帳消費

打火機處理記 (注意,有爆炸危險!) (2021.09.11 更新)