什么是ASP.NET
What is ASP.NET
ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Framework. You can code your applications in any language compatible with the common language runtime (CLR), including Microsoft Visual Basic, C#, JScript .NET, and J#. These languages enable you to develop ASP.NET applications that benefit from the common language runtime, type safety, inheritance, and so on.
ASP.NET includes:
A page and controls framework
The ASP.NET compiler
Security infrastructure
State-management facilities
Application configuration
Health monitoring and performance features
Debugging support
An XML Web services framework
Extensible hosting environment and application life cycle management
An extensible designer environment
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/chimomo/archive/2009/09/04/4519542.aspx
相关文档:
出现错误发送Email
可以在Global.asax的void Application_Error(Object sender,EventArgs e)
{
//用到了Ssytem.Net.Mail
MailMessage mail=new MailMessage();
mail.from=new MailAddress("automated@contoso.com");
mail.Subject="SIte Error at" +DateTime.Now;
mail.Body="E ......
效果图:
前台代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OWCdrawing.aspx.cs" Inherits="OWCdrawing" %>
<!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/xh ......
这是我从别处摘抄的一篇文章,相信大家都很熟悉的,讲的很明白,但是我对其中一点存有疑惑,许久也没有找到答案。
调用webservice时可以返回datatable等复杂数据类型,下面例子中也有的,在前台调用时,其实这些数据类型经过了转换器处理。下面的例子中,返回的datatable被一项一项添加到select上去了,其实我看了就 ......
在web开发中经常会碰到css样式的运用,我就在asp.net中运用样式进行了总结!
1、使用style属性设置样式
•
n实例
•Style属性设置
<asp:TextBox ID="TextBox1" runat="server"
style="background-color:Red; font-size:15px">
</asp:TextBox>
2、使用Cssclass属性设置 ......
第一步:
将某个页面的方法 有 webmethod attribute;
[WebMethod]
//只能是 public static 的方法
public static DateTime GetCurrentTime()
{
return DateTime.UtcNow;
}
第二步:
页面有一个ScriptManager 设置它的enablepagemethod=true;
asp:ScriptManager ID="Scri ......