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

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;
}


相关文档:

Asp.net打包安装

 一).创建部署项目
1. 在“文件”菜单上指向“添加项目”,然后选择“新建项目”。
2. 在“添加新项目”对话框中,选择“项目类型”窗格中的“安装和部署项目”,然后选择“模板”窗格中的“安装项目”。在“名称”框 ......

循环为TextBox赋值 (asp.net C#)

 注意:
在使用FindControl时,一定要在最贴近查找对象的外边加上个容器,如果你直接用this.FindControl,或Page.FindControl那么就会经常出现未将对象设置到实例
的错误,所以最好加一个容器,那么这里加的DIV就是一个容器,为了让FindControl在ID为"TextBoxs"的DIV内去找名为com1,com2,com3的TextBOx;
<div ......

asp.net Fckeditor配置

一。下载导入项目
(1)首先到http://ckeditor.com/download下载FCKeditor 2.6.5,和FCKeditor.Net 2.6.3,
然后解压这两个文件夹
FCKeditor编辑器,得到文件夹fckeditor,复制此文件夹到Web应用的项目下(也可以是子孙目录下)。
解压FCKeditor控件,在其子目录bin/Release/2.0下有一个程序集。在Web应用的项目中引用该 ......

ASP.NET页面刷新方法总结

先看看ASP.NET页面刷新的实现方法:
第一:
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } 第二:
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.locatio ......

ASP.NET实现从数据库中读取图片的方法

在ASP.NET中,我们可以用下面的方法实现从数据库中读取图片并显示在页面上,方法如下:
      SqlConnection conn=new SqlConnection(ConfigurationSettings.AppSettings["ConnStr"]);
      String sql="SELECT  image from append where id='" + strID + "'";
&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号