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

ASP.NET 编译和部署

项目和网站的区别
项目编译成dll,网站通过“发布网站”来部署
部署目的地:/bin目录下
7个顶级目录及其编译情况
三种部署方式及其程序集生成情况  (程序集影子拷贝)
定制程序集生成:
<compilation>
<codeSubDirectories>
<add directoryName="vb_components"/>
<add directoryName="cs_components"/>
<add directoryName="wsdl-files"/>
<add directoryName="xsd-files"/>
</codeSubDirectories>
</compilation>
利用App_Code目录 部署自定义数据源类 的应用示例
数据源类:
namespace EssentialAspDotNet.Architecture
{
public static class MyDataSource
{
static string[] _items =
{"Item #1", "Item #2", "Item #3", "Item #4",
"Item #5", "Item #6", "Item #7", "Item #8",
"Item #9", "Item #10"};
public static string[] GetItems()
{
return _items;
}
}
}
前台页:
<body>
<form runat="server" id="_form">
<h1>Test ASP.NET 2.0 Page with declarative data binding</h1>

<asp:BulletedList runat="server" ID="_displayItems"
DataSourceID="_itemsDataSource">
<asp:ListItem>Sample item 1</asp:ListItem>
<asp:ListItem>Sample item 2 ...</asp:ListItem>
</asp:BulletedList>

<h2 runat="server" id="_messageH2">Total number of items = xx</h2>

<asp:ObjectDataSource runat="server" ID="_itemsDataSource"
TypeName="EssentialAspDotNet.Architecture.MyDataSource"
SelectMethod="GetItems" />
</form>
</body>


相关文档:

Bind和Eval的不同用法 (asp.net C#)

今天在用DataList的模板列的时候习惯性地像在03中那样去给模板列的绑定字段加个处理函数:
 < asp:Label ID = " Label1 " runat = " server " Text = ' <%#ConvertState(Bind("Status"))%> ' ></ asp:Label >
     可是竟然出错:当前上下文中不存在名称“Bind” ......

学习Asp.Net的一些问题

刚毕业,最近在搞毕业论文。
说起毕业论文我就头疼,我们三人一组,本来我主张用C#写,套用一个外国的模型BalloonShop在线购物网站,C#是自学的。但是同组的一个同学VB学得不错,要用VB。我想你要用VB写的话我是不太懂,那只能你自己写好了,我最多也就搭把手而已,省心了,何乐而不为呢!
最后作品做出来还算不错,就 ......

ASP.NET 2.0个性化配置(profile)

为每个用户存储配置信息 以前保存用户配置信息时用到的是session和cookie。 session会话结束,保存的个人信息就会丢失,而cookie在一定程度上存在安全隐患
asp.net 2.0引入的profile技术 可以很好的解决该问题。
强类型 长期保存 支持匿名用户
定义配置(profile)
<?xml version="1.0"?>
<c ......

ASP.NET使用无Cookie的表单认证票据

ASP.NET
使用无Cookie的表单认证票据
默认情况下,forms authentication system将决定是将票据存储在cookies
collection里还是插入用户访问页面的URL里。所有主流的桌面浏览器,比如Internet
Explorer,Firefox,Opera,或Safari都支持cookies,但并非所有的移动设备都支持。
forms authentication system使用何种co ......

vs2005不能调试ASP.NET程序

解决方法:
1.看看你的Terminal Services服务启动没有,如果没有启动就可以解决问题。
2确认  Machine  Debug  Manager  服务已启动
3、打开项目属性,在“Debug”(调试)一项里,把“Enable the Visual Studio hosting process”(启用Visual Studio 宿主进程)前的钩去掉。
4. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号