Showing posts with label files. Show all posts
Showing posts with label files. Show all posts

Saturday, March 24, 2012

Upgraded to March CTP and now takes forever to load .XML files from the browser!

Upgraded to March CTP and now takes forever to load .XML files from the browser! Not sure if any relation; my best guess is something to do with the new HttpHandlers/HttpModules?

I even changed my .xml files to .xml.js file with the same problem...

for quick fix, i did this, but need advice on what to do and what is happenning. basically i load xml file server to populate a dropdownlist...

<httpHandlers>

<removeverb="*"path="*.asmx"/>

<addverb="*"path="*.asmx"type="Microsoft.Web.Services.ScriptHandlerFactory"validate="false"/>

<!--

The MultiRequestHandler enables multiple requests to be handled in one

roundtrip to the server. Its use requires Full Trust.

-->

<!--add verb="*" path="atlasbatchcall.axd" type="Microsoft.Web.Services.MultiRequestHandler" validate="false"/-->

<addverb="*"path="atlasglob.axd"type="Microsoft.Web.Globalization.GlobalizationHandler"validate="false"/>

<addverb="*"path="*.asbx"type="Microsoft.Web.Services.ScriptHandlerFactory"validate="false"/>

</httpHandlers>

<httpModules>

<addname="ScriptModule"type="Microsoft.Web.Services.ScriptModule"/>

<!--add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>

<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/-->

</httpModules>

UPLOAD FILE WITH ATLAS

I need a sample that allows to upload files using ATLAS.

Thanks in advance!

hello.

can you give more details on what you're after?


Well, I need to upload XML files from a WebBrowser (Internet Explorer, FireFox, etc) to the WebServer using UploadFile control.

How can I do it with ATLAS!?


hello.

unfortunally, by default, you can't do it without writting code to perform this action.


ok! Could you help me with this? Could you send me a sample to perform this action?


hello.

unfortunatelly, i still haven't written anything that let's me perform that kind of action. i'll report abck if i manage to get something working.

Uploading File doesnt work when using UpdatePanel!

Hi,

Uploading files works fine but when i tried to include everything inside the UpdatePanel then i can no longer upload. The reason is that on my PostBack, the input values(file1, file2, file3, file4) have empty values..

<tableborder="0"cellspacing="0"cellpadding="0"style="border-collapse: collapse;">

<trid="fileInput1"><tdalign="left"class="VerdanaXXSmallBlue">1) </td>

<td><inputid="file1"type="file"runat="server"class="VerdanaXSmallBlue"style="width: 100%"/></td></tr><trid="fileInput2">

<tdalign="left"class="VerdanaXXSmallBlue">2) </td>

<td><inputid="file2"type="file"runat="server"class="VerdanaXSmallBlue"style="width: 100%"/></td></tr><trid="fileInput3"><tdalign="left"class="VerdanaXXSmallBlue">3) </td><td><inputid="file3"type="file"runat="server"class="VerdanaXSmallBlue"style="width: 100%"/></td></tr><trid="fileInput4"><tdalign="left"class="VerdanaXXSmallBlue">

4)

</td><td><inputid="file4"type="file"style="width: 464px"class="VerdanaXSmallBlue"runat="server"/></td></tr></table>

Hi Kiril,

The Ajaxdocumentation states that theFileUpload control is not compatible with partial-page updates and is therefore not supported inside an UpdatePanel. To use aFileUpload control inside anUpdatePanel control, set the postback control that submits the file to be aPostBackTrigger for the panel.

HTH


cool. thanks

Uploading files

I am using ajax 1.0, when i am uploading files, it does not working properly, it is not uploading any images. I heared that file upload will not work in ajax, is it true? help appreciated

Hi sreejithpkrishnan,

I don't know if you want to uploadfiles in combination wioth an update panel if so check the summary below:

Controls that are not compatible with updatepanel controls

The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside anUpdatePanel control:

TreeView andMenu controls.


Hi,

the FileUpload, and several other controls, don't play nicely together with the UpdatePanel control. You can however use inside it but must set it to be a PostBackTrigger for the UpdatePanel. Read more about ithere andhere. The last link provides a sample for the FileUpload control that works together with the UpdatePanel control.

Grz, Kris.


hello.

In the past, I've written an extender which lets you upload files without performing a postback. it was written for the beta 2 or rc version (really can't recall it), but you should be able to update it to the current release without having much problems.

http://msmvps.com/blogs/luisabreu/archive/2006/12/14/uploading-files-without-a-full-postback.aspx