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

ÔõÑùÉèÖÃÒÑ·¢ËÍÓʼþ²»ÔÙ·¢ËÍ asp.net

¾ÍÊÇÔÚʹÓÃjmail·¢ËÍÓʼþʱ£¬Ê¹ÓõÄÊÇ×Ô¶¯É¨Ãè¹æ¶¨¼ä¸ôʱ¼ä×Ô¶¯·¢Ë͵ģ¬ÏÖÔÚÊÇÏëʵÏÖÒѾ­·¢Ë͵ÄÓʼþ½«²»ÔÙ·¢ËÍ£¬¸÷λ´óϺÔõôʵÏÖ£¬ÇóÖú£¡
Ê×ÏÈÃ÷È·µÄÊÇÔÚÊý¾Ý¿â±íÖв¢Ã»Óбêʶ×Ö¶ÎÀ´±æ±ðÓʼþÊÇ·ñÒѾ­·¢ËÍ¡£Èç¹ûÎÒÀ´ÉèÖÃÒ»¸öÈ«¾Ö±äÁ¿À´´æ´¢ÕâЩÒѾ­·¢ËÍÓʼþµÄID£¬È»ºóÔÚÔÙ´ÎɨÃèʱÀ´±æ±ðÕâЩIDÊÇ·ñÒѾ­´æÔڵķ½Ê½À´Åжϣ¬¸Ð¾õЧ¹û²»¼Ñ£¬²»ÖªµÀ»¹ÓÐûÓÐʲôÆäËû°ì·¨£¿
sqlHelper help = new sqlHelper();
if (ajaxrefresh.a == 1)
{
string sql_str = "select ids,reporter,news,times from newsnba order by ids desc";
DataSet ds = help.ExecuteDataSetSql(sql_str);
int count = ds.Tables[0].Rows.Count;
for (int i = 0; i < count; i++)
{
string ids = ds.Tables[0].Rows[i][0].ToString();
ajaxrefresh.str += ids + ",";

}
gvnews.DataSource = ds;
gvnews.DataBind();
ajaxrefresh.a++;
}
else
{
string idparam = ajaxrefresh.str.Substring(0, (ajaxrefresh.str.Length - 1));
string str = @"select ids,reporter,news,times from newsnba where ids not in ({0}) order by ids desc ";
str = string.Format(str, idparam);
DataSet dss = help.ExecuteDataSetSql(str);
gvnews.DataSource = dss;
gvnews.DataBind();
int counts=dss.Tables[0].Rows.Count;
for(int i=0;i<counts;i++)
{
ajaxrefresh.str+=dss.Tables[0].Rows[i][0].ToString();
}


Ïà¹ØÎĵµ£º

asp.net×¢²áJavascriptµÄ·½·¨

1¡¢IsStartupScriptRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁËÆôÓýű¾¡£
2¡¢IsClientScriptBlockRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾¿é¡£
3¡¢IsClientScriptIncludeRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾°üº¬¡£
µÚÒ»¸öÀý×Ó£º
string info = "<script>alert('ÄãºÃÂð£¿');</script>";
//ÅжÏʼþÊÇ·ñ±»×¢²á£¬Ð´ÈëÇ ......

ASP.NETµ×²ãµÄ³õ²½ÈÏʶÓëÀí½â

      ×î½üÔÚ¹úÍâµÄÍøÕ¾ÂÒ×ßһͨ£¬·¢ÏÖһЩ±È½ÏºÃµÄÎÄÕ£¬ÊÕ¼¯ÕûÀí¼ÓÓÚ×Ô¼ºµÄÀí½â£¬×÷Ϊ±Ê¼ÇÐÎʽ¼Ç¼ÏÂÀ´£¬ÈÃÒÔºó×Ô¼ºÓиö»ØÒä¡£
¡¡¡¡ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓõÄƽ̨,ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦ÓÃ.¾ø´ó¶àÊýµÄÈËÖ»ÊìϤ¸ß²ãµÄ¿ò¼ÜÈçWebFormsºÍWebS ......

¡¾×ª¡¿asp.net ¿Í»§¶Ë»Øµ÷֪ͨ


ÔÚ ASP.NET ÍøÒ³µÄĬÈÏÄ£ÐÍÖУ¬Óû§»áÓëÒ³½»»¥£¬µ¥»÷°´Å¥»òÖ´Ðе¼Ö»ط¢µÄһЩÆäËû²Ù×÷¡£´Ëʱ½«ÖØд´½¨Ò³¼°Æä¿Ø¼þ£¬²¢ÔÚ·þÎñÆ÷ÉÏÔËÐÐÒ³´úÂ룬ÇÒа汾µÄÒ³±»³ÊÏÖµ½ä¯ÀÀÆ÷¡£µ«ÊÇ£¬ÔÚÓÐЩÇé¿öÏ£¬ÐèÒª´Ó¿Í»§¶ËÔËÐзþÎñÆ÷´úÂ룬¶ø²»Ö´Ðлط¢¡£Èç¹ûÒ³ÖеĿͻ§¶Ë½Å±¾Î¬»¤Ò»Ð©×´Ì¬ÐÅÏ¢£¨ÀýÈ磬¾Ö²¿±äÁ¿Öµ£©£¬ÄÇô·¢ËÍÒ³ºÍ»ñÈ¡Ò ......

ASP.NETÖÐString.IndexOf ·½·¨µÄʹÓÃ

String.IndexOf ·½·¨ (value, [startIndex], [count])
¡¡¡¡±¨¸æÖ¸¶¨×Ö·ûÔÚ´ËʵÀýÖеĵÚÒ»¸öÆ¥ÅäÏîµÄË÷Òý¡£ËÑË÷´ÓÖ¸¶¨×Ö·ûλÖÿªÊ¼£¬²¢¼ì²éÖ¸¶¨ÊýÁ¿µÄ×Ö·ûλÖá£
¡¡¡¡²ÎÊý
¡¡¡¡value
¡¡¡¡Òª²éÕÒµÄ Unicode ×Ö·û¡£ ¶Ô value µÄËÑË÷Çø·Ö´óСд¡£
¡¡¡¡startIndex£¨Int32£©
¡¡¡¡¿ÉÑ¡ÏËÑË÷ÆðʼλÖᣲ»ÉèÖÃÔò´Ó0¿ªÊ¼¡£
......

asp.netÖÐÈçºÎ±éÀúHashTable

asp.net±éÀúHashTableÐèÒªÓõ½DictionaryEntry Object£¬asp.net±éÀúHashTable£¬¿ÉÒÔͨ¹ýÈçÏÂÁ½ÖÖ·½·¨À´ÊµÏÖ£¬
·½·¨Ò»£º
foreach (System.Collections.DictionaryEntry objDE in objHasTab)
{
    Console.WriteLine(objDE.Key.ToString());
    Console.WriteLine(objDE.Value.ToString ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ