2011年10月29日
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8& 阅读全文
posted @ 2011-10-29 15:58 诡计的不老歌 阅读(1701) 评论(0) 推荐(0) 编辑
  2011年9月9日
摘要: AjaxPro的优点我前面已经讲过了,可以跟前后进行对象传输(如有不清楚,请查看我前面的一篇博文)但有时一个表单里面的项目较多,每次去取过来放到object里比较麻烦,有没什么好的办法有选择的,更容易把对象组织好?当然是有的,下面以一个注册面页来说明这个问题,这多亏有了jquery前台注册代码:<%@ Control Language="C#" AutoEventWireup="true" CodeFile="register.ascx.cs" Inherits="controls_youle_register&quo 阅读全文
posted @ 2011-09-09 15:53 诡计的不老歌 阅读(726) 评论(1) 推荐(0) 编辑
摘要: 客户要做个LDAP验证,只需要输入一个mail地址,检查下只要这个地址存在于某个组里就通过,否则就不通过。代码如下using System;using System.Collections.Generic;using System.Configuration;using System.DirectoryServices;namespace LdapLogin{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)... 阅读全文
posted @ 2011-09-09 15:37 诡计的不老歌 阅读(1570) 评论(0) 推荐(0) 编辑
  2011年9月8日
摘要: 编辑器加载中...using System;using System.DirectoryServices;public static class DomainInformation{ #region Constants //static string[] usersLdapPath = @"LDAP://zzzzzz.com/OU=xxxxxx,DC=yyyyyy,DC=com"; private static string usersLdapPath = System.Configuration.ConfigurationManager.AppSettings... 阅读全文
posted @ 2011-09-08 11:22 诡计的不老歌 阅读(807) 评论(0) 推荐(0) 编辑
  2011年9月6日
摘要: 公司做项目,要求做一个LDAP验证:简单实现如下:default.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="LdapLogin._Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/ 阅读全文
posted @ 2011-09-06 14:28 诡计的不老歌 阅读(597) 评论(0) 推荐(0) 编辑
  2011年8月24日
摘要: 无意中看到同事用AjaxPro用,看到很不错,特长是前后台传输数据特别方便。本文绝对原创,但例子都是从网上到的,并编写测试。最好的教材就是拿到就可以用,方便大家。以前数据传输用FORM提交,或者在前台用JASON拼接然后通过AJAX方式提交。总之要写好多代码,很不方便。要么页面刷新,要么总是写一件重复代码。AjaxPro的方便之处就是前台不需要写太多的代码,可以直接跟后台方法进行访问,中间用数据JASON数据传输这一切她都已经帮你做了。网上找了几个教程都感觉不错。现在我把她从配置到例子整理下分享给大家。一、配置AjaxPro:1. 下载AjaxPro.2.dll并添加到工程里,如图:2. 在w 阅读全文
posted @ 2011-08-24 16:42 诡计的不老歌 阅读(4175) 评论(1) 推荐(4) 编辑
  2011年8月16日
摘要: 这个问题我想大家以前应该都讨论过,为什么今天写出来,因为今天有件事给我的感觉特别深刻。以前我的老大在公司算是最高领导级的,二年后辞职去了另外一家公司,再二年后自己创业失败,现在失业在家带小孩找不到工作目前已经有40岁了。真不知道以后的路该怎么走了,我会继续这样的路么?欢迎大家交流 阅读全文
posted @ 2011-08-16 14:44 诡计的不老歌 阅读(581) 评论(10) 推荐(0) 编辑
  2011年8月10日
摘要: We have been seeing and trying to resolve SQL connectivity issue all the time. I guess it would be helpful if we can put some guidance on how to resolve connectivity issues. Here comes a proposal based on my experience. Basically, when you failed to connect to your SQL Server, the issue could be:1) 阅读全文
posted @ 2011-08-10 06:32 诡计的不老歌 阅读(1018) 评论(2) 推荐(1) 编辑
  2010年10月26日
摘要: 序号 输出内容意义1 Type is missing a javadoc commentClass 缺少类型说明2“{” should be on the previous line “{” 应该位于前一行3Methos is missing a javadoc comment方法前面缺少javadoc注释4Expected @throws tag ... 阅读全文
posted @ 2010-10-26 00:46 诡计的不老歌 阅读(890) 评论(0) 推荐(0) 编辑
摘要: [代码]<?xmlversion="1.0"encoding="GBK"?><!DOCTYPEmodulePUBLIC"-//PuppyCrawl//DTDCheckConfiguration1.2//EN""http://www.puppycrawl.com/dtds/configuration_1_2.dtd"><!--Checkstyleconfiguratio... 阅读全文
posted @ 2010-10-26 00:43 诡计的不老歌 阅读(8827) 评论(0) 推荐(0) 编辑