Just getting started

  1. #1

    Just getting started

    I installed EXT.bet via nuget in visula studio 2012 . When I drag a control onto an .aspx page it doesn't do anything.
    any ideas?
  2. #2
    nevermind, had to reinstall.. where is the documentation though? is there an api reference besides the examples?
  3. #3
    I keep answering my own questions.. Looks like the developer teams has the links on the bottom of their signatures.
  4. #4
    So much for that, when trying to view the API, keep getting page can't be displayed. Are the docs actually there or is it a working progress?
  5. #5
    Quote Originally Posted by ext128 View Post
    So much for that, when trying to view the API, keep getting page can't be displayed. Are the docs actually there or is it a working progress?
    I'm investigating the 404 on the http://docs.ext.net/ site. That should be working.

    EDIT: strange, they seem to be working now. Not sure what's going on with that site... investigating.

    The server-side API docs are just very basic though.

    The best place to start is the Examples Explorer (https://examples2.ext.net/).
    Geoffrey McGill
    Founder
  6. #6
    So can somome show me an example of how I would use the login example in combination with authenticating to active directory. Right now I have a <provider> setup in my web.config. I'm just a little confused as to integrate things. Even with the datareader examples, I want to buld queries requires depending on what they choose etc..Wish there some sample applications with source code out there. I'm a visual learner

    https://examples2.ext.net/#/Layout/FormLayout/Login/
  7. #7
    I used this guys code but he seemed to have an unanswered thread

    <!DOCTYPE html>
    
    <html>
    <head id="Head1" runat="server">
        <title>Simple Login Form with Ajax Submit - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
                
            <asp:Login ID="lgnControl" runat="server" EnableTheming="true" MembershipProvider="AspNetActiveDirectoryMembershipProvider">
            <LayoutTemplate>
                <ext:Window ID="LoginWindow" runat="server" Closable="false" Resizable="false" Height="150"
                    Icon="Lock" Title="Login" Draggable="true" Width="350" Modal="true" Layout="fit"
                    BodyBorder="false" Padding="5">
                    <Items>
                        <ext:FormPanel ID="frmLogin" runat="server" Border="false" Frame="true" BodyBorder="false"
                            BodyStyle="background:transparent;">
                            <Items>
                                <ext:TextField ID="Username" runat="server" FieldLabel="Username" AllowBlank="false"
                                    BlankText="Username is required." MsgTarget="Side" AnchorHorizontal="90%" EnableKeyEvents="true"
                                    EmptyText="enter username">
                                    <Listeners>
                                        <KeyPress Handler="if(e.getKey() == Ext.EventObject.ENTER){e.preventDefault(); #{txtPassword}.focus();}" />
                                    </Listeners>
                                </ext:TextField>
                                <ext:TextField ID="Password" runat="server" InputType="Password" FieldLabel="Password"
                                    AllowBlank="false" BlankText="Password is required." MsgTarget="Side" AnchorHorizontal="90%"
                                    EnableKeyEvents="true" EmptyText="enter password">
                                    <DirectEvents>
                                        <KeyPress OnEvent="Login_OnClick" Before="if(!#{frmLogin}.getForm().isValid() || !chkKeyPress(params[1])) return false;Ext.Msg.wait('Verifying...', 'Authentication'    );"
                                            Failure="Ext.Msg.show({
                                       title:   'Login Error',
                                       msg:     result.errorMessage,
                                       buttons: Ext.Msg.OK,
                                       icon:    Ext.MessageBox.ERROR
                                    });#{frmLogin}.reset();" />
                                    </DirectEvents>
                                </ext:TextField>
                            </Items>
                        </ext:FormPanel>
                    </Items>
                    <Buttons>
                        <ext:Button ID="btnLogin" runat="server" Text="Login" Icon="Accept">
                            <DirectEvents>
                                <Click OnEvent="Login_OnClick" Before="if(!#{frmLogin}.getForm().isValid()) return false;Ext.Msg.wait('Verifying...', 'Authentication'    );"
                                    Failure="Ext.Msg.show({
                               title:   'Login Error',
                               msg:     result.errorMessage,
                               buttons: Ext.Msg.OK,
                               icon:    Ext.MessageBox.ERROR
                            });#{frmLogin}.reset();">
                                    <EventMask MinDelay="250" />
                                    <ExtraParams>
                                        <ext:Parameter Name="ReturnUrl" Value="Ext.urlDecode(String(document.location).split('?')[1]).r || '/'"
                                            Mode="Raw" />
                                    </ExtraParams>
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                    </Buttons>
                </ext:Window>
            </LayoutTemplate>
        </asp:Login>
        </form>
    </body>
    </html>
    that gives this error:

    
    Parser Error 
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
    
    Parser Error Message: Cannot create an object of type 'System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' from its string representation 'false' for the 'BodyBorder' property.
    
    Source Error: 
    
    
    
    
    
    Line 28:         <asp:Login ID="lgnControl" runat="server" EnableTheming="true" MembershipProvider="AspNetActiveDirectoryMembershipProvider">
    Line 29:         <LayoutTemplate>
    Line 30:             <ext:Window ID="LoginWindow" runat="server" Closable="false" Resizable="false" Height="150"
    Line 31:                 Icon="Lock" Title="Login" Draggable="true" Width="350" Modal="true" Layout="fit"
    Line 32:                 BodyBorder="false" Padding="5">
  8. #8
    Well , I'm getting there.. starting to get hang of it. this worked below

       protected void Login1_Authenticate(object sender, DirectEventArgs e)
    {
                
        //We need to determine if the user is authenticated and set e.Authenticated accordingly
        //Get the values entered by the user
        string loginUsername = this.Username.Text;
        string loginPassword = Password.Text;
        string template = "<br /><b>LOGIN SUCCESS</b><br /><br />Username: {0}<br />Password: {1}";
        this.lblMessage.Html = string.Format(template, loginUsername, loginPassword);
        //determine if the user's username/password are valid
        if (Membership.ValidateUser(loginUsername, loginPassword)) {
            FormsAuthentication.SetAuthCookie(loginUsername, true);
            Response.Redirect("Default.aspx");
        }
        else {
            e.Success =false;
            
             
        }
    }
         
       </script>
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="loginhead" runat="server">
        <title>Login</title>
         
    </head>
    <body>
        <form id="form1" runat="server">
        
            <ext:Label ID="lblMessage" runat="server" />
                <ext:ResourceManager ID="ResourceManager1" runat="server">
                </ext:ResourceManager>
                    <ext:Window 
                ID="Window1" 
                runat="server" 
                Closable="false"
                Resizable="false"
                Height="150" 
                Icon="Lock" 
                Title="Login"
                Draggable="false"
                Width="350"
                Modal="true"
                BodyPadding="5"
                Layout="AnchorLayout">
                <Items>
                    <ext:TextField 
                        ID="Username" 
                        runat="server"                     
                        FieldLabel="Username" 
                        AllowBlank="false"
                        BlankText="Your username is required."
                        Text="Demo"
                        AnchorHorizontal="100%"
                        />
                    <ext:TextField 
                        ID="Password" 
                        runat="server" 
                        InputType="Password" 
                        FieldLabel="Password" 
                        AllowBlank="false" 
                        BlankText="Your password is required."
                        Text="Demo"
                        AnchorHorizontal="100%"
                         
                        />
                </Items>
                        <Buttons>
                            <ext:Button ID="LoginButton" ValidationGroup="Login1" runat="server" CommandName="Login1.Authenticate" Text="Login" Icon="Accept">
                                <DirectEvents>
                                   <Click OnEvent="Login1_Authenticate"></Click>
                                </DirectEvents>                     
                            </ext:Button>
                        </Buttons>
                    </ext:Window>
                
           
        </form>
    </body>
     
    </html>

Similar Threads

  1. Please modify getting started document
    By Mr.Techno in forum 1.x Help
    Replies: 1
    Last Post: Jun 23, 2011, 9:53 AM
  2. Getting Started Tutorials?
    By CtrlShiftF11 in forum 1.x Help
    Replies: 3
    Last Post: Nov 25, 2010, 6:38 PM
  3. Coolite Examples 0.8.2 (Getting Started)
    By zgers in forum 1.x Help
    Replies: 0
    Last Post: Aug 29, 2010, 7:41 AM
  4. Getting Started Basic Example
    By tarekahf in forum 1.x Help
    Replies: 3
    Last Post: Nov 09, 2009, 1:17 AM
  5. Replies: 0
    Last Post: Aug 16, 2009, 10:46 AM

Posting Permissions