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

ASP.NETµÄÎå´óÊý¾Ý¿Ø¼þdz̸

»¶Ó­½øÈë.NETÉçÇøÂÛ̳£¬Óë200Íò¼¼ÊõÈËÔ±»¥¶¯½»Á÷ >>½øÈë
ASP.NET Êý¾Ý¿Ø¼þ:GridView,DataList,Repeater ,DetailsView,FormView¡£
ASP.NET Êý¾Ý¿Ø¼þ×ÛÊö£º
1.Ç°3¸öÓÃÓÚ³ÊÏÖ¶àÌõ¼Ç¼,ºóÃæ2¸öÓÃÓÚ³ÊÏÖµ¥ÌõÊý¾ÝÃ÷ϸ,¼´³£ÓõļǼÃ÷ϸ¡£
2.GridViewºÍDetailsView¿Ø¼þµÄ²¼¾Ö¹Ì¶¨,×Ô¶¨ÒåÊý¾ÝÏÔʾµÄ²¼¾Ö¹¦ÄÜÓÐÏÞ,Ò»°ãÊʺϲ¼¾Ö¼òµ¥µÄÊý¾Ý³ÊÏÖ¡£3.DataList,RepeaterºÍFormViewÊý¾Ý¿Ø¼þ¶¼ÓкÜÇ¿µÄ×Ô¶¨Òå²¼¾ÖÄÜÁ¦,Èç¹ûÊý¾Ý³ÊÏÖÐèÒª½ÏΪ¸´ÔӵIJ¼¾Ö·½°¸,Õâ3¸ö¿Ø¼þÊÇÊ×Ñ¡¡£
4.GridView ,DetailsViewºÍFormViewÕâÈý¸ö¶¼ÊÇ.net 2.0ÐÂÔöµÄ¿Ø¼þ,ÄÚÖÃÁË·ÖÒ³,ÅÅÐòµÈµÈ¹¦ÄÜ,Æä¸Ä½ø³Ì¶ÈÊÇ1.1ËùÌṩ¿Ø¼þÎÞ·¨±ÈµÄ¡£
5.DataListºÍRepeaterÊÇ1.1°æ¾ÍÌṩµÄ¿Ø¼þ,ÄÚÖù¦ÄܽÏÈõ,ÐèÒª×Ô¼ºÊµÏÖ·ÖÒ³,ÅÅÐò,Êý¾ÝʼþµÈ¹¦ÄÜ¡£
ÓÐȤµÄÊÇ,ÔÚÏÖÔÚµÄAsp.netƽ̨ÉÏ,Èç¹û´Ó¹¦ÄÜÉÏÀ´Ëµ³ÊÏÖµ¥ÁÐÊý¾ÝʱDetailsViewºÍFormViewÏà¶ÔÓ¦,DetailsView²¼¾Ö¹Ì¶¨FormView×Ô¶¨Òå²¼¾Ö,³ÊÏÖ¶àÁÐÊý¾ÝʱֻÓÐGridViewÀ´¸ºÔ𲼾̶ֹ¨µÄÊý¾Ý,´Ó¹¦ÄÜÉÏÀ´Ëµ,ûÓжÔÓ¦µÄ¿Ø¼þÓëGridViewÏàÅä¡£
DataListÌṩµÄÊý¾Ý¹¦ÄÜÓëGridViewÏà±È,ʵÔÚÊÇÌ«ÈõÁË.ÓëGridView¼¸ºõ²»ÐèÒª±à³Ì¾ÍÄܵ£¸ºÊý¾Ý³ÊÏÖµÄÖØÈÎÏà±È,DataListÒªÇó³ÌÐòÔ±±ØÐë×Ô¼ºÐ´´úÂëÀ´ÊµÏÖÏëÒªµÄ¹¦ÄÜ¡£
ASP.Net Êý¾Ý¿Ø¼þÖ®GridView ¿Ø¼þ£º
GridView ¿Ø¼þÒÔ±íµÄÐÎʽÏÔʾÊý¾Ý£¬²¢Ìṩ¶ÔÁнøÐÐÅÅÐò¡¢·ÖÒ³¡¢·­ÔÄÊý¾ÝÒÔ¼°±à¼­»òɾ³ýµ¥¸ö¼Ç¼µÄ¹¦ÄÜ¡£
×¢Ò⣺GridView ¿Ø¼þÊÇ ASP.NET µÄÔçÆÚ°æ±¾ÖÐÌṩµÄ DataGrid ¿Ø¼þµÄºó¼Ì¿Ø¼þ¡£³ýÁËÌí¼ÓÀûÓÃÊý¾ÝÔ´¿Ø¼þ¹¦ÄܵÄй¦ÄÜ£¬GridView ¿Ø¼þ»¹ÊµÏÖÁËijЩ¸Ä½ø£¬ÀýÈ磬¶¨Òå¶à¸öÖ÷¼ü×ֶεŦÄÜ¡¢Ê¹Óðó¶¨×ֶκÍÄ£°åµÄ¸Ä½øÓû§½çÃæ×Ô¶¨ÒåÒÔ¼°ÓÃÓÚ´¦Àí»òÈ¡ÏûʼþµÄÐÂÄ£ÐÍ¡£
ASP.Net Êý¾Ý¿Ø¼þÖ®DetailsView ¿Ø¼þ£º
DetailsView ¿Ø¼þÒ»´Î³ÊÏÖÒ»Ìõ±í¸ñÐÎʽµÄ¼Ç¼£¬²¢Ìṩ·­ÔĶàÌõ¼Ç¼ÒÔ¼°²åÈë¡¢¸üкÍɾ³ý¼Ç¼µÄ¹¦ÄÜ¡£DetailsView ¿Ø¼þͨ³£ÓÃÔÚÖ÷/ÏêϸÐÅÏ¢·½°¸ÖУ¬ÔÚÕâÖÖ·½°¸ÖУ¬Ö÷¿Ø¼þ£¨Èç GridView ¿Ø¼þ£©ÖеÄËùÑ¡¼Ç¼¾ö¶¨ÁË DetailsView ¿Ø¼þÏÔʾµÄ¼Ç¼¡£
ASP.NET Êý¾Ý¿Ø¼þÖ®FormView ¿Ø¼þ£º
FormView ¿Ø¼þÓë DetailsView ¿Ø¼þÀàËÆ£¬ËüÒ»´Î³ÊÏÖÊý¾ÝÔ´ÖеÄÒ»Ìõ¼Ç¼£¬²¢Ìṩ·­ÔĶàÌõ¼Ç¼ÒÔ¼°²åÈë¡¢¸üкÍɾ³ý¼Ç¼µÄ¹¦ÄÜ¡£²»¹ý£¬FormView ¿Ø¼þÓë DetailsView ¿Ø¼þÖ®¼äµÄ²î±ðÔÚÓÚ£ºDetailsView ¿Ø¼þʹÓûùÓÚ±í¸ñµÄ²¼¾Ö£¬ÔÚÕâÖÖ²¼¾ÖÖУ¬Êý¾Ý¼Ç¼µÄÿ¸ö×ֶζ¼ÏÔʾΪ¿Ø¼þÖеÄÒ»ÐС£¶ø FormView ¿Ø¼þÔò²»Ö¸¶


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄASP.NET +ACCESS µÇ¼

Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......

ASP.NETµÄACCESSÊý¾Ý¿â²Ù×÷Àà

//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ· 
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ· 
/// 
/// È¡µÃdataset 
// 
/// ²éѯÓï¾ä 
/// 
public DataSet GetDataSet(string Commandtext) 
{&nbs ......

Asp.net¶ÔÎļþ¼ÐºÍÎļþµÄ²Ù×÷Àà

using System;
using System.IO;
using System.Web;
namespace SEC
{
/**////
/// ¶ÔÎļþºÍÎļþ¼ÐµÄ²Ù×÷Àà
///
public class FileControl
{
public FileControl()
{
}
/**////
/// ÔÚ¸ùĿ¼Ï´´½¨Îļþ¼Ð
///
///
Òª´´½¨µÄÎļþ·¾¶
public void CreateFolder(string FolderPathName)
{ ......

ASP.NET³£ÓôúÂë

http://www.chinaz.com/Program/.NET/101U1142006.html
¡¡¡¡1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QuerySt ......

ASP.netÖÐTimerºÍWebServiceµÄʹÓÃ

 Ê¾ÀýÒ»
ÔÚGlobal.asax.csÎļþÖУº 
 protected void Application_Start(Object sender, EventArgs e)
      {
               System.Timers.Timer timer1 = new System.Timers.Timer();
 &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ