asp.net跨页投递
1.TextBox txt=(TextBox)PreviousPage.FindControl("TextBox1");
2.在页面注册投递页的属性
<%@ PreviousPageType VirtualPath="crouspostPage.aspx" %>
在crouspostPage.aspx的代码隐藏类中添加
public TextBox TextBox1
{
get(return _textbox);
}
在页面中Response.Write(PreviousPage.TextBox1.Text);
检测跨页投递
if(PreviousPage==null)
{
Response.Weite("sorry,This`s wrong way to invoke me");
Response.End();
return;
}
/////////如果从地址栏输入以下则会抛出异常
if(!PreviousPage.IsCrossPagePostBack)
{
......
}
///在目标页中,测试PreviousPage属性上的IsValid属性,并在答案否定的情况下中止请求
if(!PreviousPage.IsValid)
{
Response.Weite("sorry,This`s wrong way to invoke me");
Response.End();
return;
}
相关文档:
² Oracle9i的安装,请参照官方的安装说明。
² Oracle9i安装成功以后,使用管理员(用户名:sys、密码:sys)的身份登录进去,创建一个用户ddymis,密码:ddymis,角色默认赋予dba。
² ......
获取 ASP.NET 提供的当前 Session 对象 ( HttpSessionState 类 )。该属性提供有关当前请求的会话的信息。为从 ASP.NET 应用程序请求页或文档的每个用户维护一个 Session 对象。当用户在应用程序中从一页移动到另一页时,存储在 Session 对象中的变量不会被放弃;相 ......
12 ASP.NET MVC Best Practices
M
DomainModel != ViewModel
Use ActionFilters for “shared” data
V
Do NEVER user code-behind
Write HTML each time you can
If there is an if, write an HtmlHelper
Choose your view engine carefully
C
Delete the AccountController
Isolate Controllers fro ......
最近想研究下web service,奈何找遍网络,都是讲些定义性的东西,泛泛而谈,我看的一知半解,不得要领。不过今天总算有点收获,写了 个小的web service例子,就是判断一个数是不是质数。还是老话,给大家起抛砖引玉的作用,只是给大家讲解如何开发最简单的web service程序 。只要入了门槛,以后的路就可以自己走了。
第一, ......
http://blog.csdn.net/chengking/archive/2005/10/27/518079.aspx
(一).选择会话状态存储方式
在Webconfig文件配置:
<sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString ......