ASP.NET Éú³É¾²Ì¬Ò³Ãæ
ÒòΪ¹«Ë¾µÄ²úÆ·ÓÃasp¿ª·¢£¬ ǰһ¶Îʱ¼äÓÃaspдÁËÒ»¸öÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³µÄ³ÌÐò£¬µ«ÔµÓÚ¶Ô.netµÄÈȰ®£¬Ð´ÁËÕâ¸ö.netϵÄÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³µÄ³ÌÐò¡£
Ö÷ÒªµÄÔÀí¾ÍÊÇÌæ»»Ä£°åÀïµÄÌØÊâ×Ö·û¡£
1¡¢¾²Ì¬Ä£°åÒ³Ãæ template.html£¬Ö÷ÒªÊǶ¨ÒåÁËÒ»Ð©ÌØÊâ×Ö·û£¬ÓÃÀ´±»Ìæ»»¡£
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>$Title</title>
</head>
<body>
<div style="width: 417px; height: 54px" align="center">
<br />
$Title</div>
<div style="width: 417px; height: 8px">
ä¯ÀÀ<font color="red"><script src="http://localhost/.Net/NewsFiles/ClickCount.aspx?NewsId=$NewsId"></script></font>´Î $Time</div>
<div style="width: 417px; height: 100px">
$Content</div>
<div style="width: 416px; height: 9px">
$Pager</div>
<div style="width: 416px; height: 8px">
<form id="form1" action="../AddComment.aspx" style="margin:0px">
<input id="Text1" type="text" /><Img id="Image1" src="../../UserInfo/CheckCode.aspx"/><br />
<textarea id="CommentContent" cols="20" rows="2"></textarea>
 
Ïà¹ØÎĵµ£º
ASP.NETÖÐʵÏÖÒ³Ãæ¼äµÄ²ÎÊý´«µÝ (×ªÔØ)
&n ......
Êý¾Ý´¦Àí³É¹¦ÂíÉÏÌø×ªµ½ÁíÍâÒ»¸öÒ³Ãæ£¡
ÄãµÄºǫ́´¦ÀíÒ³Ãæ£¬Ò²¾ÍÊÇÊý¾Ý½ÓÊÕÒ³Ãæ£¬Ö´ÐÐÍêÏà¹ØµÄ²Ù×÷ºó£¬Ê¹ÓÃÏÂÃæµÄÓï¾ä£º
response.write("<script>alert('Êý¾ÝÌá½»³É¹¦******');window.location.href='ÄãÏëҪתÏòµÄÒ³ÃæµÄµØÖ·';</script>")
ÕâÑùËæ±ãËû·µ»ØºóÔõôˢУ¬ÏÔʾµÄʼÖÕÊÇ“Êý¾ÝÌá½»³É¹¦ ......
Ë®ÏÉ»¨Êý£ºÒ»¸öÈýλÕûÊý¸÷λÊý×ÖµÄÁ¢·½ºÍµÈÓÚ¸ÃÊý±¾Éí¾Í³Æ¸ÃÊýΪˮÏÉ»¨Êý£¬Ë®ÏÉ»¨Êý¹²ÓÐ4¸ö£¬·Ö±ðΪ£º153¡¢370¡¢371¡¢407( ÀýÈ磺1^3 + 5^3 + 3^3 = 153 )¡£ÎÒдµÄ´úÂëÈçÏ£¬ÄãÓÐÆäËûµÄʵÏÖ´úÂëÒ²¿ÉÒÔ·¢±íÆÀÂÛ¡£
int i, m,n,k;
for (i = 100; i < 1000; i++)
{
//È¡µÃ°ÙλÊý
m = i / 100;
//È¡µ ......
1£ºGridView Ìí¼ÓÊôÐÔ£¨ÊÇ·ñɾ³ý£¬Êó±ê¾¹ý±³¾°£©
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
& ......
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JqueryAjaxLongPoll.aspx.cs" Inherits="JqueryAjaxLongPoll" %>
<!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" & ......