Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8288215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:14:14+00:00 2026-06-08T12:14:14+00:00

I am using a asyncfileUpload control in my page, and that page is derived

  • 0

I am using a asyncfileUpload control in my page, and that page is derived from a master page.
My motive to use this control is only to upload an image and show that image on the same page.
But when i am trying to upload an image, i am getting an Exception i.e.: "Unhandled Exception: $get("imgUpload") is null".
I am using the following function on ClientUploadComplete:

<script type="text/javascript">
     function uploadComplete(sender, args) {
         var FileName = args.get_fileName();
         $get("imgUpload").src = "../ajax/upload/" + FileName;
     }
</script>

and i have also set the ClientIDMode=AutoID.

And i am using the following code under the UploadedComplete event:

 protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
    string strPath = MapPath("~/ajax/upload/") + Path.GetFileName(e.FileName);
    AsyncFileUpload1.SaveAs(strPath);
    imgUpload.ImageUrl = strPath;
}

In a normal page, when I try the above It is working correctly but in case of Derived page (from Master Page) it is arising the exception.

Please help me out here to fix this problem.

With Regards,
Ravindra Kumar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:14:15+00:00Added an answer on June 8, 2026 at 12:14 pm

    AutoID will rename the control based on rendering order, so when the master page is added in, it changes everything. Have you taken a look at your rendered source to verify the rendered control id? Try changing ClientIDMode to “Static”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to upload an image of size 800kb using Ajax AsyncFileupload control
I'm using the AsyncFileUpload control to upload images. It works fine from localhost, but
I have an asyncfileupload control that I'm using from the ajaxcontroltoolkit. On the file
I am using Ajax AsyncFileUpload control in asp.net 4.0 with master page and I
I am using ajax toolkit asyncFileUpload control I had problem that my server side
I am using the new AsyncFileUpload control from the latest AjaxControl ToolKit. My query
I upload an image with AsyncFileUpload control. On UploadedComplete I try to assign some
I am using the AsyncFileUpload control provided by the Ajax Toolkit. I am needing
I'm using an AsyncFileUpload (AJAX Toolkit) to upload images. I have a Button which
I am using Asyncfileupload AJAX control, and want to know if there is anyway

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.