通过a.aspx页面的按钮 弹出了b.aspx页面,并把b.aspx页面的数组想传到a.aspx,用什么方法比较好?
解决方案 »
- 关于在VS2010中建立WPF用户控件库
- c#操作excel怎么插入特殊符号?
- C# winform 登陆网站
- 系统有将一个string[]中从第n个元素复制到第m个元素到另一个string[]中吗?
- C# 部署webservice如何自己制定ip地址和端口号。
- 数组问题:在一个数组中要自动选择出重复的值,只显示不重复的值,麻烦各位
- 帮我帮我看下面的主题
- 请教:String.Format(string format,object arg0)中的format如果有{或}就会出错,有办法吗?
- 在 C# 窗口应用程序中要加入 License 授权才能使用的方法
- 关于treeview显示的问题
- com组件的问题
- 请问各位,做一个类似msn的工具大致需要多少时间...
还可以使用js来传递。
Sessin["ob"] = 数组;取值:
if(Session["ob"] == null || Session["UserID"] == "")
{
object = Session["ob"];
Session.Remove("ob");
}
比如一个id的话 你可以用response.redirct=b.aspx?id=2323这样的方法来做的啊
比较麻烦的数据 那就就Session来做
ViewState好象不可以的吧 ,只能在一个页面 里面做的,跳转了页面 怎么 还可以用 ViewState
document.parentwindow....
ViewState
你只要不把.net FrameWork全部放进去就没问题
public class a : System.Web.UI.Page
{
public Page_Load()
{
}
public string[] arytest
{
get
{
//Add code here.
}
} private void Button1_Click(object sender, System.EventArgs e)
{
window.open("b.aspx");
}
}b.aspx:
public class b : System.Web.UI.Page
{
public Page_Load()
{
if (!IsPostBack)
{
a clsa = (a)Context.Handler;
string[] arytest = clsa.arytest;
}
}
}