Application事件的执行顺序 2005-5-5 0 · 执行Application_BeginRequest
执行Application_AuthenticateRequest
执行Application_AuthorizeRequest
执行Application_ResolveRequestCache
执行Application_AcquireRequestState
执行Application_PreRequestHandlerExecute
执行Application_PostRequestHandlerExecute
执行Application_Release...
asp.net中当服务器出错时显示指定的错误页面 ... 2005-5-5 0 · asp.net中当服务器出错时显示指定的错误页面同时把错误信息写入系统日志文件的探讨一,在Web.config中填写出错时显示的页面,可以根据不同的statusCode显示不同的出错页面。
<customErrors mode="On" //如果设置为Off则出错只返回错误信息,不会跳到自己的指定页面defaultRedirec...
session 和 viewstate 的比较 2005-5-5 0 · session viewstate
占用服务器资源 true false
time out true false
存储任何.net类型 true false(只支持strings, integers, Booleans, arrays, ArrayList, hashtable, custom TypeConverters)
加重html负载 false trues...
实现由web.config控制的验证 2005-5-5 0 · 1、在web.config文件中有这一段内容:<authentication mode="Forms">
<forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" />
</authentication>
<authorization>
<deny users="...
利用ASP.NET来访问Excel文档 2005-5-5 0 · 利用ASP.NET来访问Excel文档 Excel是Microsoft公司的Office套件中的一种软件,他主要用来处理电子表格。Excel以界面友好、处理数据迅速等优点获得广大办公人员的欢迎。所以很多文档就以Excel的形式保存了下来。对于程序设计人员,在程序设计中,我们往往要访问Excel文件来获得数据。但由于Excel文 ...
如何把存储在数据库中的图片根据自己的需要的... 2005-5-5 0 · 文件1:showimage.aspx.csnamespace ImageResizing {public class MainDisplay : System.Web.UI.Page { public void Page_Load(System.Object sender, System.EventArgs e) { try { System.Int32 _ImgID = System.Convert.ToInt32(Request.QueryString["ImgID"]); System.Int32 ...
Office XP Charting Examples in asp.net 2005-5-5 0 · Imports OWC.StimGraph.Helper Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Create ChartSpace/Chart Dim oChartSpace As New OWC10.ChartSpace() Dim oChart As OWC10.ChChart Dim oSeries As OWC10.ChSeries 'Get...
自定义控件的使用二----DBGlobal.cs部分 2005-5-5 0 · using System;namespace com.oztime.WorkShop.CodeBase.DB
{
/// <summary>
/// Summary description for DBGlobal.
/// </summary>
public class DBGlobal
{
public DBGlobal()
{
//
// TODO: Add constructor logic he...
自定义控件的使用例子一 2005-5-5 0 · using System;
using com.joybase.DB;
using com.oztime.WorkShop.CodeBase;
namespace com.oztime.WorkShop.CodeBase.DB
{
/// <summary>
/// Summary description for DBUser.
/// </summary>
public class DBUser:User
{
private int m_UserID;
...
任意在datagrid里面添加控件。 2005-5-5 0 · ICollection CreateDataSource()
{
DataTable dt = new DataTable();
DataRow dr; dt.Columns.Add(new DataColumn("主题", typeof(string)));
dt.Columns.Add(new DataColumn("发布单位", typeof(string)));
...
三、ASPNET中实现在线用户检测(使用后台守护... 2005-5-5 0 · 启动后台线程可以用下面的语句:
CheckOnline online=new CheckOnline();用户可以将它放到GLOBAL。ASAX中,我是没有了,只放到了一个ASPX文件中做简单的测试。如下//start.aspx<%@ Page Language="c#" autoEventWireup=true Debug="true" %>
<%@ Assembly Name="...
二、ASPNET中实现在线用户检测(使用后台守护... 2005-5-5 0 · 有了DLL剩下的就是在页面中使用了我没有针对那个系统特定的去做,读者可以自己将他加如任何一个系统使用中只要新建立个用户:User newuser=new User();
然后将这个用户加入用户列表中就可以了由于我没有什么固定用户,测试程序中就用的是sessionid做的用户名
程序如下//global.aspx<%@Import na...
Asp.net中用核选框显示数据的方法及ButtonCol... 2005-5-5 0 · <%@ Import Namespace="System.Data" %><html>
<script language="C#" runat="server"> DataTable Cart;
DataView CartView; ICollection CreateDataSource() {
DataTable dt = new DataTable();
DataRow dr; d...
使用JScript.NET创建asp.net页面(一) 2005-5-5 0 · 大家一定习惯于使用vb.net和C#来创建asp.net页面,但是不知大家知不知道我们还可以使用Jscript.net编写asp.net.
这可能是自微软1996年推出基于IE3.0的Jscript1.0以来在功能上最大的飞跃。JScript 传统上被用作开发客户端脚本。在internet上它普遍存在,特别是在Active sever page(ASP)中 。
...
在ASP.NET中使用Session与Application 对象 2005-5-5 0 · Last month (November 2001) I concluded that in ASP.NET, caching is the key to performance if you want to exploit Web controls and maintain optimal server response times. Caching relates directly to applications that can work disconnected from the data source. Not all applicat...
XmlNodeList 2005-5-5 0 · Returns an XmlNodeList containing a list of all descendant elements that match the specified name.Overload List
Returns an XmlNodeList containing a list of all descendant elements that match the specified Name.[Visual Basic] Overloads Overridable Public Function GetElementsBy...
使用JScript.NET创建asp.net页面(四) 2005-5-5 0 · 在Jscript中定义类通过类声明, 包含方法和对象和var 声明。对于类的派生通过下面两个程序的对比,你讲清楚地明白。
JScript 5.5 Code
// Simple object with no methods
function Car(make, color, year)
{
this.make = make;
this.color = color;
this.year = year;
}
function Car....
使用JScript.NET创建asp.net页面(五) 2005-5-5 0 · Jscript.net可以用JScript 或任意NET 框架语言(如 C #,VB7.0) 通过增加extends主题词在类声明以后来继承和扩展现有类。这能力允许Jscript.net非常容易地利用 NET 平台的丰厚资源。为了说明这些,给出一个程序。这个程序扩展了NET 框架的ServiceBase 类。
// 导入需要的.net命名空间
import System;
...
使用JScript.NET创建asp.net页面(六) 2005-5-5 0 · 如何在asp+中使用Jscript.net这才是我们关键的问题。我们将通过一个例子来说明这个问题。
访问sqlserver数据库
第一个aps+例子是使用Jscript.net和.net的数据访问类来访问sqlserver数据库,
这里我还将使用大家熟悉的<% %>格式来编写,访问pubs中的authors表,我知道这很简单但是它可以体现 ...
使用JScript.NET创建asp.net页面(七) 2005-5-5 0 · 例子2
<%@ WebService Language="JScript" class="Weather"%>
import System
import System.Web.Services
class Weather {
WebMethodAttribute function getConditions(strCity : String) : String
{
var now = new Date();
switch (strCity.toUpperCase())...
页次:193 /229 20篇/页 首页 上一页 下一页 尾页 合计 4578 篇 Go:第1页 第2页 第3页 第4页 第5页 第6页 第7页 第8页 第9页 第10页 第11页 第12页 第13页 第14页 第15页 第16页 第17页 第18页 第19页 第20页 第21页 第22页 第23页 第24页 第25页 第26页 第27页 第28页 第29页 第30页 第31页 第32页 第33页 第34页 第35页 第36页 第37页 第38页 第39页 第40页 第41页 第42页 第43页 第44页 第45页 第46页 第47页 第48页 第49页 第50页 第51页 第52页 第53页 第54页 第55页 第56页 第57页 第58页 第59页 第60页 第61页 第62页 第63页 第64页 第65页 第66页 第67页 第68页 第69页 第70页 第71页 第72页 第73页 第74页 第75页 第76页 第77页 第78页 第79页 第80页 第81页 第82页 第83页 第84页 第85页 第86页 第87页 第88页 第89页 第90页 第91页 第92页 第93页 第94页 第95页 第96页 第97页 第98页 第99页 第100页 第101页 第102页 第103页 第104页 第105页 第106页 第107页 第108页 第109页 第110页 第111页 第112页 第113页 第114页 第115页 第116页 第117页 第118页 第119页 第120页 第121页 第122页 第123页 第124页 第125页 第126页 第127页 第128页 第129页 第130页 第131页 第132页 第133页 第134页 第135页 第136页 第137页 第138页 第139页 第140页 第141页 第142页 第143页 第144页 第145页 第146页 第147页 第148页 第149页 第150页 第151页 第152页 第153页 第154页 第155页 第156页 第157页 第158页 第159页 第160页 第161页 第162页 第163页 第164页 第165页 第166页 第167页 第168页 第169页 第170页 第171页 第172页 第173页 第174页 第175页 第176页 第177页 第178页 第179页 第180页 第181页 第182页 第183页 第184页 第185页 第186页 第187页 第188页 第189页 第190页 第191页 第192页 第193页 第194页 第195页 第196页 第197页 第198页 第199页 第200页 第201页 第202页 第203页 第204页 第205页 第206页 第207页 第208页 第209页 第210页 第211页 第212页 第213页 第214页 第215页 第216页 第217页 第218页 第219页 第220页 第221页 第222页 第223页 第224页 第225页 第226页 第227页 第228页 第229页