易截截图软件、单文件、免安装、纯绿色、仅160KB

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”就是编号)</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


相关文档:

ASP.NET自定义控件事件响应

1.重载protected override bool OnBubbleEvent(object source, EventArgs args)
OnBubbleEvent是控件内包含的控件向外层控件作事件冒泡
-------------------------------------------------------------------------------------------------------------------------------------------
using System;
using System.Co ......

ASP.NET Web.config配置详解

一、认识Web.config文件
Web.config 文件是一个XML文本文件,它用来储存 ASP.NET Web 应用程序的配置信息(如最常用的设置ASP.NET Web 应用程序的身份验证方式),它可以出现在应用程序的每一个目录中。当你通过.NET新建一个Web应用程序后,默认情况下会在根目录自动创建一个默认的 Web.config文件,包括默认的配置设置, ......

ASP.NET Mischellous II

@import url(“layout.css”)
CSS Selectors: *, p, div span, div > span, *[href], li+li, .title, #container, #title p:first-child, a:link, a:hover, a:visited, p:before, p:after
p:after{content:’url(images/quote.gif)’}
!important State Mode: Off, InProc, StateServer, SQLServer, C ......

ASP.NET中如何防范SQL注入式攻击

1将sql中使用的一些特殊符号,如' -- /* ; %等用Replace()过滤;
2限制文本框输入字符的长度;
3检查用户输入的合法性;客户端与服务器端都要执行,可以使用正则。
4使用带参数的SQL语句形式。 
ASP.NET中如何防范SQL注入式攻击 
 
一、什么是SQL注入式攻击?
  所谓SQL注入式攻击,就是攻击者把 ......

通过ASP.NET获取URL地址

如果测试的url地址是http : //www.test.com/testweb/default.aspx, 结果如下:
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/default.aspx
Request.Path: /testweb/default.aspx
Request.PhysicalApplicationPath: E:\WWW\testwebReq ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号