Undskyld... der kom lige noget arbejde op (har ellers ferie).
Jeg har lavet en lidt hurtig (klamset) løsning til dig... Jeg sætter lige nogle kommentarer ind, og så smider jeg den herud.
Men du kan eventuelt lige sætte aspx-filen op til at starte med... Den kommer her :
// UpLoadFile.aspx
<%@ Page language="c#" Codebehind="UploadFile.aspx.cs" AutoEventWireup="false" Inherits="Motervejen.UploadFile" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="
http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<script language="javascript">
function showUpLoadMessage()
{
document.getElementById('UploadMessage').style.visibility = 'visible';
UpdateStatus();
}
var i = 0;
function UpdateStatus()
{
var status = document.getElementById('Status');
if(i>400)
i=0;
else
i++;
status.style.width=i;
setTimeout("UpdateStatus()",5);
}
</script>
</HEAD>
<body ms_positioning="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT id="File1" style="WIDTH: 400px; HEIGHT: 22px" type="file" size="62" name="File1"
runat="server">
<DIV id="UploadMessage" style="Z-INDEX: 110; LEFT: 16px; VISIBILITY: hidden; WIDTH: 408px; POSITION: absolute; TOP: 8px; HEIGHT: 100px; BACKGROUND-COLOR: silver"
ms_positioning="GridLayout">
Filen er ved at blive uploaded til serveren - vent venligst.
<br>
<div id="Status" style="background-color:navy; width:1; height:10;"></div>
</DIV>
<INPUT id="Button1" style="Z-INDEX: 102;LEFT: 16px;WIDTH: 400px;POSITION: absolute;TOP: 40px;HEIGHT: 24px"
type="button" value="Button" name="Button1" runat="server" onclick="showUpLoadMessage();"></form>
</body>
</HTML>