摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Configuration;using System.Xml;namespace QCLPrintBarCode{ public partial class Print : Form { public Print() ... 阅读全文
posted @ 2012-12-17 14:18 FiberHomer 阅读(242) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 检查默认焦点及默认按钮状态 /// </summary> private void checkStatus() { //form1.DefaultFocus = btnCancel.ClientID; for (int i = 0; i < form1.Controls.Count; i++) { //检查默认焦点状态 if (form1.DefaultFocus == form1... 阅读全文
posted @ 2012-12-17 14:15 FiberHomer 阅读(245) 评论(0) 推荐(0) 编辑
摘要: //将PreviousPage转换成与来源网页相同的强类型 if (PreviousPage != null) { if (PreviousPage.IsCrossPagePostBack) { IsCrossPageSource sourcePage = (IsCrossPageSource)PreviousPage; Label1.Text =... 阅读全文
posted @ 2012-12-17 10:48 FiberHomer 阅读(83) 评论(0) 推荐(0) 编辑
摘要: CrossPageSource页面,最为关键的是给Button控件设置PostBackUrl属性 1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CrossPageSource.aspx.cs" Inherits="CrossPagePosting.CrossPageSource" %> 2 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN 阅读全文
posted @ 2012-12-10 14:40 FiberHomer 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 如果ADO.NET中要对不同数据库个体作访问,那连接字符串该如何设置?假设主机名为"ap2006",代码如下:Data Source = ap2006;initial catalog=northwind;user id=sa;password=test Data Source= ap2006\SQL2000;initial catalog=northwind;user id=sa;password=test Data Source= ap2006\SQLEXPRESS;initial catalog = northwind;user id=sa;password=test 阅读全文
posted @ 2012-12-10 10:54 FiberHomer 阅读(149) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/2454877/error-while-installing-microsoft-sharepoint-2010-on-windows-7-machine 阅读全文
posted @ 2012-12-06 17:16 FiberHomer 阅读(135) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace QCLPrintBarCode{ public partial class Print : Form { public Print() { InitializeComponent(); InitPrint(); } private void InitPrint() 阅读全文
posted @ 2012-12-03 21:07 FiberHomer 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 解决方案: function LoadData(){ //预先设置单元格里面的数据 var data = {"baidu":"http://www.baidu.com","sina":"http://www.sina.com","itcast":"http://www.itcast.cn"}; //首先 得到table var tableLinks = document.getElementById("tableLinks"); for(var key i 阅读全文
posted @ 2012-12-02 19:31 FiberHomer 阅读(465) 评论(0) 推荐(0) 编辑
摘要: public static void BindDropDownList2(string SqlString, DropDownList MyDDL, string TextStr, string ValueStr) { SqlDataReader MyReader = GetDataReader(SqlString); MyDDL.Items.Clear(); while (MyReader.Read()) { ListItem MyItem = new ListItem(); MyItem.Text = MyReader[TextStr].ToString(); MyItem.Value = 阅读全文
posted @ 2012-12-01 20:29 FiberHomer 阅读(1313) 评论(0) 推荐(0) 编辑
摘要: // 公有方法,获取数据,返回一个DataSet。 public static DataSet GetDataSet(string SqlString) { using (SqlConnection connection = new SqlConnection(ConnectionString)) { connection.Open(); using (SqlCommand cmd = new SqlCommand(SqlString, connection)) { using (SqlDataAdapter da = new SqlDataAdapter(cmd)) { DataSet d. 阅读全文
posted @ 2012-12-01 20:19 FiberHomer 阅读(146) 评论(0) 推荐(0) 编辑