niandu Posted October 17, 2017 Posted October 17, 2017 https://asp.niandubay.tk I have tried to create several project types from visual studio and publish it using ftp. None has worked for me. Using both 3.5 and 4.6 .NET Framework. Right now I have left a Default.aspx file with very simple example code and it does not work either.I do not know much about mono, I do not know if there is something special to make it work.The test file that you had placed to test that it worked, I deleted it, I would like if you can put it back to verify the differences.The code in the Default.aspx file is this: <!-- directives --> <% @Page Language="C#" %> <!-- code section --> <script runat="server"> private void convertoupper(object sender, EventArgs e) { string str = mytext.Value; changed_text.InnerHtml = str.ToUpper(); } </script> <!-- Layout --> <html> <head> <title> Change to Upper Case </title> </head> <body> <h3> Conversion to Upper Case </h3> <form runat="server"> <input runat="server" id="mytext" type="text" /> <input runat="server" id="button1" type="submit" value="Enter..." OnServerClick="convertoupper"/> <hr /> <h3> Results: </h3> <span runat="server" id="changed_text" /> </form> </body> </html> Any idea? Thanks.
Krydos Posted October 17, 2017 Posted October 17, 2017 Does it work if you encode it for linux? I see you have it dos encoded.
miwilc Posted October 23, 2017 Posted October 23, 2017 @OP you can use the dos2unix program (on Linux, maybe cygwin) or some option in sublime text3 to convert to utf8.
niandu Posted November 3, 2017 Author Posted November 3, 2017 (edited) I'm sorry but the file is now encoded in utf8 but it still does not work. Obviously I'm doing something wrong, but I do not think it's the file.You guys could restore the test.aspx file so we check that everything is working fine?Thanks the same file works hosted in "somee" .... http://niandubay.somee.com/ Edited November 3, 2017 by niandu
Krydos Posted November 4, 2017 Posted November 4, 2017 Ok, here's the test file. https://asp.niandubay.tk/test.aspx and here is your simple script https://asp.niandubay.tk/ 1
niandu Posted November 4, 2017 Author Posted November 4, 2017 What was the problem with the script? the format?Thanks.
Krydos Posted November 5, 2017 Posted November 5, 2017 No, asp.net access had been automatically removed from your account for inactivity. Java and asp.net use a lot of system resources, and the more people who have them enabled causes the server to perform worse even if their site doesn't get any traffic at all.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now