Help regarding button click event
hi,
if i click button means i want exit from the webpage.what can i do.can i write
{
Response .Redirect("exit.aspx");
}
instead of the following coding?
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
Satyapriya NayakPosted Mar 29, 2012, 2:40 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebForm1" %>
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;
namespace checkboxlist_behaveradiobuttonlist
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("");
}
}
}
Thanks
If this post helps you mark it as answer
gokilavasan mPosted Mar 29, 2012, 2:53 AM