• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

how does asp .net work exactly?

dowxp

Diamond Member
I got curious and opened up a C# asp .net project and it seems good, with easy interfacing with sql and form designs. As i played with it, i found .net is obviously not a web design program. it only seems to be capable of writing backend server code.

how do i interface it with a real html design program? dreamweaver? my only experience really is php, which is embedded within htm ( though named .php ). aspx is confusing to me as i do not know how to incorporate my functions within htm tags.

i cannot go as far as creating a basic link tree. =( . any help? i do remember dreamweaver having an asp project function though.
 
This is the most loaded question I've ever seen in OT 🙂

I wouldn't even know where to begin discussing! .NET is a programming framework.
ASP.NET is a subset of .NET for webbased applications.
 
besides the point that asp .net is a subset and stuff, that is pretty obvious.

hrm, i guess i will have better luck looking at sample website code.
 
here's a quick overview. Hopefully you understand classic ASP.

In asp.net applications, most developers like to separate code from design. That way the designers can work on the .aspx page, and the coders can work on the .aspx.cs page. With traditional ASP, you'd always worry about overwriting someone else's code because its the same file. Not anymore. What we do at my development shop is have the coders code in VS.NET after the designer (me) develops the interface and UI using photoshop/dreamweaver. I save my HTML files as a .aspx file, and pass it off to the coders. When i'm done doing UI, i start helping with the coding.

You can still embed server side code in your aspx page, but it defeats the purpose of "backend" code. Do NOT try to design interfaces by dragging and dropping with VS.NET. It's horrible at it. Remember, that it's based on the same HTML engine that frontpage came from. You can still code all your UIs in the HTML editor, though.

.NET is similar to VS6 in that it uses event procedures. For instance: create an aspx page and place a server-side control on it. Let's say we place this: <asp:button id="btnSubmit" runat="server" cssclass="buttonclass" />. It's just a button with a CSS class. Ok, now we go to the interface view in VS.NET and double click the button. It should automatically take us to the "code behind" page (.aspx.cs) with the event procedure already setup. It will say something like "btnSubmit_click" in the heading. You code directly in that space provided, and whatever you write will be carried out everytime someone clicks the button. Just like VS6. Remember that VS.NET is object oriented, so things will be slightly different than ASP 2/3.0 or VB6.

You can also try building applications with DMX, but its a bit harder. DMW gets your DB connections and everything up very quickly, but coding with it is like coding from notepad: you really have to know the syntax down pat, because it aint giving you any hints. I'd recommend using a combination dmx/ps7/vs.net development environment.
 
hrm, i understand sort of now. is there a way to create a "template" as it does in dreamweaver? or would you basically "save" a template and "open it\save as" everytime you wish to create a new page?

thanks for the links, I will read them during my boring classes. furthermore, is there any advantage to using sql to access, vice versa? is ms SQL == mySQL (php version [?])

thanks fuji.
 
i assume you mean templates for aspx pages and not "code" templates. I don't know, because i still use DMX templates. I just save as an .aspx file and code to it using VS.NET.

Microsoft SQL Server != MySQL, though they're similar in syntax. I haven't worked much with MySQL, so i cant give you all the details, but MySQL is much more economical. Our MS SQL Servers at work are tens of thousands of dollars. I think MS SQL is a bit more suited for enterprise development.

Lastly, Access is ok for small db-driven apps and web pages. Scalability isn't very good, though. SQL is much more advanced in structure and is better for business or enterprise level apps. While you're experimening and learning, access is fine. Try to query from it using SQL so that your apps will scale better to SQL server in the future.
 
Back
Top