QQ
远赴东方学.Net先进技术(菜鸟也能煮酒论英雄)
他山之石,可以攻玉。善于从他人处汲取营养的人,才能不断地取长补短,使自己走向成功
posts - 20,comments - 36,trackbacks - 2
     摘要: JS自带函数1.Asc(x),Chr(x):转换字符,字符码2。Filter:搜寻字符串数组中的特定字符串格式:v=filter(x,s[,include[,compare]])实例:Dim x()={"kjwang","wangkj","peter"}Dim vv=filter(x,"kj") '结果v(0)="kjwang",v(1)="wangkj"v=filter(x,"kj",false... 阅读全文
posted @ 2008-07-29 13:44 江太公 阅读(98) | 评论 (0)编辑
     摘要: SPSite的使用 SPSite作为网站集对应的对象模型,其主要的用处是获取某个特定的网站,它最常用的几个功能如下:„ 构造函数SPSite的构造函数有两种,分别以Site的url和Guid作为参数。在SharePoint对象模型中,大部分对象都拥有一个Guid作为它唯一的标识符,通过这个Guid可以获取该对象的实例,例如Site(SPSite)、Web(SPWeb)、列表(SPLis... 阅读全文
posted @ 2007-12-17 13:47 江太公 阅读(124) | 评论 (0)编辑
     摘要: 第一:通过现有的已经写好的xsd来生成class(.cs)文件。在您Visual Studio的安装目录下的SDK\v2.0\Bin\中有个应用程序xsd.exe(通过这个应用程序可以使用xsd来创建类文件)。具体操作:通过打开Visual Studio 命令提示,可以输入xsd指令来查看一些具体的操作指令的用处,然后通过输入指令xsd /c 你xsd文件所在的绝对的物理路径,输入完成后回车。这样... 阅读全文
posted @ 2007-09-08 09:06 江太公 阅读(401) | 评论 (5)编辑
     摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><ti... 阅读全文
posted @ 2007-07-30 21:38 江太公 阅读(243) | 评论 (2)编辑

 

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    
<title>Untitled Page</title>
   
<script language="javascript">
   
//   left  和   main  分别是框架的名称或者是ID
   //方法一:
   function   openwindow(){   
      window.open(
"Default4.aspx","left");   
      window.open(
"Default3.aspx","main");   
    
  }

 
//方法二:
 function  openwindows(top,bottom){   
        parent.document.all.left.src   
=   top;   
        parent.document.all.main.src   
=   bottom;   
  }
 
</script>

</head>
<body>
<a   href="#"   onclick="openwindow();">open</a>   
<p><href="#" onclick="openwindows('Default4.aspx','Default3.aspx')">left</a></p>
</body>
</html>
posted @ 2007-07-15 15:57 江太公 阅读(194) | 评论 (0)编辑
     摘要: 通过这个控件,可以判断你输入的文本框中的内容是否与你已经存在的数据或者是数据集中的数据相等(当焦点离开该控件的时候),并且根据你输入的要提示的信息来提示输入的是否是正确的:比如用户注册的时候,你可以用来判断用户名是否已经存在,以便快速的提示给注册的用户。它自带要提示的信息的属性,可以在文本框的后面进行提示。空间的数据集为object,支持多种数据类型:可以是单个的数据源,也可以为数组,arrayl... 阅读全文
posted @ 2007-07-07 07:40 江太公 阅读(598) | 评论 (26)编辑
超连接有a:link,a:visited,a:active,a:hover      a:link是正常状态下的链接的样式;      a:visited是已经访问过的样式;      a:hover是鼠标指针移到文字上的样式;      a:active是点左键时链接文字的样式;            我做了这样一个测试,我写了link,visited,hover这三个样式,但是当我运用到超链接文字上时link和hover样式都显示了,当我点了超链接后visited样式显示了,我把鼠标移动到超链接文字是上时,hover样式为什么就没有显示了,我不知道为什么?
posted @ 2007-06-26 09:38 江太公 阅读(85) | 评论 (0)编辑
遇到并解决了错误--ASP.NET Error: Failed to access IIS metabase
2007-05-14 10:42

今天在调试aspx程序时遇到这样的错误,不过错误已经得到解决,请看...

//以下是错误信息-------------------------------

ASP.NET Error: Failed to access IIS metabase

This error showed up prior to the error "Mutex cannot be created" which I descirbed in my last post. I wrote down this to help other poor guys saving their poor time.
The more complete error message is as following:
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the
current web request.
Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException:
Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS
metabase (e.g. IIS://servername/W3SVC).
//以下是解决方法--------------------------------
1.进入DOS命令行
2.cd \
3.cd c:\windows\microsoft.net\framework\v2.0.50727
4.然后执行命令 aspnet_regiis -ga administrator //注:administrator为当前登录用户名
5.aspnet_regiis -i -enable
6.net stop iisadmin
7.net start w3svc
//对了说一下,aspnet_regiis.exe这个程序是在c:\windows\microsoft.net\framework\v2.0.50727目录下的,如果你的不是windows xp sp2,那么请您搜寻该程序,只要执行相同的命令即可.
至此,我是把问题解决了,您呢??
posted @ 2007-06-20 15:39 江太公 阅读(367) | 评论 (2)编辑
     摘要: <!doctypehtmlpublic"-//W3C//DTDXHTML1.0Transitional//EN""<ahref="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt... 阅读全文
posted @ 2007-06-07 10:41 江太公 阅读(137) | 评论 (0)编辑
     摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en"><head><metaht... 阅读全文
posted @ 2007-06-07 10:38 江太公 阅读(62) | 评论 (0)编辑