asp.net ö¾Ù string×Ö·û´® תΪºº×Ö
public static string TheColor(string color,string enumName)
{
return string.Format("<span style=\"color={0}\">{1}</span>",color,enumName);
}
public enum YesOrNo
{
NO=0,
Yes=1
}
/// <summary>
/// ½«“‘ÊÇ¡¢·ñ’ö¾Ù”ת»¯ÎªÎı¾£¨ÖÐÎÄ£©
/// </summary>
/// <param name="yn">“ÊÇ¡¢·ñ”ö¾Ù</param>
/// <param name="withColor">ÊÇ·ñ×ÅÉ«</param>
/// <returns></returns>
public static string YesOrNos(YesOrNo yn, bool withColor)
{
string result = string.Empty;
if (withColor)
{
switch (yn)
{
case YesOrNo.NO: result = TheColor("Red", "ÊÇ"); break;
 
Ïà¹ØÎĵµ£º
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Text;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Sy ......
Ò»Ö±ÒÔÀ´¸½¼þÉÏ´«¶¼ÊǸöºÜÓôÃÆµÄÎÊÌ⣬¸Õ¿ªÊ¼ÊÇÀûÓÃjsÌí¼Óinput file È»ºóÒ»ÆðÌá½»À´ÊµÏÖ¶àÎļþÉÏ´«£¬ÔÚʹÓÃ163ÓÊÏäµÄʱºòºÜÊÇÏÛĽËüµÄ¸½¼þÉÏ´«²¿·Ö£¨Ñ¡ÔñÍêÎļþ¾ÍÌá½»£¬¿ÉÒÔ¶à¸öÎļþÒ»ÆðÉÏ´«£¬¶øÇÒ»¹¿ÉÒÔ»ñÈ¡ÉÏ´«½ø¶È£©£¬Õâʱ¾ÍºÜÏë×Ô¼ºÒ²Ð´¸öÄÇÑùµÄ¶«Î÷³öÀ´¡£
×î½ü²ÎÕÕÍøÉϵÄһЩ×ÊÁÏ£¬³õ²½µ½´ïÁËÔ¤ÆÚÄ¿±ê£¨¿Í»§¶Ë»ñÈ¡ÉÏ ......
²½Öè1£º
ÐÞ¸Äwin2003ÉÏ´«ÏÞÖÆ£¬ÕÒµ½windows\system32\inserv\metabase.xmlÎļþ
½«ÆäÖеġ¡aspmaxrequestentityallowed= µÄÖµ¸ÄΪ1073741824¡¡£¨1G£©
×¢ÒâÐÞ¸ÄǰҪֹͣIISµÈ·þÎñ¡£
²½Öè2£º
Èç¹ûÄã×°µÄÊÇnet1.1£¬ÇëÕÒµ½windows\...\v1.1.4322\config\machina.configÎļþ£¬½«execution timeout¸ÄΪ36000
½ ......
»·¾³£º
Windows 2008, VS 2008 SP1, Asp.Net Mvc RC1
------------------------------------------------------------------------------
ÉÏÎÄ£ºAsp.Net Mvc: Model Binding »úÖÆ·ÖÎö ÖУ¬ÎÒÃǼòµ¥·ÖÎöÁËAsp.Net MvcÖÐModel BindingµÄ¹ý³Ì£¬·Ç³£´Ö²Ú£¬±¾ÎĽ«Ì½Ë÷ÈçºÎʵÏÖÒ»¸ö×Ô¼ºµÄModelBinder£¬²¢½øÒ»²½Õ¹Ê¾Ç°Îĺ ......
1. JSÖÐÈ¡µÃAsp.NetµÄÖµ
(1)È¡µÃ·þÎñ¶Ë¿Ø¼þµÄÖµ
var s = document.getElementById("TextBox1").value; //È¡µÃTextBox1µÄTextÖµ
(2)È¡µÃÈ«¾Ö±äÁ¿µÄÖµ
ÔÚPage_Load()·½·¨Ç°¶¨Òåprotected String sT;
ÔÚPage_Load()·½·¨Öи³ÖµsT = "¹þ¹þ";
JSÖÐÕâÑùдȡµÃ
var s = "<%=sT %>";
-------------------- ......