Article: Redirect to another Page with Parameters in ASP.Net using C# and VB.Net
I have a label called houselbl I want to pass that as a parameter in the redirect statement.
So on my properties_detail page I have a button called aspxbutton1
in the Properties_detail.aspx.cs page
I have a command called aspxbutton1_click
my code:
namespace DXApplication1
{
public partial class Properties_Detail : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ASPxButton1_Click(object sender, EventArgs e)
{
string name = Request.QueryString["id"];
Response.Redirect(string.Format("scheduler.aspx?id={id}"));
}
}
}