help i cant use two asp.net button and one asp.net post act
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Food1.aspx.cs" Inherits="Food1" %>
Untitled Page
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class fdd : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Test.aspx");
}
}
Both buttons onclick redirects to https://test.switch.com .i want button two to redirect to Test.aspx
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class fdd : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Test.aspx");
}
}
Both buttons onclick redirects to https://test.switch.com .i want button two to redirect to Test.aspx
Jithil JohnPosted Sep 22, 2015, 6:52 AM
{
Response.Redirect("http://www.test.switch.com");}emma ojPosted Sep 22, 2015, 6:48 AM
emma ojPosted Sep 22, 2015, 6:42 AM
Raghavendra UPosted Sep 22, 2015, 12:54 AM
Jithil JohnPosted Sep 22, 2015, 12:46 AM
Raja TPosted Sep 21, 2015, 9:46 PM