摘要:
启动后台线程可以用下面的语句:
checkonline online=new checkonline();
用户可以将它放到global。asax中,我是没有了,只放到了一个aspx文件中做简单的测试。如下
//start.aspx
<%@ page language="c#" autoeventwireup=true debug="tru......
摘要:
using system;
namespace com.oztime.workshop.codebase.db
{
/// <summary>
/// summary description for dbglobal.
/// </summary>
public class dbglobal
{
public dbglobal()
{
//......
通过自定义类来达到向aspx页面加入脚本代码的例子
set the initialfocus for an asp.net webform
the pageutil class has a static method setinitialfocus(control) which can be used to generate a javascript for an asp.net page (webform), which sets the focus on a (given) control.
private void page_load(object sender, system.eventargs e)
{
// set the initialfocus on textbox1
pageutil.setinitialfocus(textbox1);
using system;
using system.web.ui;
namespace initialfocusdemo
{
/// <summary>
/// utility class for a asp.net page
/// </summary>
public class ...
下一页 摘要:
1、在web.config文件中有这一段内容:
<authentication mode="forms">
<forms name=".aspxuserdemo" loginurl="login.aspx" protection="all" timeout="60"......