码迷,mamicode.com
首页 >  
搜索关键字:compound page    ( 13110个结果
Cookies的读取、写入、有效期设置
protected void Page_Load(object sender, EventArgs e) { //设置Cookies HttpCookie cookie = new HttpCookie("UserName","ZhangSan"); ...
分类:其他好文   时间:2014-05-10 00:21:28    阅读次数:247
.net 文件下载
/** 输入参数* _Request: Page.Request 对象* _Response: Page.Response 对象* _fileName: 下载文件名* _fullPath: 带文件名下载路径* _speed 每秒允许下载的字节数* 返回是否成功*/public static bool...
分类:Web程序   时间:2014-05-09 20:25:04    阅读次数:537
asp.net解决:当前上下文中不存在名称“Session”
第一种方法:将使用session的类页面继承 System.Web.UI.Page类,方法:public class AddUser: System.Web.UI.Page第二种方法:在page里可以直接用Session,但是在非page里面是需要通过下面的方式使用:HttpContext.Curr...
分类:Web程序   时间:2014-05-09 09:52:38    阅读次数:360
ADO.NET连接数据库
using System.Data;using System.Data.Sql;using System.Data.SqlClient; protected void Page_Load(object sender, EventArgs e) { SqlConn...
分类:数据库   时间:2014-05-09 04:01:32    阅读次数:388
页面与母版页面的asp:ContentPlaceHolder不匹配
问题描述:The page has one or more controls that do not correspond with controls in the Master Page解决办法:删除母版页中的大量的注释
分类:Web程序   时间:2014-05-08 23:45:26    阅读次数:400
100-The 3n + 1 problem
本文档下载题目:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=361 The 3n + 1 problemTime limit: 3.000 seconds...
分类:其他好文   时间:2014-05-08 18:01:26    阅读次数:427
在Asp.Net MVC中PartialView与EditorFor和DisplayFor的区别
相同之处:PartialView, EditorFor 和 DisplayFor 都可以用作来实现页面的公共部分,其他页面可以根据需求来引用。不同之处:PartialView 是从Page的角度来处理,因此主 Page 和 PartialView 一般用相同的Model,这样做可以实现Partial...
分类:Web程序   时间:2014-05-08 17:53:32    阅读次数:541
Tomcat8访问管理页面localhost出现:403 Access Denied
问题: 403 Access DeniedYou are not authorized to view this page.If you have already configured the Manager application to allow access and you have used...
分类:数据库   时间:2014-05-08 09:12:05    阅读次数:570
10个devexpress ASPxPivotGrid常见问题
原文: 10个devexpress ASPxPivotGrid常见问题 1、DXperience ASPxGridView如何开启lightweight模式描述:ASPxGridView样式主题中page render mode选项里面有 lightweight模式,要如何开启此模式?解答:目前AS...
分类:Web程序   时间:2014-05-08 01:28:45    阅读次数:764
普通按钮的另一种提交方式(调用后台事件)
后台: protected void ibtnRegedit_Click(object sender, ImageClickEventArgs e) { if (!Page.IsValid || !CheckVCode()) retu...
分类:其他好文   时间:2014-05-08 00:44:32    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!