ÓÅÐãASP.NET³ÌÐòÔ±µÄÐÞÁ¶Ö®Â·
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:ËÎÌå;
mso-font-kerning:1.0pt;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
ÓÅÐãASP.NET
³ÌÐòÔ±µÄÐÞÁ¶Ö®Â·
2007-09-14 13:06
×÷ÕߣºØýÃû³ö´¦£ºÂÛ̳ÕûÀíÔðÈα༣º·½ÖÛ
¡¡¡¡³õ¼¶µÄ³ÌÐòÔ±»ò¾Ñé²»×ãµÄ³ÌÐòÔ±ÍùÍùÖ»Òâʶµ½×Ô¼ºµÄ³ÌÐòÊÇд¸ø¼ÆËã»úµÄ£¬¶ø²»»áÔÚÒâ³ÌÐòÆäʵҲÊÇд¸øÈ˵쬻òÔÚÒâµÃ²»¹»¡¢²»È«Ãæ¡£
¡¡¡¡Ð´¸ø»úÆ÷µÄ³ÌÐò£¬ÍùÍù×·ÇóµÄÊÇÔËÐÐÕýÈ·¡¢Ö´ÐÐЧÂÊÄÜÂú×ãÒªÇó¡£µ«³ÌÐòÔ±µÄÈÎÎñ½ö½ö¾ÍÊǰÑÒµÎñÂ߼ת³É»úÆ÷ÄܱàÒëµÄ¼ÆËã»úÓïÑÔÂð?
¡¡¡¡Æäʵ£¬³ÌÐòÊ×ÏÈ(
×¢Ò⣬ÊÇÊ×ÏÈ)
ÊÇд¸øÈ˵ġ£µÚÒ»£¬³ÌÐòÊÇд¸ø¿´´úÂëµÄÈ˵ġ£µÚ¶þ£¬³ÌÐòÊÇд¸øÓóÌÐòµÄÈ˵ġ£Á˽âÕâÒ»µã£¬²ÅÄÜÀí½âд³ÌÐòΪʲô
ÒªÓдúÂë¹æ·¶£¬ÎªÊ²Ã´ÒªÓи÷ÖÖÎĵµ£¬ÎªÊ²Ã´Ð´×Ó³ÌÐòʱҪÃüºÃÃû£¬ÎªÊ²Ã´Òª·Ö²ã£¬ÎªÊ²Ã´ÒªÑ§Éè¼ÆÄ£Ê½£¬ÎªÊ²Ã´ÒªÐ´²âÊÔÓÃÀý£¬ÎªÊ²Ã´ÒªÍÆÇð´Å¥µÄ°Ú·Å£¬ÎªÊ²Ã´ Òª°´XHTML
±ê׼дWeb
½çÃæ£¬ÎªÊ²Ã´ÒªÓÃAJAX
… …
Àí½âÁËÕâÒ»µã£¬²ÅÄܸüºÃµÄ×öºÃÉÏÃæÖÖÖÖÊÂÇé¡£
¡¡¡¡Ë¶¼ÔÚ˵“
ϸ½Ú¾ö¶¨³É°Ü”
£¬Ë¶¼ÖªµÀҪעÒâϸ½Ú¡£ÎªÊ²Ã´´ó¼Ò¶¼ÔÚ½²Ï¸½Ú£¬ÓеÄÈËÄ
Ïà¹ØÎĵµ£º
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
/// <summary>
/// һЩ³£ÓõÄJsµ÷ÓÃ
/// Ìí¼ÓаæËµÃ÷£ºÓÉÓھɰæÆÕ±é²ÉÓÃResponse.Write(string msg)µÄ·½Ê½Êä³öjs½Å±¾£¬ÕâÖÖ
/// ·½Ê½Êä³öµÄjs½Å±¾»áÔÚhtmlÔªËØµÄ<html>&a ......
µ±Ò»¸öÍøÒ³ÖмÈÓÐÊý¾ÝÑéÖ¤¿Ø¼þ£¬ÓÖÓÐÒ»¸ö°´Å¥ÔÚµã»÷ʱ³öÏÖÌáʾ°´Å¥¡£
Èç¹ûÖ±½ÓÔÚÒ³ÃæµÄºǫ́´úÂëµÄPage_Loadº¯ÊýÖÐдÈëbtn.Attributes["Onclick"] = "return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')"£¬ÄÇôÑéÖ¤¿Ø¼þ¾Í»áʧЧ£¬ÒòΪÑéÖ¤¿Ø¼þÒ²ÊÇͨ¹ýjsʵÏֵģ¬ÕâÑùµÄ»°return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')ÏÈÓÚÔÀ´µÄjs´úÂëÖ´ÐУ¬Ì ......
using System;
using System.IO;
namespace WriteLog
{
/// <summary>
/// WriteInLog µÄժҪ˵Ã÷¡£
/// </summary>
public class WriteInLog
......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes. ......
Ê×ÏÈÎÒºÜÒź¶µÄ¸æËß´ó¼Ò£¬ÒòΪ΢ÈíµÄ͵ÀÁ£¬Ä¿Ç°UpdatePanel»¹²»Ö§³ÖÎļþÉÏ´«¡£±äÏàµÄ½â¾ö°ì·¨¾ÍÊÇUpdatePanelÖÐÉèÖÃPostBackTrigger£º
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:FileUpload ID="FileUpload1" runat="serv ......