易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.net 仿QQ弹出窗口

 ASP.net 仿QQ弹出窗口
〔转〕http://hi.baidu.com/liyukun8203/blog/item/d9244dfcdb78e388b901a019.html
最近在做内部管理,需要用到这个东西来提醒,所以就把它做成一个类,直接调用,满方便的.贴一下代码,大家看一下
Code
1 using System;
2 using System.Web;
3 using System.Collections.Generic;
4 using System.Text;
5
6 /****************************************
7 * 作者:wenjl
8 * 功能:使用该类,可以实现右下角的弹出界面。
9 * 日期:2008-10-26
10 * 版本:0.1
11 * **************************************/
12 namespace PopupMessage
13 {
14     /// <summary>
15     /// 使用该类,可以实现右下角的弹出界面。
16     /// </summary>
17     public class PopupMessage
18     {
19         private StringBuilder m_Script;
20
21         #region PopupMessage构造函数。
22         /// <summary>
23         /// 构告出弹出界面的前台脚本。
24         /// </summary>
25         public PopupMessage()
26         {
27             m_Script = new StringBuilder();
28             #region Script
29             m_Script.Append("<SCRIPT language=\"JavaScript\" type=\"text/javascript\"> \n ");
30             // m_Script.Append("<!-- \n ");
31             m_Script.Append("function CLASS_MSN_MESSAGE(id,width,height,caption,message,target,action){ \n ");
32    &nb


相关文档:

asp.net用户ASPNET登录失败的问题

 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
  异常详细信息: System.Data.SqlClient.SqlException: 用户 'XXXASPNET' 登录失败。
  今天将网站迁移过来后,就发现这个问题.经过摸索,发现原因是我们登录数据库的角色对数据库的权限不够. ......

ASP.NET 文件下载

下载页面:
 <a href="download.ashx?url=<%=Server.UrlEncode("说明.txt")%>">下载</a>
------------------------------------------------------------------------------
download.ashx
<%@ WebHandler Language="C#" Class="download" %>
using System;
using System.Web;
public ......

学习asp.net C#

 1、DateTime   数字型  
System.DateTime   currentTime=new   System.DateTime();  
  1.1   取当前年月日时分秒  
currentTime=System.DateTime.Now;  
  1.2   取当前年  
int   年=currentTime.Year;  
  1.3   取当前月 &n ......

asp.net常用代碼


1.弹出对话框.
  a. 弹出对话框:
 
C# codeClientScript.RegisterStartupScript(this.GetType(), "",
"<script>window.alert('该会员没有提交申请,请重新提交!')</script>");
  b.转向指定页面
 
C# code Response.Write("
<script>window.location='http://www. ......

MySQL(asp.net) 事务

 try
        {
            string _conStr = "Driver={MySQL ODBC 3.51
Driver};server=localhost;database=test;uid=test;password=1;option=3";
          & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号