04 2008 档案
摘要:1 客户端IP地址 txtIP.Text= Request.UserHostAddress; 2 创建随机数对象 Random rnd = new Random(); //调用Next方法产生随机数 txtRnd.Text = rnd.Next(1,20).ToString(); 3 //取得指定的文件路径 string path = txtExtName.Tex...
阅读全文
摘要:1 连接SQL Server数据库示例 // 连接字符串 string ConnectionString = System.Configuration.ConfigurationSettings.AppSettings["ConnectionSqlServer"]; // 创建SqlConnection对象 SqlConnection connection = new SqlConnectio...
阅读全文
摘要:1 单值数据绑定示例1 '> '> 2 将 DataTable 绑定到 DataGrid 控件示例 void Page_Load(object sender, System.EventArgs e) { if(!IsPostBack) { // 创建 DataTable 对象 DataTable dt = ne...
阅读全文
摘要:1 在页脚中添加指定列的总和和平均值 private void dgitem_ItemDataBound() { if(e.Item.ItemIndex >=0) { sum+=int.Parse(e.Item.Cells[3].Text); } else if(e.Item.ItemType==ListItemType.Footer) ...
阅读全文
摘要:1 使用REPEATER控件显示数据(指定字段显示) RepeaterBind.DataSource = ds.Tables["testTable"]; RepeaterBind.DataBind(); --------------------------------------...
阅读全文
摘要:Calendar; AdRotator; TabStrip ; Toolbar ; TreeView; TreeNode;
阅读全文
摘要:1 New words and expressions appear; stage; briht; stocking sock; 1>youth;年青人; young bload; 新加入成员; be young in 在某方面是新手; be young for one's age; 2>appear on ...
阅读全文
摘要:1 语法:条件壮语从句,IF,主将从现,主句是将来时,IF从句是用一般现在时; 2 New words and expressions park; traffic; ticket; note; area; sign; reminder; fail; obey; 1>polite, inpolite;无礼貌的; ...
阅读全文
摘要:1 语法:直接引语;间接引语; 直接引语:用引号"" 直接把要说的话引起来; 'l am busy,' he said. 间接引语:转述说话人的话; He said that he is busy. 间接引语:1>陈述句,say,tell,来转述,人称,时态,指示代词,时间状语,地点状语; 2>...
阅读全文
摘要:1过去完成时:1>动作发生在过去的过去;在过去动作完成,对过去产生影响,过去的时间壮语; 2>原打算,但没实际的愿望; 3>没听清,再次提问; had + 过去分词 2 New words and Expressions; amusing; experience; ...
阅读全文
摘要:1 语法:一般将来时 1>表将来要发生的动作, 2 new words and expressions luck; caption; sail; harbour; port; proud; important; 1>Goodbye; see you(a later); by...
阅读全文
摘要:1 语法:将来进行时: 1>将来一段时间内将要发生的动作;will,shall,be going to +do+v; 2>表劝告时,亲近的关系; 3>表猜测,表可性; You will be killing youself. 你简直在自杀. l will be thinking of yo...
阅读全文
摘要:1 验证控件; 2 正则表达式; ==================================================== 1 验证控件; ASP.NET公有六种验证控件,分别如下: 控件名 功能描叙 RequiredFieldValidator(必须字段验证) 用于检查是否有输入值 CompareValidator(比较验证) 按设定比较两个输...
阅读全文
摘要:1 DropDownList操作; 2 ListBox操作; 3 动态创建控件; 4 Response.Write("欢迎学习ASP.NET''!"); ===================== 1 DropDownList操作;(向右选择,向上移,向下移选项;) if(DropDown1.Items.Count > 1) { ListItem Item =...
阅读全文
摘要:1 Enter键代替Tab键的功能; 2 为按钮添加消息框confirm(); 3 alert();动态生成表格; ======================================== 1 使用Enter键代替Tab键的功能 2 //为按钮添加消息框 confirm(),alert() 3 //动态生成表格 private void Button...
阅读全文
摘要:1 // 统一绑定控制下拉框 public static int SetDDL(ref DropDownList ddl,string sql) { int nErr=0; try { DataSet ds=new DataSet(); nErr=DBProcess.FillDataSet(sql,new string[]{"table"},o...
阅读全文
该文被密码保护。
摘要:1 页面加入_JS, 2 CSS使用, 3 #include添加文件, 4 缓存页面, 5 页面间传递汉字, 6 IsPostBack控制页面的加载, 7 自定义错语页面 ================= 1 页面加入_JS, A:直接在页面里字JAVASCRIPT,调用: B:在页面里引用JS文件: ...
阅读全文