PageRenderTime 12ms CodeModel.GetById 5ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/pigeoncms/Modules/PigeonCms.MembersAdmin/views/CreateNew.ascx

http://pigeoncms.googlecode.com/
ASP.NET | 51 lines | 41 code | 10 blank | 0 comment | 3 complexity | 602b76bfcdcf0b42f34bde55882428ae MD5 | raw file
 1<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CreateNew.ascx.cs" Inherits="Controls_CreateNew" %>
 2<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 3<%@ Register src="~/Controls/MemberEditorControl.ascx" tagname="MemberEditor" tagprefix="uc1" %>
 4<%@ Register Namespace="WebControlCaptcha" Assembly="WebControlCaptcha" TagPrefix="uc1" %>
 5
 6<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 7<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="1" AssociatedUpdatePanelID="Upd1">
 8    <ProgressTemplate>
 9        <div class="loading"><%=PigeonCms.Utility.GetLabel("LblLoading", "loading") %></div>
10    </ProgressTemplate>
11</asp:UpdateProgress>
12
13<script type="text/javascript">
14
15    function pageLoad(sender, args) {
16        $(document).ready(function () {
17
18            $('td.key').each(function () {
19                var hide = true;
20                var html = $(this).html();
21                if ($.trim(html) != '')
22                    hide = false;
23                if (hide)
24                    $(this).parent('tr').hide();
25            });
26        });
27    }
28 
29</script>
30
31<asp:UpdatePanel ID="Upd1" runat="server">
32<ContentTemplate>
33
34    <div class='itemTitle'>
35        <asp:Literal runat="server" ID="LitTitle"></asp:Literal>
36    </div>
37    <uc1:MemberEditor ID="MemberEditor1" runat="server" />
38    <uc1:captchacontrol id="CaptchaControl1" runat="server" 
39    Visible="false" Enabled="false"></uc1:captchacontrol>
40    
41    <br />
42    <asp:Button ID="BtnInsSave" runat="server" Text="<%$ Resources:PublicLabels, CmdConfirm %>" CssClass="button" OnClick="BtnSave_Click" />
43    <asp:Button ID="BtnInsCancel" runat="server" Text="<%$ Resources:PublicLabels, CmdCancel %>" CssClass="button" OnClick="BtnCancel_Click" />
44    
45    <br />
46    <br />
47    <asp:Label ID="LblErr" runat="server" Text="" CssClass="error"></asp:Label>
48    <asp:Label ID="LblOk" runat="server" Text="" CssClass="success"></asp:Label>
49
50</ContentTemplate>
51</asp:UpdatePanel>