ASP.NET源码 我想学asp.net,不知有没有asp.net方面的源码可以供我学习的。谢谢[email protected]我的邮箱 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.codeproject.com还有就是最好的入门petshophttp://msdn.microsoft.com/library/en-us/dnbda/html/petshop3x.asp 刚开始学看这个:http://chs.gotdotnet.com/quickstart/aspplus/doc/quickstart.aspx 我也是从quickstart开始的,还有PetShop,Duwamish都是很好的例子 http://www.xxsky.com/aspdown/list.aspx?type1id=27http://www.chinaz.com/download/其实要说写的好的源码,还是看看官方的例子吧 VS.NET安装盘里的实例。同时你在MSDN上面还能找到例子的讲解。 Microsoft .NET Framework SDK v1.1这是一本很好的免费教材。。但是我发觉比较适合ASP转过来的朋友 http://dotnet.aspx.cc/http://www.thecodeproject.comhttp://www.dotnetjunkies.comhttp://www.gotdotnet.com/ 微软的asp.net starter kit入门套件http://www.asp.net/Default.aspx?tabindex=8&tabid=47Community Starter KitCommunity Starter KitCommunity Starter Kit还有PetShop,Duwamish都是很好的例子 http://www.asp.net/Default.aspx?tabindex=8&tabid=47http://www.codeproject.comhttp://www.dotnetjunkies.comhttp://www.gotdotnet.com/http://msdn.microsoft.com/library/en-us/dnbda/html/petshop3x.asphttp://chs.gotdotnet.com/quickstart/aspplus/doc/quickstart.aspx 写一个给你::aspx:<%@ Page language="c#" Codebehind="test.aspx.cs" AutoEventWireup="false" Inherits="WebUI.test.test" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD> <title>test</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <table> </table> <asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 232px; POSITION: absolute; TOP: 200px" runat="server" Text="Button"></asp:Button> </form> </body></HTML>cs文件:using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using Facade;namespace WebUI.test{ /// <summary> /// test 的摘要说明。 /// </summary> public class test : PageBase { protected System.Web.UI.WebControls.Button Button1; private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 } #region Web 窗体设计器生成的代码 override protected void OnInit(EventArgs e) { // // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。 // InitializeComponent(); base.OnInit(e); } /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.Button1.Click += new System.EventHandler(this.Button1_Click); this.Load += new System.EventHandler(this.Page_Load); } #endregion private void Button1_Click(object sender, System.EventArgs e) { Response.Write("<script>alert('你点击了')</script>") } }} //你自己的机子上就有:C(你的安装盘):\Program Files\Microsoft Visual Studio .NET 2003\Enterprise Samples\Duwamish 7.0 CS安装该程序,再打开他就行了,那可是绝顶高手写的。 自定义发帖表情插入FCK文本编辑器怎么弄? 读取exl出错 外部表不是预期的格式 散技术分啦~~~~~~~~~~~~~~ 将泛型集合类转换成DataTable 的使用 支付宝第三方代扣 怎么判断一个字段是不是为空再用Label来表现出来?? 如何控制gridview中的checkbox只能有一个被选中?? 怎样利用C#程序路由器的重启? 有三个DataGrid的数据,如何导入到一个Excel中,分别存到sheet1,sheet2,sheet3 窗口间值的传输问题 有办法获知是哪个页面向当前页发送的表单? 怎么样取得datafield的值?
还有就是最好的入门petshop
http://msdn.microsoft.com/library/en-us/dnbda/html/petshop3x.asp
http://chs.gotdotnet.com/quickstart/aspplus/doc/quickstart.aspx
http://www.chinaz.com/download/
其实要说写的好的源码,还是看看官方的例子吧
这是一本很好的免费教材。。但是我发觉比较适合ASP转过来的朋友
http://www.thecodeproject.com
http://www.dotnetjunkies.com
http://www.gotdotnet.com/
http://www.asp.net/Default.aspx?tabindex=8&tabid=47Community Starter Kit
Community Starter Kit
Community Starter Kit
还有PetShop,Duwamish都是很好的例子
http://www.codeproject.com
http://www.dotnetjunkies.com
http://www.gotdotnet.com/
http://msdn.microsoft.com/library/en-us/dnbda/html/petshop3x.asp
http://chs.gotdotnet.com/quickstart/aspplus/doc/quickstart.aspx
aspx:
<%@ Page language="c#" Codebehind="test.aspx.cs" AutoEventWireup="false" Inherits="WebUI.test.test" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>test</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table>
</table>
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 232px; POSITION: absolute; TOP: 200px" runat="server"
Text="Button"></asp:Button>
</form>
</body>
</HTML>
cs文件:using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Facade;namespace WebUI.test
{
/// <summary>
/// test 的摘要说明。
/// </summary>
public class test : PageBase
{
protected System.Web.UI.WebControls.Button Button1;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
} #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write("<script>alert('你点击了')</script>")
}
}
}
C(你的安装盘):\Program Files\Microsoft Visual Studio .NET 2003\Enterprise Samples\Duwamish 7.0 CS
安装该程序,再打开他就行了,那可是绝顶高手写的。