I have undersand the usage of the message box at the server side.Thank you.Since I am willing to make if for the client side,the following is my coding.But why it is not functioning?Is it my computer is the server while running the ASP.net and thus I can't see the messagebox that should appearat the client side.If so what can I do?
<%@ Page Language="
vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.
vb" Inherits="asian.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<script type="text/javascript">
function confirmDelete(){
var x=("Are you sure want to do this?");
if(x){ return true; } else{ alert("Delete cancelled"); return false; } }
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:label id="lbl1" style="Z-INDEX: 101; LEFT: 19px; POSITION: absolute; TOP: 18px" runat="server"
Height="19px" Width="160px">Enter Your Name</asp:label><asp:textbox id="txtName" style="Z-INDEX: 102; LEFT: 24px; POSITION: absolute; TOP: 56px" runat="server"
Width="216px" MaxLength="30"></asp:textbox><asp:label id="lbl2" style="Z-INDEX: 103; LEFT: 24px; POSITION: absolute; TOP: 104px" runat="server"
Height="32px" Width="224px"></asp:label><asp:button id="ok" style="Z-INDEX: 104; LEFT: 40px; POSITION: absolute; TOP: 176px" runat="server"
Width="80px" Text="ok"></asp:button><asp:button id="BtnExit" style="Z-INDEX: 105; LEFT: 168px; POSITION: absolute; TOP: 176px" runat="server"
Height="24px" Width="112px" Text="Exit" CausesValidation="False"></asp:button></form>
</body>
</HTML>