Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? On ASP .NET render times.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
With Classic ASP it was said that creating code like this:

<td><%= variable1 %></td>

would be slower than, say, have all your html rendered thru the server enging, like this:

insertText = insertText & &quot;<table border='1' cellpadding='4' cellspacing='0' width='95%' align='center'>&quot;
...
Response.Write insertText

Is that still the case with .NET? Or can I go with the 1st example. (Which is easier to work with in developer tools.)
 
Not 100%, but I would think that coding things within the code behind would be better optimized than using the <% %> tags.

One question though: which developer tools are you using?

You mention that the first example is easier to work with, but if you're using visual studio.net, thats definately not the case. Just curious what tools you have going for yoru development.
:)

Jack
 
Well... for ASP, I was using Frontpage. Doing all the coding myself, I coulda used NotePad, but I liked the color coding. Basically teaching myself...

I got VB .NET standard now, and am just starting with ASP .NET in it. I like the fact that it lays all the properties out easy to get to and change, but Standard criples the SQL connection functionality, so I have to code it also. Yea, I am learning about code behind, and it looks like it will be much faster as well as cleaner... looks like I'm gonna start using labels too... but I am going to be needing more experience with it. I'm using Begining ASP .NET using VB .NET by Wrox to learn it. (I learned ASP with Beginning ASP 3.0 by them). So far I haven't put anything into production with .NET, haven't even started trying. But thankfully my company is letting me learn on the job as I did with ASP. Check out my site at:
(use 666666 for the original job number)

We do photo development.
 
Cripples the SQL connection functionality eh? How so?
I was thinking of getting the standard for home (we use Enterprise Architect at work), but its good to know any issues with it that may not be present in the higher-up versions.

The book you have is great (its what I used when I started with asp.net), but just keep in mind that, unless they have an updated version of the book, they won't show many examples using visual studio.net (or vb.net standard like you have). Instead, they show the old school asp way, and a few examples might even talk about using the command prompt compiler. If you're using the latest tools (ie vs.net), then alot of that doesn't apply, as the focus is really on coding in the code behind rather than within the html view.

Just something to keep in mind while reading through the book.
:)

Jack
 
Well... let's see. When you're in VB .NET (Std) and try to do a DB connection, it will only let you use the wizard/built-in control with Access or SQL on the system (forget what they call it, but it's basically the home edition of SQL). It gives an error message when trying to connect to SQL on a server. I worked around this by just putting my connection in the code behind after everything else. Just makes you have to type it all manually, that's all. There are a few other things I've heard of, but nothing I've seen really. Never really gotten into GUI IDE's... always seem to like to type it out myself. We'll see as I get into more of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top