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

ASP.NET DBHelperÀà

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Data.Common;
using System.Data;
namespace DownData.dal
{
    public static class DBHelper
    {
        private static readonly string connectionString =
            "Data Source=.\\newdb;Initial Catalog=downloaddata; uid=sa;pwd=sa";
        private static readonly string providerName ="System.Data.SqlClient";
        //GetConnection ÓÃÓÚ»ñÈ¡Á¬½ÓÊý¾Ý¿âµÄ connection ¶ÔÏó...
        private static DbConnection GetConnection()
        {
            DbProviderFactory _factory = DbProviderFactories.GetFactory(providerName);
            DbConnection connection = _factory.CreateConnection();
            connection.ConnectionString = connectionString;
            return connection;
        }
        //GetCommand »ñÈ¡ÃüÁî²ÎÊý command ¶ÔÏó...
        private static DbCommand GetCommand(string commandText, CommandType commandType, DbConnection connection)
        {
            DbCommand command = connection.CreateCommand();
            command.CommandText = commandText;
            command.CommandType = commandType;
          


Ïà¹ØÎĵµ£º

ASP.NETÍøÕ¾ÖеÄÌØÊâÎļþ¼Ð

ÓÃVS¿ª·¢ASP.NETÍøÕ¾³ÌÐòµÄʱºò,»á½«Àà»òWeb Services·ÅÔÚÌØÊâµÄÎļþ¼ÐÖÐ,·²ÊÇ·ÅÔÚÕâÐ©ÌØÊâµÄÎļþ¼ÐÖÐ(App_Themes³ýÍâ)µÄ³ÌÐò»òÄÚÈÝÖ»ÔÊÐíÓ¦ÓóÌÐò·ÃÎÊ,¶ÔÓÚÍøÒ³µÄRequestÔò²»ÓèÏìÓ¦(ÎÞ·¨¶ÁÈ¡).
Îļþ¼Ð                  &nbs ......

ASP.NET MVC ÈëÃÅ4¡¢ControllerÓëAction

±¾ÏµÁÐÎÄÕ»ùÓÚASP.NET MVC Preview5.
ControllerÊÇMVCÖбȽÏÖØÒªµÄÒ»²¿·Ö¡£¼¸ºõËùÓеÄÒµÎñÂß¼­¶¼ÊÇÔÚÕâÀï½øÐд¦ÀíµÄ£¬²¢ÇÒ´ÓModelÖÐÈ¡³öÊý¾Ý¡£ÔÚASP.NET
MVC
Preview5ÖУ¬½«Ô­À´µÄControllerÀàÒ»·ÖΪ¶þ£¬·ÖΪÁËControllerÀàºÍControllerBaseÀà¡£ControllerÀà
¼Ì³Ð×ÔControllerBaseÀ࣬¶øControllerBaseʵÏÖÊÇÁËICont ......

asp.net »ñÈ¡ÉÏ´«Í¼Æ¬µÄ´óС


System.Drawing.Image imgPhoto = System.Drawing.Image.fromFile("ͼƬ·¾¶Ãû");   
int sourceWidth = imgPhoto.Width;   //ͼƬ¿í¶È
int sourceHeight = imgPhoto.Height;   //ͼƬ¸ß¶È
¿Ø¼þÃû.PostedFile.ContentLength &n ......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ

¡¡¡¡½ñÌìTMȺÀïÓÐÈËÎÊÆð¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬ÓÖÒý·¢ÁËÒ»³¡ÌÖÂÛ¡£¿´À´Õâ¸ö»¹ÊÇÓкܶàÈ˹Ø×¢µÄ£¬Òò´ËÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
¡¡¡¡1.  ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ