2008-05-17 00:50
1,web.config文件中添加
<compilation>
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
2.将aspx文件重写成shtml,htm等 |
2008-05-12 22:25
cookie中存储一个信息
比如我们建立一个名为aspxcn,值为刘强的cookie
HttpCookie myCookie = new HttpCookie("aspxcn");
myCookie.Value = "刘强";
Response.AppendCookie(myCookie);
取出这个cookie的方法
HttpCookie mycook = Request.Cookies["aspxcn"];
|
2008-05-08 17:25
这主要得益于近几天基金净值的增加.
俺省吃俭用几年就存了这么一点...
这点钱够在北京干啥的.五环内一平米都买不到.
只要我四个月不工作,就没了
留着娶媳妇更不够了,明还是继续网上投简历找工作去... |
2008-04-27 14:57
class Program
{
static void Main(string[] args)
{
int[] sortArry ={ 0, 5, 6, 2, 1 };
for (int i = 0; i < sortArry.Length; i++)
|
2008-04-25 15:01
前台页面代码
<asp:DataList ID="DataList1" runat="server" Width="100%" OnItemDataBound="DataList1_ItemDataBound">
<HeaderTemplate>
<table width="100%" border="0" cellpadding="3">
|
2008-04-23 21:29
2008-04-16 15:53
最近购买了一个NET2.0的虚拟主机,开开心心的把刚做好的网站传了上去,运行后却出了一个令人十分头痛的问题,cookies莫名其妙的提前过期,部分页面不定时的出现MAC验证失败,可是程序在本地运行一切正常啊,于是怀疑服务器设置有问题,在与虚拟主机提供商几次电话之后(都快吵起来了)他们决定给我重新更换一台服务器,换完之后,上传程序,问题依旧,与此同时我也可以确定,我的程序绝对是没有问题的,后来上网一搜,有很多讲MAC验证视图状态失败的解决方法都是在页里或web.config里加EnableEventValidation="false" Enab |
2008-04-14 17:40
<?xml version="1.0"?>
<!--
注意: 除了手动编辑此文件以外,您还可以使用
Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
“网站”->“Asp.Net 配置”选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于
\Windows\Microsoft.Net\Framework\v2.x\Config 中
--> |
2008-04-11 15:13
模板列里加入一个Image控件,然后ItemDataBound事件里加
protected void Repeater2_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
for (int i = 0; i <Repeater2.Items.Count; i++)
{
if (i<3)
{
|
2008-04-10 14:05
aspx页面代码
<head runat="server">
<%-- <title>蓝海传媒</title>--%>
<asp:Literal ID="ltPageTitle" runat="server"/>
<asp:Literal ID="ltPagekeywords" runat="server" />
<asp:Literal ID="ltPagedescription" runat="server" />
<link href="css/style.css" rel="stylesheet" type="text/css |
|
|
honghu3000
男, 25岁
北京 海淀区
上次登录: 4天前
加为好友
|