Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: noob 2 .net

  1. #1
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts

    noob 2 .net

    hey guys,
    complete noob to .net, jsut started some tutorials about 20 mins ago.
    curious, im running iis and wen i try to access a .net page in mozilla it asks me to download? is it not supported?
    and also im using a form, but everything listed in the form isnt showing up in IE.
    am i doing something wrong.
    here is the code from the tutorial.
    Code:
    <%@ Page Language="c#" %>
    
    <html>
    
      <head>
        <title>An ASP.NET Application</title>
        <script runat=server>
       void Page_Load(Object sender, EventArgs e) {
       
       title.text = "our aplication";
       title.Font.Bold = true;
       title.Font.Italic = true;
       
       txtbox1.text = " Type Something Here";
       
      }
      
      void OurButton_Click(Object sender, EventArgs e){
      title.text = txtBox1.text;
      }
        
        </script>
        
      </head>
      
    <body>
    <form name="" id="" runat="server">
    
      <h1>An ASP Application</h1>
    
      <asp:Label 
           id="title" 
           Text="Our Label" 
           runat="server" />
      <p>
    	   
    	   <asp:TextBox
    	   ID="txtbox1"
    	   Text="a text box"
    	   runat="server"/>
      <p>
    	   
    	   <asp:Button 
    	   id ="ourbutton"
    	   text="do it"
    	   onClick="OurButton_Click"
    	   runat="server"/>
    	   
    </form>
    </body>
    </html>
    can one of you pros explain y there is nothing showing up on my IE page.

    cheers.

    baleric

  • #2
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    found out y, i installed .Net Framework 2.0
    didnt know i had 2, gave me a list of errors,
    also didnt know things were case sensitive in .net,
    that kind of sucks....

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I believe only c# is case sensitive, if you coded in VB.NET it wouldn't be.

  • #4
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whats the difference between the 2?

  • #5
    New Coder
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    They are simply different languages, although most people consider VB.NET easier to understand.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •