How to Disable and enable the one Div on ext:button Click

  1. #1

    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

    <%@ 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
  2. #2
    Hi,

    Please edit the code samples wrapping them in [CODE ] tags, see #3:
    Forum Guidelines For Posting New Topics

Similar Threads

  1. Replies: 2
    Last Post: Sep 27, 2011, 1:49 PM
  2. Button Disable/Enable issue
    By paddy in forum 1.x Help
    Replies: 3
    Last Post: Jul 26, 2011, 8:28 AM
  3. Replies: 6
    Last Post: Sep 20, 2010, 2:48 PM
  4. Button Enable/Disable
    By Maia in forum 1.x Help
    Replies: 5
    Last Post: Jul 02, 2010, 8:03 PM
  5. Enable or disable the button
    By VietView in forum 1.x Help
    Replies: 4
    Last Post: Jan 09, 2009, 11:59 AM

Posting Permissions