|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Starting to learn C# .NET , need some help
I am write now using visual studio .NET 2005, I am a newbie in this field , trying to learn the basics of programming. While I was trying to do this program. I had a problem. Could not find the way to fix it.
I create a new empty web project , and add a text file call step1.aspx and wrote the following code into it . <!-- StepByStep1_1.aspx --> <%@ Page Language="C#" %> <html><head> <script runat="server"> double ToCelsius(double f) { return (5.0/9.0) *(f - 32.0); } </script></head> <body> <h2>Fahrenheit to Celsius Chart</h2> <table border ="2"> <tr> <th>° fahrenheit</th><th>° Celsius</th> </tr> <% for(double f = 50.0; f <= 100.0; f++) { Response.Output.Write("<tr><td>{0}</td><td>" + "{1:f}</td><tr>", f,ToCelsius(f)); } %> </table> </body> </html> The problem I am having is : it say the <html> validation : missing required attribute xmlns and <head> tag title occurs too few times ! Can someone help me ? Thanks arjun |
|
#2
|
|||
|
|||
|
no idea for me....dont mistake
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Starting to learn C# .NET , need some help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|