Hi there, Basically, you cannot use the new features in the ASP.NET 2.0 like the partial class, CodeFile attribute, FileUpload control .... to run with the ASP.NET 1.0. The reason it's working on you machine is simply that you use the right version 2.0 in your local environment. On the remote server, they use an older version of ASP.NET (1.0), so you need to go back with the options provided by the ASP.NET 1.0, there are a couple of things that you might need to change in order ton run on the remote machine: + Use the inline code instead of the code-behind with the partial class. + Use the HtmlInputFile[^] control instead of the FileUpload control. Below is a quick example for the changes:
<%@ Page Language="C#" %>
<html>
<head runat="server">
<title>Untitled Page</title>
<script runat="server">
protected void UploadBtn_Click(object sender, EventArgs e)
{
//TO DO: your code goes here to save the uploaded file.
}
</script>
</head>
<body>
<form id="form1" runat="server">
<input id="File1" runat="server" type="file" />
<asp:Button ID="Button1" runat="server" Text="Upload"
On_Click="UploadBtn_Click"/>
</form>
</body>
</html>