原创 SQL是否存在表或列
是否存在表 if not exists (SELECT name FROM sysobjects where name= 'T_SCS_Student_OtherChargeItemExtend') begin end
原创 access 插入日期
string datestring = Calendar.SelectedDate.Date.ToShortDateString();//格式2011/6/9 星期四 streing[]
原创 C#存儲過程設置返回值位數
SqlParameter[] abc1 = { new SqlParameter("@CourseID", textBox2.Text) , ne
原创 web.config連接access
<connectionStrings> <add name="dbConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Sourc
原创 C# alert 對話框
ScriptManager.RegisterStartupScript(this, typeof(Page), "", "alert('學號重複,請更正!')", true); 點贊 收藏 分享 文章
原创 textbox不可編輯.可取值
<asp:TextBox ID="txtUnitName" runat="server" Width="100px" οnfοcus="this.blur()" ></asp:TextBox> 點贊 收藏 分享
原创 滾動條 最底端
function afteradd() { var div = document.getEl
原创 GridView選中變色,經過變色,整欄點擊彈出網頁
protected void gvReceipt_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowT
原创 SQL 2005 Express 遠程
啓動SQL Server Browser TCP/IP 已啓用:是 端口:1433 外圍 遠程服務 同時ip和name
原创 Windows XP IIS 500內部錯誤 解決方案(HTTP 500內部服務器錯誤) 按以下步驟進行: 1.在控制面板->管理工具->服務 中確認"Distributed Transactio
Windows XP IIS 500內部錯誤 解決方案(HTTP 500內部服務器錯誤) 按以下步驟進行: 1.在控制面板->管理工具->服務 中確認"Distributed Transaction Co
原创 驗證模型
[MetadataType(typeof(ChargeItemMetadata))] public partial class ChargeItem { private class ChargeI
原创 讀寫Web.Config中的appsetting的KeyValue
<configuration> <appSettings> <add key="ORG_ID" value="1"/> </appSettings> <connectionStrings/> 代
原创 sql 替換
UPDATE [T_SCS_SchoolStructure] SET [UnitCode] = replace([UnitCode],',','') WHERE [UnitCode] like '%,%'
原创 NOPI獲取行數,列數,自動調整列寬
//獲取第二行 IRow irow = mysheet.GetRow(1); //該行的最後一列,即總列數 int colums = irow.LastCellNum; //獲
原创 sp_repldone/sp_replcounters
sp_repldone/sp_replcounters 無法執行的問題 在已經建立好的複製數據庫上,如果使用了數據庫的還原,還原到以前的備份上,基本都會出現這樣的錯誤提示。研究了好幾天,發現只要使用以下語句處理一下就好了。 主要是現在數