Jul 28, 2011, 6:22 AM
How to Disable and enable the one Div on ext:button Click
Hello i am giving sample code for that please help me
.aspx page
.vb page
.aspx page
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Sample.aspx.vb" Inherits="PasswordExtnetAll_Sample" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Sample</title>
</head>
<body>
<ext:ResourceManager ID="de1" runat ="server" ></ext:ResourceManager>
<form id="form1" runat="server">
<div id="divChangePass" runat="server">
<p>
If you have forgotten your
password, type your name in the boxes and click the submit button. Your password
will be sent to your email address.</p>
</div>
<div id="divMemberApproval" runat="server" visible="false">
<p>
To change your
password, please type your current password and your new password. Your new password
must be (8-12 characters).
</p>
</div>
<ext:Button ID ="test" runat ="server" Text ="test"></ext:Button>
<%--<asp:Button ID ="test" runat ="server" Text ="test"></asp:Button>--%>
</form>
</body>
</html>
.vb page
Imports Ext.Net
Partial Class PasswordExtnetAll_Sample
Inherits System.Web.UI.Page
Protected Sub test_DirectClick(ByVal sender As Object, ByVal e As Ext.Net.DirectEventArgs) Handles test.DirectClick
divChangePass.Disabled = True
divMemberApproval.Disabled = False
End Sub
End Class
Last edited by paddy; Aug 01, 2011 at 8:05 AM.
Reason: code