[CLOSED] Server Error in '/' Application.

  1. #1

    [CLOSED] Server Error in '/' Application.

    Hi ..

    I have a single button in page, when i run the project it throwing error ( Specified argument was out of the range of valid values.
    Parameter name: index )
    ...plz solve my problem


    
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
       
        <ext:ResourceManager ID="ResourceManager1" runat="server" >
        
          
        </ext:ResourceManager>
           
        
      <ext:Button ID="Button1" runat="server" Text="Click" Icon="Accept" >
      </ext:Button>
      
        </form>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Aug 19, 2010 at 4:41 AM. Reason: [CLOSED]
  2. #2
    There has to more to your sample that you are not posting here. Are you doing anything in the code-behind?

    Here's a very simple sample which should run locally without any modifications.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    
    <script runat="server">
        protected void Button1_Click(object sender, DirectEventArgs e)
        {
            X.Msg.Notify("Message", this.TextField1.Text).Show();
        }
    </script>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Window 
                runat="server" 
                Title="Example"
                Padding="5"
                Height="215"
                Width="350">
                <Items>
                    <ext:TextField ID="TextField1" runat="server" FieldLabel="Item 1" />
                </Items>
                <Buttons>
                    <ext:Button runat="server" Text="Submit" OnDirectClick="Button1_Click" />
                </Buttons>
            </ext:Window>
        </form>
    </body>
    </html>
    Hope this helps.
    Last edited by geoffrey.mcgill; Aug 18, 2010 at 6:30 AM.
    Geoffrey McGill
    Founder
  3. #3
    im not doing any thing in code behind, just i want display Button on the screen...and one more thing recently i have got new .dlls....
    before i was working on old version of coolite.ext.net...
  4. #4
    Please Reply me..
  5. #5
    Hi,

    Your sample works fine with latest code. Please ensure that you use latest source code
    - update from SVN
    - rebuild assemblies
    - retest your sample
  6. #6
    ya its working...thank u for your quick reply..

Similar Threads

  1. Replies: 6
    Last Post: Mar 28, 2012, 11:05 AM
  2. Replies: 2
    Last Post: Oct 24, 2011, 3:43 PM
  3. Replies: 2
    Last Post: May 31, 2011, 4:47 PM
  4. Replies: 1
    Last Post: Jul 01, 2010, 7:09 AM
  5. Error when running a published application
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 18, 2008, 3:22 AM

Posting Permissions