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

  • SEARCH
  • Home
  • 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 6211957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:25:41+00:00 2026-05-24T06:25:41+00:00

I have a page configured to hide a FileUpload control, so when you click

  • 0

I have a page configured to hide a FileUpload control, so when you click a button it shows the file upload windows and after you choose the file it automatically submits it to the server.

Ir order for this to work i created 2 linkbuttons and a file upload but only one of the buttons is visible. When you click the button it triggers the fileupload window and when the FileUpload control has a change it triggers the submit (invisible) button. The proble I’m having is that only the OnClientClick is being triggered and the server side code is not running

<script type="text/javascript">
document.getElementById('<%= button.ClientID %>').onclick = function () {
    document.getElementById('<%= fileupload.ClientID %>').click();
    return false;    
}

document.getElementById('<%= fileupload.ClientID %>').onchange = function () {
     document.getElementById('<%= save.ClientID %>').click();
}
</script>

The save button has a onclientclick to show a modal window and should send to server

OnClick="lnkChange_OnClick" OnClientClick="ShowModalDialog(0);"

Any way to fix this?

  • 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-05-24T06:25:42+00:00Added an answer on May 24, 2026 at 6:25 am

    I think __doPostBack(”,”) will help you.
    Call _doPostBack function from your client side function. It will postback the page.

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

Sidebar

Related Questions

So, we've got PHP 5.3.2 installed on a Windows 2008 R2 Server. PHP.ini file
I have configured a GridView to fill data by an ObjectDataSource . This ObjectDataSource
I am using the AdvancedDatabaseCrawler as a base for my search page. I have
I am new to Magento CMS, i have configured products using admin panel, at
Zend_Cache can be configured to cache several types of output, including the results of
I have a comment controller that uses a form partial to add comments. Now
I have a rails app that is combining javascript assets using Jammit , and
i have an employee table with fields like id, name, age and salary. Iam
I think I have run into a bug in Mojarra 2.1.0. Maybe I missed
I'm struggling with creating a simple one-to-many relationship using Code First in EF. I

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.