protected void ButtonCancel_Click(object sender, EventArgs e)
{
Response.Redirect(\"~/Logon.aspx\");
}
this is not workin
Do you have form tag in master page or this page?
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="WebApplication2.About" %>
<%: Title %>.
Your application description page.
Use this area to provide additional information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication2
{
public partial class About : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_ServerClick(object sender, EventArgs e)
{
Response.Write("hello");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Write("hello");
}
}
}
Master page
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication2.SiteMaster" %>
<%: Page.Title %> - My ASP.NET Application
<%: Scripts.Render("~/bundles/modernizr") %>