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 7944845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:40:24+00:00 2026-06-04T00:40:24+00:00

When i start the page it gives me this error. I can press no

  • 0

When i start the page it gives me this error. I can press no but then the code doesnt work.

enter image description here

the code is how do i fix this error??
by the way the button browse opens the fileupload but that is in c#
Thanks in advance.

    <%@ control language="C#" autoeventwireup="true" inherits="Web_Controls_SOLATDFileChooser, App_Web_ivmyhbca" %>

<!--2012-05-11 TP : Redesign da página web -->
<link rel="stylesheet" type="text/css" href="../styles/CMM/InternetFace.css" />
<style type="text/css">
    div.fileinputs
    {
        position: relative;
    }

    div.fakefile
    {
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 1;
    }

    input.file
    {
        visibility: hidden;
    }
</style>
<script type="text/javascript" language="javascript">
    function clear() {
        document.getElementById("<%=FileUpload1.ClientID %>").value = "";
        document.getElementById("<%=txtFileName.ClientID %>").value = "";
    }
</script>
<script type="text/javascript" language="javascript">
    function uploadFileChange() {
    document.getElementById("<%=txtFileName.ClientID %>").value = document.getElementById("<%=FileUpload1.ClientID %>").value;
    }

</script>

<table width="500px">
    <tr>
        <td valign="middle">
            <div class="fileinputs">
                <!-- Upload file invisivel-->
                <asp:FileUpload ID="FileUpload1" class="file" runat="server"
                    onchange="uploadFileChange();" />
                <!-- button e textbox falsas para poder dar syles-->
                <div class="fakefile">
                    <!--textbox onde está o path do ficheiro-->
                    <asp:TextBox ID="txtFileName" CssClass="textbox"  runat="server"
                        Width="300px" ReadOnly="true" />
                    <!-- button de browse-->
                    <asp:Button ID="btnBrowse" runat="server" Text="Procurar..."
                        ForeColor="White" Height="21px" />
                    <!--button para apagar o path ja que a textbox esta em read-only para prevenir erros-->
                    <asp:Button ID="btnCancel" Height="21px" CssClass="btnSubmit" Text="Apagar" ForeColor="White"
                        OnClientClick="clear();" runat="server" />
                </div>
            </div>
        </td>
    </tr>
</table>
  • 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-04T00:40:26+00:00Added an answer on June 4, 2026 at 12:40 am

    you have many errors in that code

    1. Extra ; after { (in both functions (before you updated)
    2. documente instead of document (before you updated)
    3. You call an undefined function UploadFileChange (you called it UploadFielChange) (before you updated)
    4. No quotes inside getElementById()

    and as a sidenote it’s useless to close a script block and then reopen another one on next line. Both the functions can be enclosed in the same script block

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

Sidebar

Related Questions

Using the code from this page to start with: http://www.java2s.com/Code/CSharp/GUI-Windows-Form/DragginganddroppingbetweenListView.htm I am trying to
If I start with Page.Controls Then recursively call all the children control.Controls, will the
Please help with this error .... In the following code the get info function
Ok, I can't come to grips with this ob_start and ob_end_clean code... Basically, I
I wrote some code as a start for a username and password registration page
I know this question has been asked many times before but I can't find
my code for the page id like this PAGE NAME : test.php content :
I hope someone here can help me see where this error is coming from.
i am just trying to crawl a single page start_urls = ['https://www.mileageplusshopping.com/shopping/b____alpha.htm'] but redirecting
I have application for iphone i want to open it from start up page

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.