Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET

Áù¡¢ÈçºÎ£ºÒÔ±à³Ì·½Ê½»ñÈ¡ºÍÉèÖà CheckBox Web ·þÎñÆ÷¿Ø¼þÖµ
      ¿ÉÒÔÓñà³Ì·½Ê½¶ÁÈ¡»òÉèÖà CheckBox Web ·þÎñÆ÷¿Ø¼þµÄÖµ¡£
˵Ã÷£º Èç¹ûÄúʹÓõÄÊÇ CheckBoxList ¿Ø¼þ£¬Ôò»ñÈ¡ºÍÉèÖø´Ñ¡¿òÖµµÄ¹ý³Ì»áÓÐËù²»Í¬¡£
      »ñÈ¡»òÉèÖà CheckBox ¿Ø¼þµÄ Checked ÊôÐÔ¡£Èç¹ûֵΪ true£¬Ôò±íʾ¸´Ñ¡¿òÒÑÑ¡¶¨¡£
˵Ã÷£º ²âÊÔ¸´Ñ¡¿òµÄÖµ²¢²»»á¸æËßÄúÓû§ÊÇ·ñ¸ü¸ÄÁ˿ؼþµÄÖµ£¬Ö»ÄܸæËßÄú¸Ã¸´Ñ¡¿òÊÇ·ñÒÑÑ¡ÖС£
ÔÚÏÂÃæµÄʾÀýÖУ¬Èç¹ûδѡ¶¨ chkCanWeSendEmail ¸´Ñ¡¿ò£¬Ôò chkSendInHTMLFormat ¸´Ñ¡¿òÒ²½«×Ô¶¯Çå³ý¡£
if(chkCanWeSendEmail.Checked == false){
   chkSendInHTMLFormat.Checked = false;
}
 
Æß¡¢ÈçºÎ£ºÏìÓ¦ CheckBox Web ·þÎñÆ÷¿Ø¼þÖеÄÓû§Ñ¡Ôñ
      µ±Óû§Ñ¡ÔñÒ»¸ö CheckBox ¿Ø¼þʱ£¬¸Ã¿Ø¼þ½«Òý·¢Ò»¸öʼþ£¬Äú¿ÉÒÔÏìÓ¦Õâһʼþ¡£
˵Ã÷£º CheckBoxList ¿Ø¼þÒý·¢µÄʼþ²»Í¬ÓÚµ¥¸ö CheckBox ¿Ø¼þÒý·¢µÄʼþ¡£
      Äú¿ÉÄܸù±¾²»ÐèÒªÖ±½Ó¶Ô CheckBox ¿Ø¼þµÄÑ¡Ôñʼþ½øÐÐÏìÓ¦¡£ÔÚÓбØÒªÖªµÀÓû§ºÎʱ¸ü¸ÄÁ˸´Ñ¡¿òËùÑ¡ÄÚÈÝʱ²ÅÐèÒªÏìÓ¦¸Ãʼþ¡£Èç¹ûÖ»ÏëÖªµÀÑ¡Ôñ¸´Ñ¡¿òºóµÄ״̬£¬²»ÏëÖªµÀÑ¡ÔñÊÇ·ñÒѸü¸Ä£¬ÔòÖ»ÐèÔÚ´°Ìå·¢Ë͵½·þÎñÆ÷ºó²âÊÔ¸´Ñ¡¿ò¡£
      Ϊ¿Ø¼þµÄ CheckedChanged ʼþ´´½¨Ò»¸öʼþ´¦Àí³ÌÐò¡£
ĬÈÏÇé¿öÏ£¬CheckedChanged ʼþ²¢²»ÂíÉϵ¼ÖÂÏò·þÎñÆ÷·¢ËÍÒ³¡£¶øÊǵ±Ï´η¢ËÍ´°ÌåʱÔÚ·þÎñÆ÷´úÂëÖÐÒý·¢´Ëʼþ¡£ÈôҪʹ CheckedChanged ʼþÒý·¢¼´Ê±·¢ËÍ£¬Ç뽫 CheckBox ¿Ø¼þµÄ AutoPostBack ÊôÐÔÉèÖÃΪ true¡£
˵Ã÷£º ÈôÒªÔÚÑ¡ÖÐ CheckBox ¿Ø¼þʱ½«Æä·¢Ë͵½·þÎñÆ÷£¬ä¯ÀÀÆ÷±ØÐëÖ§³Ö ECMAScript (JavaScript)£¬²¢ÇÒÓû§µÄä¯ÀÀÆ÷ÒªÆôÓýű¾×«Ð´¡£
 
ÏÂÃæµÄʾÀýÔÚ Label Web ·þÎñÆ÷¿Ø¼þÖÐÏÔʾ“True”»ò“False”£¬ÒÔ·´Ó³ CheckBox ¿Ø¼þÖеÄ×îиü¸Ä
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
   Label1.Text = "CheckBox1 selection is: " + CheckBox1.Checked.ToString();
}
 
°Ë¡¢ÈçºÎ£ºÔÚÁбí Web ·þÎñÆ÷¿Ø¼þÖÐÌí¼ÓÏî (Visual Studio)
±¾Ö÷ÌâÖеÄÐÅÏ¢ÊÊÓÃÓÚÒÔÏ Web ·þÎñÆ÷¿Ø¼þ£º
ListBox¡¢DropDownList¡¢CheckBoxList¡¢RadioButtonList¡¢BulletedList
¿ÉÒÔʹÓÃÒÔÏÂÈýÖÖ·½·¨ÏòÁбí Web ·þ


Ïà¹ØÎĵµ£º

asp.net ÑéÖ¤Âë

 ÑéÖ¤ÂëÓ¦Ó㺽«´úÂ븴ÖƵ½Ò³Ãæ¼´¿É£¬²¢½«Ò³ÃæµÄ·¾¶Ð´µ½Í¼Æ¬µÄurlÖбã¿ÉʹÓÃ
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebCont ......

Asp.net ³¤ÎÄÕ·ÖÒ³

public string NoHTML(string Htmlstring) //È¥³ýHTML±ê¼Ç
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @" <script[^>]*?>.*? </script>", "", RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Regex.Replace(Htmlstring, @" <(.[^>]*)>", "", RegexOptions.IgnoreCase); ......

ASP.NETÔÚIE7ÖÐʹÓÃFileUploadÉÏ´«Ô¤ÀÀͼƬ

ÒòΪ°²È«ÐÔÎÊÌ⣬IE7½ûÓÃÁËimage¿Ø¼þÒýÓñ¾µØͼƬ£¬ÎªÁËÕâ¸öÎÊÌâÓôÃÆÁ˺ü¸Ì죬ÖÕÓÚÕÒµ½Á˽â¾ö·½°¸£¬ºÃ¶«Î÷ÒªÓë´ó¼Ò·ÖÏí£¬´úÂëÈçÏ£º
´Ë¶Î´úÂë·ÅÓÚ<head> ....</head>Ö®¼ä
<style type="text/css">#newPreview {
FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)
} ......

ASP.NET

Áù¡¢ÈçºÎ£º×Ô¶¨Òå Calendar Web ·þÎñÆ÷¿Ø¼þµÄÍâ¹Û
      ÒòΪ Calendar ¿Ø¼þÊÇÒ»¸öÓÉÐí¶à¸ö±ðÔªËØ×é³ÉµÄ¸´Ôӿؼþ£¬ËüΪÄú×Ô¶¨ÒåÆäÍâ¹ÛÌṩÁ˶à¸öÑ¡Ïî¡£
      1¡¢¸ü¸Ä Calendar ¿Ø¼þµÄ³£¹æÍâ¹Û
Calendar ¿Ø¼þ½¨Á¢Ò³ÉϵÄÈÕÀúµÄĬÈÏÍâ¹Û£¬µ«ÊÇÄú¿ÉÒÔ¸ü¸ÄÈÕÀúµÄ×ܵÄÍâ¹ ......

ASP.NET

Ê®¡¢ÈçºÎ£º¶ÁÈ¡ Calendar Web ·þÎñÆ÷¿Ø¼þÖеÄÑ¡¶¨ÈÕÆÚ
      µÚÒ»¸öʾÀýÏÔʾµ±Ç°Ñ¡¶¨µÄÈÕ¡£µÚ¶þ¸öʾÀýÏÔʾËùÓÐÑ¡¶¨µÄÈÕÆÚ£¬¿ÉÒÔÊǵ¥¸öÈÕ¡¢ÖÜ»òÔ¡£
// Example 1
Label1.Text = Calendar1.SelectedDate.ToShortDateString();
 
// Example 2
String s = "";
foreach(DateTime d in Ca ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ