asp.net ȨÏÞÉèÖÃ
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Pub µÄժҪ˵Ã÷
/// </summary>
public static class Pub
{
//¶ÔÓ¦Ò»¸ö¹«¹²Àà
//µÃµ½ÊÇ·ñÓÐÄ£¿éȨÏÞ·½·¨
// 11111111;10001111 µÚÒ»¶Î¾Í´ú±íºÏͬ£¬µÚ¶þ¶Î´ú±íÒDZí
public static bool bModuleRole(string strRole, string ModuleType)
{
string[] ArryRole=strRole.Split(';');
string subRole = "00000000";
switch (ModuleType)
{
case "ht":
subRole = ArryRole[0];
break;
case "yb":
subRole = ArryRole[1];
break;
}
//Èç¹ûÈ«²¿ÊÇÁ㣬ÄÇôûȨÏÞ
if (int.Parse(subRole)>0)
{
return true;
}
else
{
&nbs
Ïà¹ØÎĵµ£º
Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
¡¡¡¡Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õ ......
ÔÎÄ£ºÁõÎä
| ASP.NET ·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ
âÒ¶¡½âÅ£:×ÝÏòÇÐÈëASP.NET 3.5¿Ø¼þºÍ×é¼þ¿ª·¢¼¼Êõ
µÚÒ»Õ½²ÁËһЩ·þÎñÆ÷¿Ø¼þµÄ»ù±¾ÖªÊ¶£¬
ÆäÖÐasp.net·þÎñÆ÷¿Ø¼þµÄÉúÃüÖÜÆÚ£¬ÊÇ¿ª·¢¿Ø¼þµÄµÚÒ»²½£¬Ò²ÊǺËÐÄ¡£
·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ°üÀ¨ÒÔÏÂ11¸ö½×¶Î£º
³õʼ»¯£¨OnInit)£ºÍê³É¿Ø¼þµÄ³õʼ»¯¼°´ò¿ª¿Ø¼þµÄÊÓͼ״̬¸ ......
»ù±¾½á¹¹£º
µÚÒ»²½×¼±¸ÊµÌåÀࣺ
[Serializable]
public class Person
{
/// <summary>
/// 񅧏
/// </summary>
&n ......
ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string& ......