To the ASP.NET professionals.. :)

wyrd

Well-known member
Joined
Aug 23, 2002
Messages
1,408
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 dont need. This is one of the reasons why so many stayed away from Frontpage and the like.

I dont know, maybe its 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 thats the way I learned and thats
the way I like it. :)

BTW, I havent notice any additional code generated by the ide. ?
 
I havent done much with ASP.NET, but I dont particularly like that
forms designer thing that generates the code. It doesnt seem very
HTML-like.

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

Well, maybe it doesnt. That was more or less a question rather then a statement based off a general observation. Ive 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 "developers 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 dont 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, its the nature of the beast. Thats why I never use them.

That said, the VS.NET one is one of the best Ive seen, it formats HTML nicely and inserts a minimum of useless stuff.
 
And with Web Matrix you dont 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 dont need IIS, it ships with its own server.

Oh really?

*installs*

Now were talking. :) In VS when I previewed the page, the web form controls wouldnt show up.

I like this much better... it doesnt 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">
        &nbsp;<!-- 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

Thats not all, either.. hered 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 its just the old school in me, but I like the fact that the Web Matrix doesnt automatically produce a code behind file with all that code.
 
Back
Top