This is a very good and simple sample, what are you working on though?

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<script runat="server">
    
    Protected Sub clicking(ByVal sender As Object, ByVal e As System.EventArgs)
        Response.Write("The condition CLICK ME has been satisfied.")
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml";>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <asp:Button runat="server" ID="btn" OnClick="clicking" Text="Click me" />
     </div>
    </form>
</body>
</html>


Juan M. Oviedo



> Date: Thu, 13 Aug 2009 02:31:32 -0700
> Subject: [DotNetDevelopment] Triggering Postback event
> From: [email protected]
> To: [email protected]
> 
> 
> Dear all,
> 
> Hi i want to trigger postback event in my webpage when certain
> condition is satisfied
> 
> please write me the code argent
> 
> thanks all

Reply via email to