摘要:cmd 输入 C:\Windows\Microsoft.NET\Framework\V4.0.30319\aspnet_regiis -i
阅读全文
摘要:1.从地址栏显示来说forward是服务器请求资源,服务器直接访问目标地址的URL,把那个URL的响应内容读取过来,然后把这些内容再发给浏览器.浏览器根本不知道服务器发送的内容从哪里来的,所以它的地址栏还是原来的地址.redirect是服务端根据逻辑,发送一个状态码,告诉浏览器重新去请求那个地址.所
阅读全文
摘要:场景:在用excel 导入的时候页面出现“未在本地计算机上注册“Microsoft.Ace.OleDb.12.0”提供程序。”的错误 最终验证解决方案如下: iis设置解决方案 选择 该应用程序的 应用程序池 >选择高级设置 >启用32位应用程序 >true 或 去http://download.m
阅读全文
摘要:错误的写法: if (this.GridView1.Rows.Count > 0) { string style = @"<style> .text { mso-number-format:\@; } </script> "; string exportfile = "supp" + DateTim
阅读全文
摘要:1 protected void GridView1_DataBinding(object sender, EventArgs e) { 该事件当服务器控件绑定数据时发生。 }2 protected void GridView1_DataBound(object sender, EventArgs
阅读全文
摘要:ToolTip: // // 摘要: // 获取或设置当鼠标指针悬停在 Web 服务器控件上时显示的文本。 // // 返回结果: // 当鼠标指针悬停在 Web 服务器控件上时显示的文本。默认值为 System.String.Empty。 protected void gvMain_RowData
阅读全文
摘要:protected void Button1_Click(object sender, EventArgs e) { for (int i = 0; i < this.TreeView1.Nodes.Count; i++)//循环根节点 { if (TreeView1.Nodes[i].Checke
阅读全文