Click here to Skip to main content
15,923,222 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionso stupide but i really need it Pin
Mohammed Amine24-Apr-06 16:55
Mohammed Amine24-Apr-06 16:55 
AnswerRe: so stupide but i really need it Pin
minhpc_bk24-Apr-06 17:23
minhpc_bk24-Apr-06 17:23 
GeneralRe: so stupide but i really need it Pin
Mohammed Amine25-Apr-06 3:53
Mohammed Amine25-Apr-06 3:53 
AnswerRe: so stupide but i really need it Pin
Uma Kameswari25-Apr-06 7:23
Uma Kameswari25-Apr-06 7:23 
GeneralRe: so stupide but i really need it Pin
Mohammed Amine25-Apr-06 13:55
Mohammed Amine25-Apr-06 13:55 
QuestionFlash PDF Viewer? Pin
Idgaf24-Apr-06 12:33
Idgaf24-Apr-06 12:33 
QuestionCould not load type Pin
kourvoisier24-Apr-06 11:45
kourvoisier24-Apr-06 11:45 
AnswerRe: Could not load type Pin
minhpc_bk24-Apr-06 15:43
minhpc_bk24-Apr-06 15:43 
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>

QuestionReverse: System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); Pin
munklefish24-Apr-06 11:42
munklefish24-Apr-06 11:42 
AnswerRe: Reverse: System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); Pin
Mike Ellison24-Apr-06 13:01
Mike Ellison24-Apr-06 13:01 
GeneralRe: Reverse: System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); Pin
munklefish24-Apr-06 13:22
munklefish24-Apr-06 13:22 
QuestionRegarding resource file Pin
shanmukeshwar24-Apr-06 9:15
shanmukeshwar24-Apr-06 9:15 
AnswerRe: Regarding resource file Pin
Mike Ellison24-Apr-06 10:35
Mike Ellison24-Apr-06 10:35 
GeneralRe: Regarding resource file Pin
shanmukeshwar24-Apr-06 11:11
shanmukeshwar24-Apr-06 11:11 
QuestionDynamically changing Flash Movies....... Pin
daviiie24-Apr-06 9:03
daviiie24-Apr-06 9:03 
AnswerRe: Dynamically changing Flash Movies....... Pin
daviiie24-Apr-06 9:48
daviiie24-Apr-06 9:48 
QuestionCompare Two DateTimes, and get result as minutes Pin
munklefish24-Apr-06 8:39
munklefish24-Apr-06 8:39 
AnswerRe: Compare Two DateTimes, and get result as minutes Pin
NeverHeardOfMe24-Apr-06 10:28
NeverHeardOfMe24-Apr-06 10:28 
GeneralRe: Compare Two DateTimes, and get result as minutes Pin
munklefish24-Apr-06 11:40
munklefish24-Apr-06 11:40 
QuestionDisplay Week Only Pin
RadioButton24-Apr-06 6:55
RadioButton24-Apr-06 6:55 
AnswerRe: Display Week Only Pin
Mike Ellison24-Apr-06 7:57
Mike Ellison24-Apr-06 7:57 
GeneralRe: Display Week Only Pin
RadioButton24-Apr-06 10:18
RadioButton24-Apr-06 10:18 
GeneralRe: Display Week Only Pin
Mike Ellison24-Apr-06 10:34
Mike Ellison24-Apr-06 10:34 
GeneralRe: Display Week Only Pin
RadioButton24-Apr-06 11:02
RadioButton24-Apr-06 11:02 
QuestionAutomatically downloading a font for the client Pin
Ista24-Apr-06 5:57
Ista24-Apr-06 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.