Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2010
    Location
    Hamilton, New Zealand
    Posts
    88
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Question Visual C# .net AJAX integration

    Hey Guys

    I'm wanting to do something like what they have on the image uploader in wordpress.

    I've got a page, I want to press a button and have it pop up another page called uploader with my ASP.NET file uploader in it, which I've got done using fancybox. Now when I press upload I want it to upload the image, close the fancybox and load the predefined text into a text box on the original page. Does anyone know how I would do this?

    I've got it working kind of, but I have response.redirect and it loads the page again instead of just updating that field...

    I know it needs to be done with AJAX, I'm just not sure how.

    Let me know if you need anymore info or if it can't be done.

  • #2
    New Coder
    Join Date
    Apr 2012
    Location
    Mumbai , India.
    Posts
    12
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by dpDesignz View Post
    Hey Guys

    I'm wanting to do something like what they have on the image uploader in wordpress.

    I've got a page, I want to press a button and have it pop up another page called uploader with my ASP.NET file uploader in it, which I've got done using fancybox. Now when I press upload I want it to upload the image, close the fancybox and load the predefined text into a text box on the original page. Does anyone know how I would do this?

    I've got it working kind of, but I have response.redirect and it loads the page again instead of just updating that field...

    I know it needs to be done with AJAX, I'm just not sure how.

    Let me know if you need anymore info or if it can't be done.
    You will have to use Update Panel for this...Use an Update Panel and a ScriptManager and place the control in which you want to change the text inside the Update Panel..and then make the call...

    P.S : Response Statements do not work in UpdatePanels....

  • #3
    New Coder
    Join Date
    Aug 2010
    Location
    Hamilton, New Zealand
    Posts
    88
    Thanks
    5
    Thanked 4 Times in 4 Posts
    Thanks heaps!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •