ASP.NET ÈçºÎ£º½ûÓà ASP.NET ·þÎñÆ÷¿Ø¼þÑéÖ¤
ÔÚÌض¨Ìõ¼þÏ£¬Äú¿ÉÄÜÐèÒª±Ü¿ªÑéÖ¤¡£ÀýÈ磬Äú¿ÉÄܾßÓÐÒ»¸öÒ³Ã棬¼´Ê¹Óû§Ã»ÓÐÕýÈ·ÌîдËùÓÐÑéÖ¤×ֶΣ¬Ò²Ó¦¸Ã¿ÉÒÔ·¢ËÍÒ³¡£Äú¿ÉÒÔÉèÖà ASP.NET ·þÎñÆ÷¿Ø¼þÀ´±Ü¿ª¿Í»§¶ËºÍ·þÎñÆ÷µÄÑéÖ¤£¬¶ø²»Ö»ÊÇ¿Í»§¶ËÑéÖ¤¡£
°²È«ËµÃ÷£º ĬÈÏÇé¿öÏ£¬ASP.NET ÍøÒ³Ö´ÐÐÇëÇóÑéÖ¤ÒÔÈ·±£Óû§ÊäÈëÄÚÈݲ»°üº¬½Å±¾»ò HTML ÔªËØ¡£¿ÉÒÔÏÔʽ½ûÓøù¦ÄÜ¡£
Äú»¹¿ÉÒÔ½ûÓÃÑéÖ¤¿Ø¼þ£¬ÒÔʹËü¸ù±¾²»ÔÚÒ³ÃæÉϳÊÏÖ²¢ÇÒ²»½øÐÐʹÓøÿؼþµÄÑéÖ¤¡£
Èç¹ûÒªÖ´ÐзþÎñÆ÷ÉϵÄÑéÖ¤£¬²»Ö´Ðпͻ§»úÉϵÄÑéÖ¤£¬Äú¿ÉÒÔ½«µ¥¶ÀÑéÖ¤¿Ø¼þÉèÖÃΪ²»Éú³É¿Í»§¶Ë½Å±¾¡£Èç¹û¿Í»§¶ËÉϵĶ¯Ì¬¸üе¼ÖÂÒ³µÄ²¼¾Ö³öÏÖÎÊÌ⣬»òÕßÈç¹ûÒªÔÚÑé֤֮ǰִÐÐһЩ·þÎñÆ÷´úÂ룬ÕâÒ»´ëÊ©½«ÓÈΪÓÐÓá£
Ò»¡¢ÔÚÌض¨¿Ø¼þÖнûÓÃÑéÖ¤
½«¸Ã¿Ø¼þµÄ CausesValidation ÊôÐÔÉèÖÃΪ false¡£
ÏÂÃæµÄʾÀýÏÔʾÈçºÎ´´½¨“È¡Ïû”°´Å¥£¬ÒÔ±ã±Ü¿ªÑéÖ¤¼ì²é£º
<asp:Button id="Button1" runat="server"
Text="Cancel" CausesValidation="False">
</asp:Button>
¶þ¡¢½ûÓÃÑéÖ¤¿Ø¼þ
½«ÑéÖ¤¿Ø¼þµÄ Enabled ÊôÐÔÉèÖÃΪ false¡£
Èý¡¢½ûÓÿͻ§¶ËÑéÖ¤
½«ÑéÖ¤¿Ø¼þµÄ EnableClientScript ÊôÐÔÉèÖÃΪ false¡£
Ïà¹ØÎĵµ£º
//2007Äê4ÔÂ24ÈÕ
this.TextBox6.Text = System.DateTime.Now.ToString("D");
//2007-4-24
this.TextBox7.Text = System.DateTime.Now.ToString("d");
//2007Äê4ÔÂ24ÈÕ 16:30:15
this. ......
1£®Ê÷ÐνṹµÄÉè¼Æ
ÔÚ¿ª·¢ASP.NETµÄÏîÄ¿ÖУ¬ÓÐÐí¶àÏîÄ¿Óõ½µÄÊ÷Ðνṹ£¬ÆäÖÐÓÐЩÊ÷ÐνṹÏà¶Ô¸´ÔÓ£¬Ò²Óмòµ¥µÄ£¬µ«ÎÞÂÛÊǼòµ¥µÄÊ÷Ðνṹ»¹ÊǸ´ÔÓµÄÊ÷Ðνṹ£¬ÓÐןõĽṹ¶ÔÓÚÐÔÄܺÍÎȶ¨ÐÔ¶¼ÓÐןܴóµÄ×÷ÓᣱÈÈçÄãµÄÊ÷½á¹¹µÄÊý¾ÝºÜ´ó£¬Èç¹ûÊDzÉÓñȽÏËÀµÄ·½Ê½Ò»´ÎÐÔ¼ÓÔؽøÀ´ÄÇôÄãÔÚ¼ÓÔØÕâ¿ÃÊ÷µÄʱºò¾ÍÊÇÏ൱µÄºÄ ......
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("/*\n------Êä³ö½á¹û------------");
getSplit("ABCDEFG"); ......
ºǫ́¸ø¿Ø¼þÌí¼Ójs·½·¨
this.btnOK.Attributes["onclick"] = "javascript:return confirm(\"È·¶¨±£´æ£¿\");";
»òÕß
<mce:script type="text/javascript"><!--
function shijian()
{
return confirm(\"È·¶¨±£´æ£¿\");
}
// --></mce:script>
this.btnOK.Attributes["onclick"] = "return sh ......
µ±´íÎóÐÅÏ¢³öÏÖÔÚÒ³ÉÏʱ£¬Ëü³ÉΪҳ²¼¾ÖµÄÒ»²¿·Ö¡£ÄúÐèÒªÉè¼ÆÒ³µÄ²¼¾ÖÒÔ·ÅÖÿÉÄܳöÏÖµÄÈκδíÎóÎı¾¡£
Èç¹ûÑéÖ¤ÔÚ·þÎñÆ÷ÉÏÖ´ÐУ¬Ôò³ý·Ç³öÏÖ´íÎ󣬷ñÔòÑéÖ¤¿Ø¼þ²»»á³ÊÏÖµ½Ò³£¬²¢Òò´Ë²»»áÕ¼ÓÃÈκοռ䡣Èç¹û³öÏÖ´íÎó£¬Ò³½«ÔÚÍù·µÆÚ¼äÖØд´½¨£¬²¢½«´íÎóÎı¾Ìí¼Óµ½Ò³¡£
Èç¹ûÓû§¾ßÓÐÖ§³Ö¶¯Ì ......