摘要:
从安装VS2003以来可以编译并运行项目,就是不能用VS2003的调试功能,症状:“试图运行项目时出错:无法在web服务器上启动调试。”,我用了以下方法都没有能开启VS2003的调试功能。 1、用aspnet_regiis -i 重新注册; 2、给我用的Administrator用户添加了Debugger Users组; 3、设置解决方案->配置属性->调试-&... 阅读全文
摘要:
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录 inner join(等值连接) 只返回两个表中联结字段相等的行 举例如下: -------------------------------------------- 表A记录如下: aID aNum 1 a20... 阅读全文
摘要:
using System;using System.Web;using System.Web.UI.HtmlControls ;using System.Web.UI;namespace Web.JScript{ /// /// 提供向页面输出客户端代码实现特殊功能的方法 /// /// /// public class JScript { ... 阅读全文
摘要:
在asp.net中可以通过HttpRequest.ServerVariables 属性来获取“ Web 服务器变量的集合” HttpRequest.ServerVariables 的用法: 比如我想获取Web服务器地址,其变量名称是"Http_Host": string web_addr = HttpRequest.ServerVariables["Http_Host"] Http_Host可以... 阅读全文
摘要:
1.先找出数据有问题的字段2.然后在这个字段对应的表里查出这个字段的所有记录,一条条记录地查,查到不符合字段数据类型的值去掉或者改掉 阅读全文
摘要:
写个SQL函数,只要运用下系统的instr(string,string...[],[])配合substr(string,number)来用:create or replace function f_o_get_jcywgnnamesbyid(m_jcywgnids in varchar2) return varchar2is/*...*/i number;v_jcywgnids varchar2(... 阅读全文
摘要:
比如表A主键id与表B的外键a_id关联,要在A表中查出id不等于B表中所有a_id的记录:not in 写法: select * from A where id not in (select a_id from B where a_id = A.id )not exists写法: select * from A where id not exists (select 1 from B where... 阅读全文
摘要:
首先创建一张表(要求ID自动编号):create table redheadedfile(id int identity(1,1),filenames nvarchar(20),senduser nvarchar(20),primary key(id))然后我们写入50万条记录:declare @i intset @i=1while @i webform8 ... 阅读全文
摘要:
好几次在代码中使用了System.Configuration.ConfigurationSettings.GetConfig方法,但每次使用之后都出现如下提示: 但奇怪的是每次按系统提示调用System.Configuration.ConfigurationManager.GetSection方法时都出现以下错误:命名空间“System.Configuration”中不存在类型或命名空间名称“... 阅读全文
摘要:
1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id"); string b = Reque... 阅读全文