日期:2014-05-18  浏览次数:21023 次

关于EXT上传图片的问题
<ext:Window ID="ShowAddAppDetailsWindow" runat="server" title="应用的添加" AutoShow="false" Modal="true" ShowOnLoad="false" Width="400" Height="300" ButtonAlign="Right">
  <Body>
  <ext:BorderLayout ID="BorderLayout2" runat="server">
  <Center Margins-Left ="5" Margins-Right="5" Margins-Top="5" Collapsible="true" Margins-Bottom="5">
  <ext:FormPanel runat="server" BodyStyle="padding:5px;" ID="fmApplicationDetails">
  <Body>
  <ext:FormLayout ID="FormLayout3" runat="server">
  <ext:Anchor>
  <ext:TextField runat="server" ID="txtAppId" FieldLabel="ID" Width="160" Disabled="true" ></ext:TextField>
  </ext:Anchor>
  <ext:Anchor>
  <ext:TextField runat="server" ID="txtAppConfig" FieldLabel="Key" Width="160" Disabled="false" ></ext:TextField>
  </ext:Anchor>
  <ext:Anchor>
  <ext:TextField runat="server" ID="txtAppName" FieldLabel="名称" Width="160" Disabled="false" ></ext:TextField>
  </ext:Anchor>
  <ext:Anchor>
  <ext:ComboBox ID="txtAppStatus" FieldLabel="状态" runat="server" Width="160" Disabled="false" Editable="false">
  <Items>
  <ext:ListItem Text="启用" Value="0"/>
  <ext:ListItem Text="禁用" Value="1"/>
  </Items>
  </ext:ComboBox>
  </ext:Anchor>
  <ext:Anchor>
  <ext:FileUploadField ID="fufImage" runat="server" FieldLabel="图片路径" Width="160" EmptyText="请选择图片" Disabled="false" ></ext:FileUploadField>
  </ext:Anchor>
  <ext:Anchor>
  <ext:Button ID="btnSaveImage" runat="server" Text="保存图片" Disabled="false" >
  <AjaxEvents>
  <Click OnEvent="SaveImage_Click" />
  </AjaxEvents>
  </ext:Button>
  </ext:Anchor>



上面是前台代码,不知道为什么,我添加了FILEUPLOADFIELD这个控件后,就会报错,说我txtAppConfig为空(我在后台做了验证的)其实是有数据,删掉这个控件又可以,而且我用了Disabled="false",我编辑的时候Disa