The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

All DirectEvents Is Error?

Page 1 of 2 12 LastLast
  1. #1

    All DirectEvents Is Error?

    I met a strange question.
    All of the Development environment is correct, after publishing to IIS and found that all the errors of all the Ajax way and All DirectEvents and return is: Status Code: 200

    But also through the firebug difference lies in that: the right to return is a Json request string, and returns the error turned out to be the whole page source code.

    Someone can help me,Thanks!


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Web._Default" %>
    
    <%@ 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" CleanResourceUrl="false" />
        <ext:Window ID="Window1" runat="server" Width="300" Title="Login" Icon="ApplicationHome"
            AutoHeight="true" Closable="false" Padding="5" Layout="Form" LabelWidth="65"
            LabelAlign="Right">
            <Items>
                <ext:TextField ID="txtLoginName" runat="server" FieldLabel="UserName" Width="170" TabIndex="1">
                </ext:TextField>
                <ext:TextField ID="txtPassword" runat="server" FieldLabel="Password" InputType="Password"
                    Width="170" TabIndex="2">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" runat="server" Text="Login">
                    <DirectEvents>
                        <Click OnEvent="btnLogin_Click"></Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        </form>
    </body>
    </html>
    public partial class _Default : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                if (!Page.IsPostBack)
                {
                }
            }
    
            protected void btnLogin_Click(object sender, EventArgs e)
            {
                string strUrl = string.Empty;
                try
                {
                    TbUserEntity entity = new UserService().Login(txtLoginName.Text.Trim());
                    if (entity != null && entity.PassWord.Equals(StringHelper.PasswordMD5(txtPassword.Text.Trim())))
                    {
                        FormsAuthenticationTicket Ticket = null;
                        Ticket = new FormsAuthenticationTicket(1, entity.LoginName, DateTime.Now, DateTime.Now.AddHours(2), false, JSON.Serialize(entity), FormsAuthentication.FormsCookiePath);
                        string HashTicket = FormsAuthentication.Encrypt(Ticket);
                        HttpCookie UserCookie = new HttpCookie(FormsAuthentication.FormsCookieName, HashTicket);
                        UserCookie.HttpOnly = true;
                        UserCookie.Path = FormsAuthentication.FormsCookiePath;
                        UserCookie.Expires = Ticket.Expiration;
    
                        Response.Cookies.Add(UserCookie);
    
                        if (Request["ReturnUrl"] != null)
                        {
                            strUrl = Context.Request["ReturnUrl"];
                        }
                        else
                        {
                            strUrl = "Main.aspx";
                        }
                    }
                    else
                    {
                        X.Msg.Alert("Error", "Faile!").Show();
                    }
                }
                catch (Exception ex)
                {
                    LogHelper.ErrorLog.Error("Error", ex);
                }
                if (strUrl != string.Empty)
                {
                    Response.Redirect(strUrl);
                }
            }
        }
    Attached Thumbnails error.jpg   error1.jpg   return.jpg  
    Last edited by nanlinfeixue; Jun 07, 2011 at 8:12 AM.
  2. #2
    Hi,

    Please post response text (you can get it from Fiddler or Firebug)
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    The correct response:
    {serviceResponse:{success:true,data:{data:[{"Id":13,"AgentName":"厦门巨鹏飞集团有限公司","ReceiveAddress":"思明区观音山商业街17号","Consigner":"陈经理","Phone":null,"State":1},{"Id":12,"AgentName":"厦门长塑实业有限公司","ReceiveAddress":"厦门市海沧区翁角路268号","Consigner":"陈小姐","Phone":null,"State":1},{"Id":11,"AgentName":"厦门市观音山物业服务有限公司","ReceiveAddress":"厦门市思明区塔埔东路161号3F","Consigner":"李小姐","Phone":null,"State":0},{"Id":10,"AgentName":"厦门金利航国际货运有限公司","ReceiveAddress":"厦门湖里竹坑路8号深汇大厦1204室","Consigner":"陈毅红","Phone":null,"State":1},{"Id":9,"AgentName":"厦门麦秸软件有限公司","ReceiveAddress":"厦门软件园二期望海路15号301单元","Consigner":"汪小姐","Phone":null,"State":1},{"Id":8,"AgentName":"厦门峻巢房地产代理有限公司","ReceiveAddress":"厦门市思明区新华路65号之112峻巢地产","Consigner":"利小姐","Phone":null,"State":1},{"Id":7,"AgentName":"厦门欣生科技有限公司","ReceiveAddress":"厦门蔡塘4组叶云峰厂房2楼","Consigner":"王小姐","Phone":null,"State":1},{"Id":6,"AgentName":"福建豪氏威马钢铁制品有限公司","ReceiveAddress":"漳州招商局中银开发区招商大道48号","Consigner":"傅小姐","Phone":null,"State":1},{"Id":5,"AgentName":"厦门翰林彩印有限公司","ReceiveAddress":"厦门市集美区杏北中宛路一号","Consigner":"人事","Phone":null,"State":1},{"Id":4,"AgentName":"厦门洁尔保洁服务有限公司 ","ReceiveAddress":"厦门市思明区龙翔路13号","Consigner":"保洁","Phone":null,"State":0},{"Id":3,"AgentName":"东南融通","ReceiveAddress":"厦门市软件园生产基地望海路64号","Consigner":"融通","Phone":null,"State":1},{"Id":2,"AgentName":"美亚柏科","ReceiveAddress":"厦门市软件元素生产基地观日路12号","Consigner":"美美亚亚","Phone":null,"State":1},{"Id":1,"AgentName":"厦门书生","ReceiveAddress":"厦门市软件园生产基地观日路28号","Consigner":"书生","Phone":null,"State":1}], total: 13}}}
    but publish to IIS I g0t the error response:
    
    
    <!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>
        <title>代理商信息管理</title>
        <script type="text/javascript">
            var GridState = function(value) {
            var template = '<span style="color:{0};">{1}</span>';
                if(value == 0)
                    return String.format(template, "red", "停用");
                else
                    return String.format(template, "block", "有效");
            }
            function UpdateGrid() {
                AgentForm.getForm().updateRecord(AngentInfoGrid.getSelectionModel().getSelected());
            }
        </script>
    </head>
    <body>
        <form name="Form1" method="post" action="AgentInfo.aspx?_dc=1307433405344" id="Form1">
    <div>
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE5MTg5MzIyMzAPZBYCAgEPZBYEAgMPFCoSU3lzdGVtLldlYi5VSS5QYWlyAQ8FCXZzTWVtYmVycxQrAAEPBQZSZWFkZXIUKwQBDwUEYmFzZRYCHgpJRFByb3BlcnR5BQJJZGQCBQ9kFgRmD2QWBgIBD2QWBmYPZBYMZg9kFgJmDxYCHgVjbGFzcwUIeC1oaWRkZW5kAgEPFCsEAQ8FBGJhc2UPFgIeCFJhd1ZhbHVlZWQWAmYPFgIfAQUIeC1oaWRkZW5kAgIPZBYCZg8WAh8BBQh4LWhpZGRlbmQCAw8UKwQBDwUEYmFzZQ8WAh8CZWQWAmYPFgIfAQUIeC1oaWRkZW5kAgQPZBYCZg8WAh8BBQh4LWhpZGRlbmQCBQ8WAh8BBQh4LWhpZGRlbmQCAQ9kFgpmD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgEPFCsEAQ8FBGJhc2UPFgIfAmVkFgJmDxYCHwEFCHgtaGlkZGVuZAICD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgMPZBYCZg8WAh8BBQh4LWhpZGRlbmQCBA8WAh8BBQh4LWhpZGRlbmQCAg8WAh8BBQh4LWhpZGRlbmQCAw9kFgZmD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgEPFCsEAg8FBGJhc2UPFgQfAgUCMjAeDVNlbGVjdGVkSW5kZXgCAWQPBQl2c01lbWJlcnMUKwACDwUMU2VsZWN0ZWRJdGVtFCsEAQ8FBGJhc2UWBB4FVmFsdWUFAjIwHgRUZXh0BQIyMA8FBUl0ZW1zDwIEFCsABBQrBAEPBQRiYXNlFgQfBQUCMTAfBAUCMTAUKwQBDwUEYmFzZRYEHwUFAjI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Gg5aX5hNJCJzHowqWg==" />
    </div>
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['Form1'];
    if (!theForm) {
        theForm = document.Form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
    
    
    <div>
    
    	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAgLLo6+BAQLk1euHDhKXLX7R0NumeLSvJdzZqG09N1jQ" />
    </div>
        
        </form>
    	<link rel="stylesheet" type="text/css" href="/extjs/resources/css/ext-all-embedded-css/ext.axd?v=33461" />
    
    	<script type="text/javascript" src="/extjs/adapter/ext/ext-base-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extjs/ext-all-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extnet/extnet-core-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extjs/locale/ext-lang-zh-CN-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extnet/extnet-data-js/ext.axd?v=33461"></script>
    	<script type="text/javascript">
    	//<![CDATA[
    		Ext.net.ResourceMgr.init({id:"ResourceManager",BLANK_IMAGE_URL:"/extjs/resources/images/default/s-gif/ext.axd",aspForm:"Form1",theme:"blue",icons:["Zoom"]});Ext.onReady(function(){Ext.QuickTips.init();this.AgentInfoStore=new Ext.net.Store({proxyId:"AgentInfoStore",autoLoad:true,proxy:new Ext.net.PageProxy({}),reader:new Ext.data.JsonReader({fields:[{name:"Id",type:"int"},{name:"AgentName",type:"string"},{name:"State",type:"int"},{name:"ReceiveAddress",type:"string"},{name:"Consigner",type:"string"},{name:"Phone",type:"string"}],idProperty:"Id"}),directEventConfig:{}});new Ext.net.Viewport({id:"ProductTypeViewport",renderTo:"Form1",items:[{id:"AngentInfoGrid",xtype:"netgrid",margins:"3 0 3 3",region:"center",split:true,bbar:{id:"PageBar",xtype:"paging",stateId:"AgentInfoStore",items:[{id:"ctl18",xtype:"tbseparator"},{id:"CBPageSize",xtype:"combo",labelWidth:60,fieldLabel:"页面大小",width:110,value:"20",rawValue:"20",displayField:"text",hiddenName:"CBPageSize_Value",mode:"local",queryDelay:10,triggerAction:"all",valueField:"value",store:new Ext.data.SimpleStore({fields:["text","value"],data :[["10","10"],["20","20"],["50","50"],["100","100"]]}),submitValue:true,listeners:{select:{fn:function(item,record,index){PageBar.pageSize = parseInt(this.getValue()); PageBar.doLoad();}}}}],displayInfo:true},tbar:{id:"TBarSearch",xtype:"toolbar",items:[{id:"TBar1",xtype:"toolbar",items:[{id:"ctl00",xtype:"tbseparator"},{id:"Filter_AgentName",xtype:"textfield",labelWidth:65,fieldLabel:"代理商名称",width:200,rawValue:""},{id:"ctl03",xtype:"tbseparator"},{id:"Filter_Consigner",xtype:"textfield",labelWidth:65,fieldLabel:"收货人姓名",width:150,rawValue:""},{id:"ctl06",xtype:"tbseparator"}]},{id:"TBar2",xtype:"toolbar",items:[{id:"ctl09",xtype:"tbseparator"},{id:"Filter_ReceiveAddress",xtype:"textfield",labelWidth:65,fieldLabel:"收货人地址",width:358,rawValue:""},{id:"ctl12",xtype:"tbseparator"},{id:"BtnSearch",cls:"x-btn-text-icon x-btn-over",iconCls:"icon-zoom",text:"查 询",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.net.DirectEvent.confirmRequest({control:this});},delay:20}}}]}],layout:"auto"},title:"代理商信息",autoExpandColumn:"AgentName",loadMask:{showMask:true},sm:this.RowSelectionModel=new Ext.grid.RowSelectionModel({proxyId:"RowSelectionModel",singleSelect:true,listeners:{rowselect:{fn:function(item,rowIndex,record){AgentForm.getForm().loadRecord(this.getSelected())}}}}),store:AgentInfoStore,selectionMemory:false,cm:this.ctl17=new Ext.grid.ColumnModel({proxyId:"ctl17",columns:[new Ext.grid.RowNumberer({}),{dataIndex:"Id",header:"Id",hidden:true,id:"Id"},{dataIndex:"AgentName",header:"代理商名称",id:"AgentName",width:150},{dataIndex:"State",header:"当前状态",renderer:GridState,width:75},{dataIndex:"Consigner",header:"收货人",width:75},{dataIndex:"Phone",header:"联系电话",width:90},{dataIndex:"ReceiveAddress",header:"收货地址",width:300}]})},{id:"AgentForm",xtype:"form",defaultAnchor:"100%",labelWidth:60,margins:"3 3 3 0",region:"east",split:true,width:300,items:[{id:"Form_Id",xtype:"hidden",dataIndex:"Id",value:"",rawValue:""},{id:"Form_AgentName",xtype:"textfield",disabled:true,fieldLabel:"代理商名",dataIndex:"AgentName",rawValue:""},{id:"Form_State",xtype:"combo",fieldLabel:"当前状态",dataIndex:"State",rawValue:"",displayField:"text",hiddenName:"Form_State_Value",mode:"local",queryDelay:10,triggerAction:"all",valueField:"value",store:new Ext.data.SimpleStore({fields:["text","value"],data :[["停用","0"],["有效","1"]]}),submitValue:true},{id:"Form_Consigner",xtype:"textfield",fieldLabel:"收 货 人",dataIndex:"Consigner",rawValue:"",allowBlank:false},{id:"Form_Phone",xtype:"numberfield",fieldLabel:"联系电话",dataIndex:"Phone",rawValue:"",allowBlank:false},{id:"Form_ReceiveAddress",xtype:"textarea",fieldLabel:"收货地址",dataIndex:"ReceiveAddress",rawValue:"",allowBlank:false}],buttonAlign:"center",buttons:[{id:"BtnSave",xtype:"button",text:"保 存",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.net.DirectEvent.confirmRequest({eventMask:{showMask:true,msg:"正在执行保存操作,请稍后??"},userSuccess:function(response,result,el,type,action,extraParams,o){UpdateGrid();},control:this});},delay:20}}}],collapsible:true,padding:10,title:"代理商详细信息",renderFormElement:false,url:"/Admin/Agent/AgentInfo.aspx?_dc=1307433405344"}],layout:"border"});});
    	//]]>
    	</script>
    
    </body>
    </html>
  4. #4
    Hi,

    What IIS do you use? If you use IIS7 then you have to register Ext.Net http handlers and modules in the 'system.webServer' section of web.config
    Please see Readme.txt from Ext.Net distributive
    Vladimir Shcheglov
    Sr. Developer
  5. #5
    my server IIS used IIS6.0
    thanks
  6. #6

    My web.config

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
        <sectionGroup name="iBATIS">
          <section name="logging" type="IBatisNet.Common.Logging.ConfigurationSectionHandler, IBatisNet.Common" />
        </sectionGroup>
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
        <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
        <section name="Couriers"  type="System.Configuration.NameValueSectionHandler"/>
      </configSections>
      <iBATIS>
        <logging>
          <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA, IBatisNet.Common.Logging.Log4Net">
            <arg key="configType" value="inline" />
          </logFactoryAdapter>
        </logging>
      </iBATIS>
      <!-- log4net日志 -->
      <log4net>
        <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
          <param name="File" value="log/System/" />
          <param name="AppendToFile" value="true" />
          <param name="MaxSizeRollBackups" value="5" />
          <param name="MaximumFileSize" value="2MB" />
          <param name="RollingStyle" value="Date" />
          <param name="DatePattern" value="yyyyMM/dd&quot;.log&quot;" />
          <param name="StaticLogFileName" value="false" />
          <layout type="log4net.Layout.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />
          </layout>
        </appender>
        <appender name="ErrorLogFileAppender" type="log4net.Appender.RollingFileAppender">
          <param name="File" value="log/Error/" />
          <param name="AppendToFile" value="true" />
          <param name="MaxSizeRollBackups" value="5" />
          <param name="MaximumFileSize" value="2MB" />
          <param name="RollingStyle" value="Date" />
          <param name="DatePattern" value="yyyyMM/dd&quot;.log&quot;" />
          <param name="StaticLogFileName" value="false" />
          <layout type="log4net.Layout.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />
          </layout>
        </appender>
        <root>
          <priority value="INFO" />
          <appender-ref ref="RollingLogFileAppender" />
        </root>
        <!-- 错误日志 -->
        <logger name="ErrorLogger" additivity="false">
          <level value="ERROR" />
          <appender-ref ref="ErrorLogFileAppender" />
        </logger>
        <logger name="OpertionLogger" additivity="false">
          <level value="ERROR" />
          <appender-ref ref="RollingLogFileAppender" />
        </logger>
        <!-- Ibatis日志 -->
        <logger name="IBatisNet.DataMapper.Commands.DefaultPreparedCommand">
          <level value="DEBUG" />
        </logger>
        <logger name="IBatisNet.DataMapper.Configuration.Statements.PreparedStatementFactory">
          <level value="DEBUG" />
        </logger>
        <logger name="IBatisNet.DataMapper.Configuration.Cache.CacheModel">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.DataMapper.LazyLoadList">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.DataMapper.SqlMapSession">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.Common.Transaction.TransactionScope">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.DataAccess.DaoSession">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.DataAccess.Configuration.DaoProxy">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.DataMapper.Commands.IPreparedCommand">
          <level value="ERROR" />
        </logger>
        <logger name="IBatisNet.DataMapper.Dialect.DBDialect">
          <level value="ERROR" />
        </logger>
      </log4net>
      <appSettings>
        <add key="ShowHiddenExamples" value="False" />
      </appSettings>
      <Couriers>
        <add key="顺风快递" value="http://www.sf-express.com/tabid/68/Default.aspx" />
        <add key="申通快递" value="http://www.sto-express.com.cn/" />
      </Couriers>
      <connectionStrings>
        <add name="NorthwindConnectionString" connectionString="Data Source=lilac.arvixe.com;Initial Catalog=Northwind;User ID=extnet_demo;Password=extnet_demo;" providerName="System.Data.SqlClient" />
        <add name="SimpleTasksConnectionString" connectionString="Data Source=lilac.arvixe.com;Initial Catalog=SimpleTasks;User ID=extnet_demo;Password=extnet_demo;" providerName="System.Data.SqlClient" />
      </connectionStrings>
      <extnet />
      <system.web>
        <trust level="Full" />
        <webServices>
          <protocols>
            <add name="HttpGet" />
            <add name="HttpPost" />
          </protocols>
        </webServices>
        <customErrors mode="Off">
          <error statusCode="404" redirect="~/404.aspx" />
        </customErrors>
        <compilation debug="true">
          <assemblies>
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          </assemblies>
        </compilation>
        <authentication mode="Forms">
          <forms loginUrl="Admin/Default.aspx" name="PointsMarket" protection="All" timeout="20" path="/"></forms>
        </authentication>
        <authorization>
          <allow users="*"/>
        </authorization>
        <pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add tagPrefix="src" src="~/HighLighter/HighLighterButton.ascx" tagName="SourceButton" />
            <add tagPrefix="cc" src="~/UserControl/UserProType.ascx" tagName="ProType" />
          </controls>
        </pages>
        <httpHandlers>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
          <remove path="*.asmx" verb="*" />
          <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
        </httpHandlers>
        <httpModules>
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </httpModules>
      </system.web>
      <system.codedom>
        <compilers>
          <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <providerOption name="CompilerVersion" value="v3.5" />
            <providerOption name="WarnAsError" value="false" />
          </compiler>
        </compilers>
      </system.codedom>
      <runtime>
        <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
        </modules>
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
        </handlers>
        <defaultDocument>
          <files >
            <add value="index.aspx"/>
          </files>
        </defaultDocument>
      </system.webServer>
    </configuration>
  7. #7
    Hi,

    Please show request details (what is posted to the server)
    Vladimir Shcheglov
    Sr. Developer
  8. #8

    The login page

    param application/x-www-form-urlencoded
    __EVENTARGUMENT	btnLogin|event|Click
    __EVENTTARGET	ResourceManager1
    __EVENTVALIDATION	/wEWAgKr0oWYAwLk1b+VAnv+FbijWMIeS5sD0V8el92RmXZc
    __VIEWSTATE	/wEPDwULLTExNzQ3MDIwODMPZBYCAgMPZBYCAgMPZBYIZg9kFgJmDxYCHgVjbGFzcwUIeC1oaWRkZW5kAgEPZBYCZg8WAh8ABQh4LWhpZGRlbmQCAg9kFgJmDxYCHwAFCHgtaGlkZGVuZAIDDxYCHwAFCHgtaGlkZGVuZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WBQUQUmVzb3VyY2VNYW5hZ2VyMQUHV2luZG93MQUMdHh0TG9naW5OYW1lBQt0eHRQYXNzd29yZAUIYnRuTG9naW68I8B7xdf8TnuR3cbuQ7uQE6Deyw==
    txtLoginName	admin
    txtPassword	1
    
    __EVENTTARGET=ResourceManager1&__EVENTARGUMENT=btnLogin%7Cevent%7CClick&__VIEWSTATE=%2FwEPDwULLTExNzQ3MDIwODMPZBYCAgMPZBYCAgMPZBYIZg9kFgJmDxYCHgVjbGFzcwUIeC1oaWRkZW5kAgEPZBYCZg8WAh8ABQh4LWhpZGRlbmQCAg9kFgJmDxYCHwAFCHgtaGlkZGVuZAIDDxYCHwAFCHgtaGlkZGVuZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WBQUQUmVzb3VyY2VNYW5hZ2VyMQUHV2luZG93MQUMdHh0TG9naW5OYW1lBQt0eHRQYXNzd29yZAUIYnRuTG9naW68I8B7xdf8TnuR3cbuQ7uQE6Deyw%3D%3D&__EVENTVALIDATION=%2FwEWAgKr0oWYAwLk1b%2BVAnv%2BFbijWMIeS5sD0V8el92RmXZc&txtLoginName=admin&txtPassword=1
  9. #9

    The Grid Page

    Right requset:
    AngentInfoGrid_SM	
    CBPageSize	20
    CBPageSize_SelIndex	1
    CBPageSize_Value	20
    Filter_AgentName	
    Filter_Consigner	
    Filter_ReceiveAddress	
    Form_AgentName	
    Form_Consigner	
    Form_Id	
    Form_Phone	
    Form_ReceiveAddress	
    Form_State	
    Form_State_SelIndex	
    Form_State_Value	
    PageBar_ActivePage	1
    __EVENTARGUMENT	AgentInfoStore|postback|refresh
    __EVENTTARGET	ResourceManager
    __EVENTVALIDATION	/wEWAgLZzt7SBgLk1euHDnQyw3VlByR2WVKhL5fDhzS+yPCj
    __VIEWSTATE	/wEPDwUJMTE0Mzg2NDk5D2QWAgIBD2QWBAIDDxQqElN5c3RlbS5XZWIuVUkuUGFpcgEPBQl2c01lbWJlcnMUKwABDwUGUmVhZGVyFCsEAQ8FBGJhc2UWAh4KSURQcm9wZXJ0eQUCSWRkAgUPZBYEZg9kFgYCAQ9kFgZmD2QWDGYPZBYCZg8WAh4FY2xhc3MFCHgtaGlkZGVuZAIBD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgIPZBYCZg8WAh8BBQh4LWhpZGRlbmQCAw9kFgJmDxYCHwEFCHgtaGlkZGVuZAIED2QWAmYPFgIfAQUIeC1oaWRkZW5kAgUPFgIfAQUIeC1oaWRkZW5kAgEPZBYKZg9kFgJmDxYCHwEFCHgtaGlkZGVuZAIBD2QWAmYPFgIfAQUIeC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Z2VCYXIFCkNCUGFnZVNpemUFCUFnZW50Rm9ybQUHRm9ybV9JZAUORm9ybV9BZ2VudE5hbWUFCkZvcm1fU3RhdGUFDkZvcm1fQ29uc2lnbmVyBQpGb3JtX1Bob25lBRNGb3JtX1JlY2VpdmVBZGRyZXNzBQdCdG5TYXZlCIT/cu4tj60/snq/yQ7pYSwCsZ0=
    submitDirectEventConfig	{"config":{"extraParams":{"start":0,"limit":20}}}
    right response:
    {serviceResponse:{success:true,data:{data:[{"Id":13,"AgentName":"厦门巨鹏飞集团有限公司","ReceiveAddress":"思明区观音山商业街17号","Consigner":"陈经理","Phone":null,"State":1},{"Id":12,"AgentName":"厦门长塑实业有限公司","ReceiveAddress":"厦门市海沧区翁角路268号","Consigner":"陈小姐","Phone":null,"State":1},{"Id":11,"AgentName":"厦门市观音山物业服务有限公司","ReceiveAddress":"厦门市思明区塔埔东路161号3F","Consigner":"李小姐","Phone":null,"State":0},{"Id":10,"AgentName":"厦门金利航国际货运有限公司","ReceiveAddress":"厦门湖里竹坑路8号深汇大厦1204室","Consigner":"陈毅红","Phone":null,"State":1},{"Id":9,"AgentName":"厦门麦秸软件有限公司","ReceiveAddress":"厦门软件园二期望海路15号301单元","Consigner":"汪小姐","Phone":null,"State":1},{"Id":8,"AgentName":"厦门峻巢房地产代理有限公司","ReceiveAddress":"厦门市思明区新华路65号之112峻巢地产","Consigner":"利小姐","Phone":null,"State":1},{"Id":7,"AgentName":"厦门欣生科技有限公司","ReceiveAddress":"厦门蔡塘4组叶云峰厂房2楼","Consigner":"王小姐","Phone":null,"State":1},{"Id":6,"AgentName":"福建豪氏威马钢铁制品有限公司","ReceiveAddress":"漳州招商局中银开发区招商大道48号","Consigner":"傅小姐","Phone":null,"State":1},{"Id":5,"AgentName":"厦门翰林彩印有限公司","ReceiveAddress":"厦门市集美区杏北中宛路一号","Consigner":"人事","Phone":null,"State":1},{"Id":4,"AgentName":"厦门洁尔保洁服务有限公司 ","ReceiveAddress":"厦门市思明区龙翔路13号","Consigner":"保洁","Phone":null,"State":0},{"Id":3,"AgentName":"东南融通","ReceiveAddress":"厦门市软件园生产基地望海路64号","Consigner":"融通","Phone":null,"State":1},{"Id":2,"AgentName":"美亚柏科","ReceiveAddress":"厦门市软件元素生产基地观日路12号","Consigner":"美美亚亚","Phone":null,"State":1},{"Id":1,"AgentName":"厦门书生","ReceiveAddress":"厦门市软件园生产基地观日路28号","Consigner":"书生","Phone":null,"State":1}], total: 13}}}
    Error requset:
    AngentInfoGrid_SM	
    CBPageSize	20
    CBPageSize_SelIndex	1
    CBPageSize_Value	20
    Filter_AgentName	
    Filter_Consigner	
    Filter_ReceiveAddress	
    Form_AgentName	
    Form_Consigner	
    Form_Id	
    Form_Phone	
    Form_ReceiveAddress	
    Form_State	
    Form_State_SelIndex	
    Form_State_Value	
    PageBar_ActivePage	1
    __EVENTARGUMENT	AgentInfoStore|postback|refresh
    __EVENTTARGET	ResourceManager
    __EVENTVALIDATION	/wEWAgKZ5IOyAQLk1euHDur7ouGy6p53i9tf860QXjE8y/hR
    __VIEWSTATE	/wEPDwULLTE5MTg5MzIyMzAPZBYCAgEPZBYEAgMPFCoSU3lzdGVtLldlYi5VSS5QYWlyAQ8FCXZzTWVtYmVycxQrAAEPBQZSZWFkZXIUKwQBDwUEYmFzZRYCHgpJRFByb3BlcnR5BQJJZGQCBQ9kFgRmD2QWBgIBD2QWBmYPZBYMZg9kFgJmDxYCHgVjbGFzcwUIeC1oaWRkZW5kAgEPZBYCZg8WAh8BBQh4LWhpZGRlbmQCAg9kFgJmDxYCHwEFCHgtaGlkZGVuZAIDD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgQPZBYCZg8WAh8BBQh4LWhpZGRlbmQCBQ8WAh8BBQh4LWhpZGRlbmQCAQ9kFgpmD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgEPZBYCZg8WAh8BBQh4LWhpZGRlbmQCAg9kFgJmDxYCHwEFCHgtaGlkZGVuZAIDD2QWAmYPFgIfAQUIeC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kBQ5Gb3JtX0FnZW50TmFtZQUKRm9ybV9TdGF0ZQUORm9ybV9Db25zaWduZXIFCkZvcm1fUGhvbmUFE0Zvcm1fUmVjZWl2ZUFkZHJlc3MFB0J0blNhdmUFf7zSI9w+jaQbfwY2MRnSgM8Ssg==
    submitDirectEventConfig	{"config":{"extraParams":{"start":0,"limit":20}}}
    Error response:
    <!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>
        <title>代理商信息管理</title>
        <script type="text/javascript">
            var GridState = function(value) {
            var template = '<span style="color:{0};">{1}</span>';
                if(value == 0)
                    return String.format(template, "red", "停用");
                else
                    return String.format(template, "block", "有效");
            }
            function UpdateGrid() {
                AgentForm.getForm().updateRecord(AngentInfoGrid.getSelectionModel().getSelected());
            }
        </script>
    </head>
    <body>
        <form name="Form1" method="post" action="AgentInfo.aspx?_dc=1307439815267" id="Form1">
    <div>
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE5MTg5MzIyMzAPZBYCAgEPZBYEAgMPFCoSU3lzdGVtLldlYi5VSS5QYWlyAQ8FCXZzTWVtYmVycxQrAAEPBQZSZWFkZXIUKwQBDwUEYmFzZRYCHgpJRFByb3BlcnR5BQJJZGQCBQ9kFgRmD2QWBgIBD2QWBmYPZBYMZg9kFgJmDxYCHgVjbGFzcwUIeC1oaWRkZW5kAgEPFCsEAQ8FBGJhc2UPFgIeCFJhd1ZhbHVlZWQWAmYPFgIfAQUIeC1oaWRkZW5kAgIPZBYCZg8WAh8BBQh4LWhpZGRlbmQCAw8UKwQBDwUEYmFzZQ8WAh8CZWQWAmYPFgIfAQUIeC1oaWRkZW5kAgQPZBYCZg8WAh8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mYPFgIfAQUIeC1oaWRkZW5kAgUPFCsEAQ8FBGJhc2UPFgIfAmVkFgJmDxYCHwEFCHgtaGlkZGVuZAIGD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgcPFgIfAQUIeC1oaWRkZW5kGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYQBQ9SZXNvdXJjZU1hbmFnZXIFDkFuZ2VudEluZm9HcmlkBRBGaWx0ZXJfQWdlbnROYW1lBRBGaWx0ZXJfQ29uc2lnbmVyBRVGaWx0ZXJfUmVjZWl2ZUFkZHJlc3MFCUJ0blNlYXJjaAUHUGFnZUJhcgUKQ0JQYWdlU2l6ZQUJQWdlbnRGb3JtBQdGb3JtX0lkBQ5Gb3JtX0FnZW50TmFtZQUKRm9ybV9TdGF0ZQUORm9ybV9Db25zaWduZXIFCkZvcm1fUGhvbmUFE0Zvcm1fUmVjZWl2ZUFkZHJlc3MFB0J0blNhdmVLc19dARMeGg5aX5hNJCJzHowqWg==" />
    </div>
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['Form1'];
    if (!theForm) {
        theForm = document.Form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
    
    
    <div>
    
    	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAgLLo6+BAQLk1euHDhKXLX7R0NumeLSvJdzZqG09N1jQ" />
    </div>
        </form>
    	<link rel="stylesheet" type="text/css" href="/extjs/resources/css/ext-all-embedded-css/ext.axd?v=33461" />
    
    	<script type="text/javascript" src="/extjs/adapter/ext/ext-base-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extjs/ext-all-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extnet/extnet-core-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extjs/locale/ext-lang-zh-CN-js/ext.axd?v=33461"></script>
    	<script type="text/javascript" src="/extnet/extnet-data-js/ext.axd?v=33461"></script>
    	<script type="text/javascript">
    	//<![CDATA[
    		Ext.net.ResourceMgr.init({id:"ResourceManager",BLANK_IMAGE_URL:"/extjs/resources/images/default/s-gif/ext.axd",aspForm:"Form1",theme:"blue",icons:["Zoom"]});Ext.onReady(function(){Ext.QuickTips.init();this.AgentInfoStore=new Ext.net.Store({proxyId:"AgentInfoStore",autoLoad:true,proxy:new Ext.net.PageProxy({}),reader:new Ext.data.JsonReader({fields:[{name:"Id",type:"int"},{name:"AgentName",type:"string"},{name:"State",type:"int"},{name:"ReceiveAddress",type:"string"},{name:"Consigner",type:"string"},{name:"Phone",type:"string"}],idProperty:"Id"}),directEventConfig:{}});new Ext.net.Viewport({id:"ProductTypeViewport",renderTo:"Form1",items:[{id:"AngentInfoGrid",xtype:"netgrid",margins:"3 0 3 3",region:"center",split:true,bbar:{id:"PageBar",xtype:"paging",stateId:"AgentInfoStore",items:[{id:"ctl18",xtype:"tbseparator"},{id:"CBPageSize",xtype:"combo",labelWidth:60,fieldLabel:"页面大小",width:110,value:"20",rawValue:"20",displayField:"text",hiddenName:"CBPageSize_Value",mode:"local",queryDelay:10,triggerAction:"all",valueField:"value",store:new Ext.data.SimpleStore({fields:["text","value"],data :[["10","10"],["20","20"],["50","50"],["100","100"]]}),submitValue:true,listeners:{select:{fn:function(item,record,index){PageBar.pageSize = parseInt(this.getValue()); PageBar.doLoad();}}}}],displayInfo:true},tbar:{id:"TBarSearch",xtype:"toolbar",items:[{id:"TBar1",xtype:"toolbar",items:[{id:"ctl00",xtype:"tbseparator"},{id:"Filter_AgentName",xtype:"textfield",labelWidth:65,fieldLabel:"代理商名称",width:200,rawValue:""},{id:"ctl03",xtype:"tbseparator"},{id:"Filter_Consigner",xtype:"textfield",labelWidth:65,fieldLabel:"收货人姓名",width:150,rawValue:""},{id:"ctl06",xtype:"tbseparator"}]},{id:"TBar2",xtype:"toolbar",items:[{id:"ctl09",xtype:"tbseparator"},{id:"Filter_ReceiveAddress",xtype:"textfield",labelWidth:65,fieldLabel:"收货人地址",width:358,rawValue:""},{id:"ctl12",xtype:"tbseparator"},{id:"BtnSearch",cls:"x-btn-text-icon x-btn-over",iconCls:"icon-zoom",text:"查 询",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.net.DirectEvent.confirmRequest({control:this});},delay:20}}}]}],layout:"auto"},title:"代理商信息",autoExpandColumn:"AgentName",loadMask:{showMask:true},sm:this.RowSelectionModel=new Ext.grid.RowSelectionModel({proxyId:"RowSelectionModel",singleSelect:true,listeners:{rowselect:{fn:function(item,rowIndex,record){AgentForm.getForm().loadRecord(this.getSelected())}}}}),store:AgentInfoStore,selectionMemory:false,cm:this.ctl17=new Ext.grid.ColumnModel({proxyId:"ctl17",columns:[new Ext.grid.RowNumberer({}),{dataIndex:"Id",header:"Id",hidden:true,id:"Id"},{dataIndex:"AgentName",header:"代理商名称",id:"AgentName",width:150},{dataIndex:"State",header:"当前状态",renderer:GridState,width:75},{dataIndex:"Consigner",header:"收货人",width:75},{dataIndex:"Phone",header:"联系电话",width:90},{dataIndex:"ReceiveAddress",header:"收货地址",width:300}]})},{id:"AgentForm",xtype:"form",defaultAnchor:"100%",labelWidth:60,margins:"3 3 3 0",region:"east",split:true,width:300,items:[{id:"Form_Id",xtype:"hidden",dataIndex:"Id",value:"",rawValue:""},{id:"Form_AgentName",xtype:"textfield",disabled:true,fieldLabel:"代理商名",dataIndex:"AgentName",rawValue:""},{id:"Form_State",xtype:"combo",fieldLabel:"当前状态",dataIndex:"State",rawValue:"",displayField:"text",hiddenName:"Form_State_Value",mode:"local",queryDelay:10,triggerAction:"all",valueField:"value",store:new Ext.data.SimpleStore({fields:["text","value"],data :[["停用","0"],["有效","1"]]}),submitValue:true},{id:"Form_Consigner",xtype:"textfield",fieldLabel:"收 货 人",dataIndex:"Consigner",rawValue:"",allowBlank:false},{id:"Form_Phone",xtype:"numberfield",fieldLabel:"联系电话",dataIndex:"Phone",rawValue:"",allowBlank:false},{id:"Form_ReceiveAddress",xtype:"textarea",fieldLabel:"收货地址",dataIndex:"ReceiveAddress",rawValue:"",allowBlank:false}],buttonAlign:"center",buttons:[{id:"BtnSave",xtype:"button",text:"保 存",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.net.DirectEvent.confirmRequest({eventMask:{showMask:true,msg:"正在执行保存操作,请稍后??"},userSuccess:function(response,result,el,type,action,extraParams,o){UpdateGrid();},control:this});},delay:20}}}],collapsible:true,padding:10,title:"代理商详细信息",renderFormElement:false,url:"/Admin/Agent/AgentInfo.aspx?_dc=1307439815267"}],layout:"border"});});
    	//]]>
    	</script>
    
    </body>
    </html
    It seems Postback not ajax request
  10. #10
    Hi,

    I don't see information about request header, can you post it (just need ensure that ajax request marker is passed)?
    Vladimir Shcheglov
    Sr. Developer
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] GridPanel DirectEvents - FileUploadField error
    By Aurelio in forum 2.x Premium Help
    Replies: 5
    Last Post: Mar 16, 2012, 12:52 PM
  2. Replies: 4
    Last Post: Sep 26, 2011, 2:59 PM
  3. Concurrent DirectEvents
    By thedarklord in forum 1.x Help
    Replies: 1
    Last Post: Apr 15, 2011, 8:39 AM
  4. DirectEvents are not available at all for any control
    By lordofthexings in forum 1.x Help
    Replies: 3
    Last Post: May 19, 2010, 4:47 PM
  5. GRIDPANEL ROWEDITOR DIRECTEVENTS ERROR
    By PoloTheMonk in forum 1.x Help
    Replies: 1
    Last Post: Dec 16, 2009, 9:14 AM

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.