new 完之后的page的类
怎么弹出来?redirect这会不行了
怎么弹出来?redirect这会不行了
解决方案 »
- 弱弱的问下关于一个textbox的问题 ...
- 小弟学习C#,请问如何学习.net类库,使得能够对类结构以及很好的使用类有一个完整的概念
- 急```C#下载问题
- session 丢失的问题
- 推荐一个能用web下画树型图的组件,分都给他了
- ASP.NET如何计算当前WEB程序占用了多少内存??
- sql2005在线恢复bak的存储过程?
- c# datagridview 用代码选中的checkbox
- 我快晕过去了,在生成新的Com时候,明明就是Visual Studio .NET自己打开了,却说时别人
- 为什么我的C#程序按F5调试后,就不能再弹出"属性"窗口?
- c#可以用vc中*.lib中的函数吗?
- 如何禁用Tab键的功能!!
{
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.Button Button1;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion private void Button1_Click(object sender, System.EventArgs e)
{
}
}//////////////////////////////////////////////////////////////////////////////
//Default.aspx.cs private void Button1_Click(object sender, System.EventArgs e)
{
WebForm1 wf = new WebForm1();
// then do what????????????????????
// ?????????????????
}
Page.RegisterStartupScript("script", "<script>window.open('b.aspx');</script>")
<%@ Page Buffer ="false" language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="*****.WebFom1" %>
*****//为你的工程名或者是解决方案的名称
然后调用Response。redirect("1。aspx");
就行了阿