asp.net ¹Ø±ÕÍøÒ³´úÂë
2ÖÖ·½·¨
Ò»¡¢linkbuttonµÄµ¥»÷ʼþÀï¹Ø±ÕÒ³Ã棬ƴ½Ó´úÂë¾ÍÊÇÁË
²¹³ä£¬²»¿ÉÄÜ£¬ÎÒ×Ô¼ºÊÔ¹ý£¬ÔÙ²¹³äÒ»ÏÂ
1.¹Ø±ÕʱÌáʾ“ÊÇ·ñ¹Ø±Õ”
Response.Write("<script language:javascript>javascript:window.close();</script>");
2.Ö±½Ó¹Ø±Õ²»Ìáʾ
Response.Write("<script language:javascript>javascript:window.opener=null;window.close();</script>");
¶þ¡¢ÓÃJavaScriptʵÏÖ
<body>
<a href="#" onClick="windows.opener=null;windows.close();">¹Ø±ÕÍøÒ³</a>
</body>
ÓÃjavascript
×î´ó»¯´°¿Ú£º
<OBJECT id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="Maximize"></OBJECT>
<a href="#1" onclick="max.Click()">×î´ó»¯</a>
×îС»¯´°¿Ú£º
<object id=minimize type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Minimize"></object>
<a href="#1" onclick="minimize.Click()">×îС»¯</a>
¹Ø±Õ´°¿Ú£º
<a href="javascript:window.close()">¹Ø±Õ´°¿Ú</a>
Ïà¹ØÎĵµ£º
ҪʵÏÖa¿Ø¼þ¿Ø¼þ´¥·¢b¿Ø¼þ·þÎñÆ÷¶Ëʼþ£¬Ðè¸øa¿Ø¼þÌí¼Ójs½Å±¾£¬ÒÔb¿Ø¼þÃûÒåÌá½»Ò³Ã棬¾ßÌå´úÂ룺
var theForm = document.forms['form1'];
theForm.__EVENTTARGET.value = "b"; //´¥·¢b¿Ø¼þ·þÎñÆ÷¶Ë·½·¨
theForm.__EVENTARGUMENT.value = "a trigger";//´«µÝµÄ²ÎÊý
theForm.submit();
×¢Ò⣺ÐèÒªÉèÖÃÒ³ÃæÊôÐÔÖÐµÄ enab ......
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ ......
asp.netÖÐ×Ô´øµÄCutStringÖ»ÄܽØÈ¡×Ö·ûÊýÁ¿µÄ³¤¶È,µ«ÖÐÓ¢ÎÄ×Ö·ûÊýÓвîÒì,Ò»¸öÖÐÎÄ×ÖµÈͬÓÚ¶þ¸öÓ¢ÎÄ×Ö·ûµÄ¿í¶È,ÕâÑù¶Ô½ØÈ¡ºóµÄЧ¹û²»ÀíÏë.ʹÓÃÒÔϵķ½·¨¾ÍÄܽâ¾ö.
//µ÷Ó÷½·¨
string title=BLL.CutStr.CutString("±êÌâ",10);using System;
using System.Collections.Generic;
using System.Text;
namespace BLL
{
&n ......
×î½üÔÚ¿´¡¶asp.netͨÓÃÄ£¿é¼°µäÐÍϵͳ¿ª·¢ÊµÀýµ¼º½¡·£¬ÆäÖÐÓõ½ÁËMD5¼ÓÃÜ£¬´úÂëÈçÏ£º /// <summary>
/// ×Ö·û´®¼ÓÃܺ¯Êý
/// </summary>
/// <param name="strInput">ÊäÈë±»¼ÓÃܵÄ×Ö·û´®</param>
/// <returns>¼ÓÃܺóµÄ×Ö·û´®</return ......