Asp.net ÌìÆøÔ¤±¨×ÊÁÏÕûÀí ³õ¸å
ASP.NET»ñÈ¡ÌìÆøÔ¤±¨´óÖ·ÖÎöÓÐ 1µ½Ä³¸öÍøÕ¾ÉÏ·ÖÎöÍøÕ¾µÄ´úÂë»ñÈ¡£»2×Ô¼ºÐ´Çý¶¯·þÎñºÍweb·þÎñ µÚ¶þÖÖˮ̫Éî²»ÔøÉæ¼°¡£
ASP.NETºǫ́³ÌÐò»ñÈ¡ÖÐÑëÆøÏǫ́ÌìÆøÔ¤±¨
1.ÌìÆø·â×°³ÉÒ»¸öʵÌå
2.¿ÉÒÔ»ñÈ¡µ±ÌìÌìÆø£¬Ò²¿ÉÒÔ»ñȡδÀ´ÎåÌìµÄÌìÆø¼¯ºÏ
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
using System.Collections;
namespace CommonComponents
{
/// <summary>
/// ÌìÆø¸¨ÖúÀà
/// </summary>
public class TqHelper
{
/// <summary>
/// »ñȡδÀ´ÎåÌìÌìÆø
/// </summary>
/// <param name="citycode">³ÇÊбàºÅ(ÀýÈ磺[url]http://www.weather.com.cn/html/weather/101010100.shtml[/url]Öеē101010100”¾ÍÊDZàºÅ)</param>
/// <returns>δÀ´ÎåÌìµÄÌìÆøÊµÌ弯ºÏ</returns>
public List<TqInfo> GetFiveDayTqList(string citycode)
{
List<TqInfo> tqInfoList = null;
Hashtable ht = GetTqHash(citycode);
if (ht!=null && ht.Count > 0)
{
tqInfoList = new List<TqInfo>();
for (int i = 1; i <= 5; i++)
&nbs
Ïà¹ØÎĵµ£º
1.ÖØÔØprotected override bool OnBubbleEvent(object source, EventArgs args)
OnBubbleEventÊǿؼþÄÚ°üº¬µÄ¿Ø¼þÏòÍâ²ã¿Ø¼þ×÷ʼþðÅÝ
-------------------------------------------------------------------------------------------------------------------------------------------
using System;
using System.Co ......
ÔÚC#ÖÐ
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using System.Collections.Generic;
using System.Collections;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.Ba ......
×÷Ϊ¸öÈËÍøÕ¾»òСÐÍÍøÕ¾µÄ±àдÕߣ¬Ê®°Ë°ãÎäÒÕ¶¼µÃͨÏþÒ»µã£¬±ÈÈç˵ javascript¡¢CSS/DIV¡¢HTML¡¢±à³ÌÓïÑÔ¡¢Êý¾Ý¿â֪ʶµÈ¡£µ±ÎÒÃDZàдһ¸öСÐÍÓ¦ÓóÌÐòʱ£¬ÈçºÎ×öµ½¸ßЧ¡¢Ë¼Â·ÇåÎúÄØ£¿ÒÔÏÂÊÇÎÒµÄÒ»µã¾Ñé×ܽᡣÓ×ÖÉÓë²»×ãÖ®´¦»¹ÍûµÃµ½Í¬ÐеÄÖ¸µã¡£
Ò»Ìõ×ܵÄ˼Ï룺ÔÚÓ¦ÓóÌÐò±àÒë·¢²¼ºó£¬aspxÎļþ¡¢dllÎļ ......
HTML´úÂ룺
<script language="javascript" event="onclick" for="ImageButton1">
return confirm('È·¶¨Òª±£´æ±ä¸üÂð£¿');//·µ»Øfalseʱ²»Ö´ÐÐImageButton1_Click·½·¨£¬·µ»ØtureʱִÐÐImageButton1_Click·½·¨
</script>
<asp:ImageButton ID="ImageButton1" runat="server" ImageAlig ......