dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Where do I stick the code?

  1. #1
    Join Date
    Sep 2004
    Location
    Chicago
    Posts
    9

    Where do I stick the code?

    Code behind the code, What the hell is that?

    OK I understand ASP.NET code is read from the top down. Can I code the HTML and then add all the kewl ASP code with absolute positiong of obects after the HTML?

    I'de like to develope pages in RAD proggies like Dreamweaver or Corel Rave and what not and then add all the kewl ASP.NET stuff.

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    You can stick the code above the html or in the head within some script tags like so
    <head>
    <script runat="server">
    code here
    </script>
    </head>

    You can also put code in code behind file which is basically like a script section like this, but outside of the file and it is requested in the directive at the top, or in an extneral class. You can embed code within the body of your html as well

    <a href="<% this code goes within the html and will fire on page load %>">this link was genorated by the code</a>

  3. #3
    Join Date
    Sep 2004
    Location
    Chicago
    Posts
    9
    Thanks so much PeOfEo. I was suffering from information overload at MSDN site. Did learn all kinds of other neat stuff along the way. Thanks again.

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    www.4guysfromrolla.com is another great place. Lots of good articles there.

  5. #5
    Join Date
    Sep 2004
    Location
    Chicago
    Posts
    9
    Wow you not kidding. The ASP.NET section is for idiots like me. Thanks again.

  6. #6
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    no problem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles