Showing posts with label postedhere. Show all posts
Showing posts with label postedhere. Show all posts

Saturday, March 24, 2012

Working with JeffZs AjaxFileUploadHelper

Hello,

While everyone has their own preferred way to tackle the UpdatePanel / FileUpload issue, JeffZ's workaround postedhere is very promising, though through experimenting with it I have experienced two show-stopping bugs:

- Firefox activity never ceases after a successful upload, it simply continues to appear as though it is active, and the cursor remains on an operation image. This would be just extremely annoying/unusable except that it prevents future custom scripts that you've registered from running.

- In both Firefox and IE, attempting to access login controls (i.e. Log Off) while on a page or usercontrol implementing the helper will cause a 500 error.

Otherwise, the results in IE are very compelling, and it's very close to beingthesolution (other than buying something) for everyone looking to have their async upload cake and eat it too. Has anyone else worked with this workaround and have you been able to solve the problems introduced using this approach?


Hi

I'm afraid that I'm not familiar with that contorl.

After some google,I found:http://jeffzon.net/Blog/post/AjaxFileUploadHelper-updated-to-v11.aspx

I suggest that you post issues to their official forums or Email to Jeffrey Zhao,Thanks!

Hope this helps you.

Wednesday, March 21, 2012

Writing a CustomScriptManager

So, I know how to do some of the required code for a "CustomScriptManager", like I postedhere. But there are still some issues that I'm trying to solve, like:

Need to be able to have a corresponding javascript behavior which is automatically referenced on the page (matches the ExtenderControlBase scenario). I assume this has something to do with the EnsureScripts internal method and the various helper methods included in the ScriptReferenceHelper class. I attempted to copy the ScriptReferenceHelper code, but it just wouldn't build.

I also need to be able to use the [RequiredScript] property, again this probably has something to do with the EnsureScripts() mentioned above.

I don't want to use the ExtenderControlBase, because I'm not "extending" anything. I did try it, and just have no properties, but I lose the ability to generate the <customScriptManager id="cManager1" /> in the xml-script.

Any suggestions?

If you would like to write a custom ScriptManager,try to take a look at this reading about asp:ScriptManager to get some ideas.
http://ajax.asp.net/docs/mref/3b24af40-d9f2-7ddd-cb8e-38a9bb90b9c6.aspx
I don't think it is necessary to write a custom ScriptManager if you have installed Ajax framework in your PC.asp:ScriptManager is suitable to most of your development work based on Ajax framework.
Wish this can help you.