asp.net׼ȷ½ØÈ¡Îı¾³¤¶È(È¡µÃ±êÌâµÄ×Ö·ûÊý)
asp.netÖÐ×Ô´øµÄCutStringÖ»ÄܽØÈ¡×Ö·ûÊýÁ¿µÄ³¤¶È,µ«ÖÐÓ¢ÎÄ×Ö·ûÊýÓвîÒì,Ò»¸öÖÐÎÄ×ÖµÈͬÓÚ¶þ¸öÓ¢ÎÄ×Ö·ûµÄ¿í¶È,ÕâÑù¶Ô½ØÈ¡ºóµÄЧ¹û²»ÀíÏë.ʹÓÃÒÔÏµķ½·¨¾ÍÄܽâ¾ö.
//µ÷Ó÷½·¨
string title=BLL.CutStr.CutString("±êÌâ",10);using System;
using System.Collections.Generic;
using System.Text;
namespace BLL
{
public class CutStr
{
public static string CutString(string str, int length)
{
if (str == "" )
{
str = "ûÓÐÐÅÏ¢";
}
else
{
int i = 0, j = 0;
foreach (char chr in str)
{
if ((int)chr > 127)
{
i += 2;
}
else
&nbs
Ïà¹ØÎĵµ£º
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ͼƬ»¬¶¯.aspx.cs" Inherits="ASP.net.ͼƬ»¬¶¯" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  ......
suggest.jsÎļþ£¨ÔÚÒýÈësuggest.jsÎļþǰÐèÒªÏÈÒýÈëjquery-1.4.2.min.js£©£º
$(function() {
var k = -1;
//¸ø²éѯÎı¾¿ò°ó¶¨click keyupʼþ£¬½øÐÐÕâÁ½¸öʼþ£¬×Ô¶¯²éѯÊý¾Ý
$("#FrmChangshang").bind('click keyup', function(event) {
//»ñÈ¡¼üÅ̲Ù×÷ʼþ´úÂë
var keyc = event ......
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ ......
ËÑË÷ÒýÇæÓÅ»¯¶ÔÈκÎÃæÏò¹«ÖÚµÄÍøÕ¾À´Ëµ¶¼·Ç³£ÖØÒª£¬ASP.net 4.0 Ϊ´Ë¾Í×öÁË´óÁ¿¸ÄÔì¡£ÕâЩ¸Ä½ø°üÀ¨ÈçÏ£º
301
ÓÀ¾ÃÐÔÖØ¶¨Ïò
Ëæ×Åʱ¼äµÄÇ¨ÒÆ£¬ÍøÕ¾µÄÒ»Ð©Ò³ÃæµØÖ·»á·¢Éú±ä»¯£¬Õâ»áµ¼ÖÂËÑË÷ÒýÇæÊÕ¼µÄÁ´½ÓµØÖ·¡¢Óû§ÊղصĵØÖ·Ê§
Ч¡£Response.Redirect() ¾ÍÊǽâ¾öÕâ¸öÎÊÌâµÄ¡£µ«ÊÇResponse.Redirect ÓÐÒÔÏÂÎÊÌ⣺
Respo ......
Online active users counter in ASP.NET
With this tool which is written for ASP.NET, it is possible to count the number of online users, members and guest users in web sites.
Installation
The tool installation is very simple and only takes a few minutes.
Step one - Add Reference:
After downlo ......