To the ASP.NET professionals.. :)

wyrd

Senior Contributor
Joined
Aug 23, 2002
Messages
1,405
Location
California
I was looking at ASP.NET and was thinking about the old school days when I was coughing up PHP code on a notepad, and then I had a strange thought...

Do you folk who program in ASP.NET use a text editor or go with the GUI provided by MS (Studio .NET or that free one.. forget the name).

The reason I thought about this, is that I was looking at the code that the GUI editor produces, and it seems like a bunch of code you just don't need. This is one of the reasons why so many stayed away from Frontpage and the like.

I don't know, maybe it's just the unnatural feel that I get when toying with ASP.NET using the .NET GUI.
 
Yeah, for classic asp and html, I use mostly notepad, but for .net I
use the VS IDE, and I do it all in the code-behind. I never use the
designer, primarily because that's the way I learned and that's
the way I like it. :)

BTW, I haven't notice any additional code generated by the ide. ?
 
I haven't done much with ASP.NET, but I don't particularly like that
forms designer thing that generates the code. It doesn't seem very
HTML-like.

I would download some customizable "developer's notepad" and
see if you can find an ASP.NET syntax colorer. www.editplus.com has
a good text editor.
 
BTW, I haven't notice any additional code generated by the ide. ?

Well, maybe it doesn't. That was more or less a question rather then a statement based off a general observation. I've looked at a few text editor based ASP.NET programs and when playing around in the IDE it just looked to me that it produced a whole lot of extra code. I should really word my sentences more carefully...

I would download some customizable "developer's notepad" and
see if you can find an ASP.NET syntax colorer. www.editplus.com has a good text editor.

Wow.. nice. I never noticed anything like this (and to think I scripted PHP for 2 years in all black! :eek: ). Definitely a nice find, thanks for the link.
 
Well, it does add some code such as default params for the
controls, but I really don't see anything wrong with that.

For me to use Notepad to code ASP.NET would be like stepping
back in time to JAVA or PERL or even classic ASP. Ugh to all. :(

BTW wyrd, were you refering to Web MAtrix ?
 
Using any WYSIWYG HTML editor is always going to result in _some_ extra bits added to your code, it's the nature of the beast. That's why I never use them.

That said, the VS.NET one is one of the best I've seen, it formats HTML nicely and inserts a minimum of useless stuff.
 
And with Web Matrix you don't need IIS, it ships with its' own server.

Maybe we should start recommending it to the members having IIS troubles. *As Robby thinks out-loud*
 
And with Web Matrix you don't need IIS, it ships with its' own server.

Oh really?

*installs*

Now we're talking. :) In VS when I previewed the page, the web form controls wouldn't show up.

I like this much better... it doesn't seem to produce the "default" code either that VS produces...
Code:
<%@ Page Language="VB" %>
<script runat="server">

    ' Insert page code here
    '

</script>
<html>
<head>
</head>
<body>
    <form runat="server">
         <!-- Insert content here -->
    </form>
</body>
</html>

This is from VS for comparison...

Code:
Public Class WebForm1
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
    End Sub

End Class

That's not all, either.. here'd the HTML portion of it...

Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication4.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
		<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">

		</form>
	</body>
</HTML>

Maybe it's just the old school in me, but I like the fact that the Web Matrix doesn't automatically produce a code behind file with all that code.
 
Back
Top