Reputation: 1255
I have a modal that I implemented using the jQuery Colorbox and the modal works great for everything. However I have to have the functionality of an 'Update Your Picture' Member picture area and I wanted to acheive this through AJAX. Apparently this is possible but not really through AJAX. I have tried to implement the AJAX Upload function using this guy's method
but am not being sucessful, I am starting to think that it is because I load the functionality into the DOM later on (because of the modal). Does anyone have any method and examples for doing a photo upload done with javascript(jQuery preferably) and ASP.Net (C#). It would be greatly appreciated.
Thanks
Upvotes: 2
Views: 3354
Reputation: 1485
Similar question and a solution :
Image Upload Preview in Update Panel
Direct link to sample application here
Upvotes: 2
Reputation: 39413
If you think that your problem is because you "load the functionality into the DOM later on" you should try to use the jQuery live event (new in 1.3) or the LiveQuery plugin
Upvotes: 0
Reputation: 79
I always use iframes to do any types of upload...you can show/hide your iframe with javascript and the c# page in the iframe can handle any type of database updating you need...let me know if you want an example...
Upvotes: 1