這個是安全方法. private void Form1_Load(object sender, EventArgs e) { Post p = new Post(); p.OnPost += new Post.OnPostHandler(p_Post); t = new Thread(new ThreadStart(p.Go)); } void p_Post(int m, string r
when i use hql to query many to many realationship query,i find on i use Count function it is all return -1hql = "select xxx from ...."i delete "select xxx" Count is work rightbut sometimes we nedd use union query , we can't remove "select xxx "
從開始見到castle就一直找到的分頁.. 可是一直沒有找到它的可以返回總頁數的地方.突然明白過來. int allCount; string hql = "from Site where id > 0"; SimpleQuery<Site> query = new SimpleQuery<Site>(hql); query.SetQueryRange(5, 15);//設定從哪一條
最近在使用一個圖片剪下的工具 WebImageMaker.它可以很好的工作在普通頁面裡面.它是當它在Master 頁面裡的時候發現 上傳 按鈕的事件失效了.原來是因為它在 CreateChildControls 的時候調用了 ClientID 結果產生的ClientID沒有加上容器的部分.回傳的時候就沒有辦法觸發事件了. One Bug On WebImageMaker. When the control be used in master page. it can not work.
Country 是Linq to sql 的一個實體類如果我們按這個代碼啟動並執行話就會得到The mapping of interface member IDisplayOrder.ID is not supported.注意看Exchange的代碼一個方法是先where 後FirstOrDefault 這個方法可以使用。而如果直接用FirstOrDefault 的話就會有錯了CodeCode highlighting produced by Actipro CodeHighlighter (
When we use PdfStamper to merge fields. we will find"This file is damaged, Adobe acrobat can not repair the documentmost adobe versions, give message “This file is damaged”, but it can repair. Unfortunately some versions can not
How to save textbox viewstate that modetype is password, Show password <asp:TextBox runat="server" ID="txtPassword" TextMode="Password" Value='<%#Eval("Password") %>'></asp:TextBox>OrtxtPassword.Attributes.Add("Value",