.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 5th, 2004, 03:12 AM
summer00 summer00 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 summer00 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 14 sec
Reputation Power: 0
VS .NET doubt

I have gone through some ASP.NET examples from the net, this is one of the example:

<html>
<head>
<link rel="stylesheet"href="intro.css">
</head>
<script language="C#" runat=server>
void SubmitBtn_Click(Object sender, EventArgs e) {
Message.Text = "Hi " + Name.Text + ", you selected: " + Category.SelectedItem;
}
</script>
<body>
<center>
<form action="intro6.aspx" method="post" runat="server">
//some UI control here
</form>
</center>
</body>
</html>

please notice that the C# code above is within the .aspx file, when i try to create a ASP.NET project using Visual Studio.NET, it created two separated files, .aspx and .aspx.cs(which contains the C# codes) ....so this is totally different with the examples above, may i know what is the differences , can someone please explain on this ? thank you

Reply With Quote
  #2  
Old August 5th, 2004, 09:40 AM
adurstew's Avatar
adurstew adurstew is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 114 adurstew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 33 sec
Reputation Power: 7
Send a message via AIM to adurstew Send a message via Yahoo to adurstew
Visual Studio creates what is known as "Code-Behind" pages. These pages actually get compiled into the project .dll for faster running. In the code that you have above the code has to be "Interpreted" and then run.

Using code-behind is must more efficent.
__________________
Andrew J Durstewitz
ASP.NET,VB.NET,SQL Developer

http://madashellnc.blogspot.com

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > VS .NET doubt


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT