Expression >
Forums Home
>
Expression Studio Forums
>
Expression Web and SuperPreview
>
following tutorial but no C# script appears in my .aspx page
following tutorial but no C# script appears in my .aspx page
- I'm learning how to use ASP.NET by following along with the tutorial "Creating Online Forms to Collect Data with Expression Web". I start with a blank .aspx page and step-by-step do as the author does. All is well until I am instructed to go to code view and look at the top of the page for a script in C# that supports the ASP.NET controls being used. In the tutorial video there are many lines of C# code within a script but I don't have any script. The only thing that appears is <%@ Page Language="C#" %> below the DTD, otherwise the page is all HTML without scripts.
One other thing - a book I got from the library on ASP.NET wants me to install Visual Web Developer Express, but I believe all I need to work with ASP.NET is available with EW3, true?
Answers
- Yes. And the asp.net framework should already be installed on your computer. EW needs it.
There are free scripts galore to help with form processing [as well, of course, as the example in the tutorial], so you don't need to know how to roll your own, but the idea is correct: the back-end form processing, whichever flavor you want to use, is up to you.- Marked As Answer byClif9710 Friday, November 06, 2009 8:14 PM
All Replies
- Which tutorial? Post a link please, rather than have us search for it.
If it came with resources to download, do so.
Visual Web Developer Express is helpful for anything beyond simple out of the box use of the asp.net controls. EW can get you a long way without it, but VWD Express is free, so, why not? - The tutorial is at http://expression.microsoft.com/en-us/cc950443.aspx
"... all I need to work with ASP.NET is available with EW3, true?"
No, not true. EW is a design tool, while VWD is a development tool. They do complement one another, and work well together, but EW's strength is in design and layout. Yes, it does have some ability to develop with ASP.NET, but it is not principally developed for that purpose, and does not support, for example, code-behind or third-party ASP.NET controls on the design surface, both of which VWD does support.
As long as your expectations are not extravagant, you can use the ASP.NET capabilities of EW to do some development. However, for anything involving data handling or for sophisticated server-sde programming, I would recommend VWD.
Just so you know, the same file can be open in both EW and VWD, either successively or concurrently. Round-trip development using both was one of the strong points of the combination pushed by MS when EW2 was released.
cheers,
scott
Plural's don't have apostrophe's. It seem's sometime's that any word's ending in "s" get a gratuitous apostrophe. Apostrophe's are used to indicate possessive's and elision's (contraction's or abbreviation's).- Edited bypaladyn Friday, November 06, 2009 8:18 PM
- Did you download the "Code/Source Files" that come with that tutorial? That's where extra code the presenter added is. EW doesn't write form processing back end code itself: you do.
- PRESENTER! Yes, author didn't sound quite right. Ok, I see it now. Saw the WMP download, knew I wanted that and thought all the rest were for other players.
So let me see if I have this right. With the HTML forms, when using FP2003, all that's needed to make it work are present. It's a matter of fill-in-the-blank and the FPSE will take it from there.
With EW (that doesn't use FPSE) it's necessary for me to go a bit deeper with forms, whether they are HTML or ASP.NET, and come up with a script (or find one someone else has written) that will do what I want with .NET Framework 3.5 running on the server? To test such creations locally, I need to download and install .NET framework 3.5 on my local machine.
As an example, if I want a simple text box to appear on a webpage and have any entered text be sent to my email address, EW will let me set up the appearance of the box but the emailing won't happen unless I come up with code on my own to make it happen.
Am I getting warmer? - Yes. And the asp.net framework should already be installed on your computer. EW needs it.
There are free scripts galore to help with form processing [as well, of course, as the example in the tutorial], so you don't need to know how to roll your own, but the idea is correct: the back-end form processing, whichever flavor you want to use, is up to you.- Marked As Answer byClif9710 Friday, November 06, 2009 8:14 PM
- Thanks, Scott, that helps to clear up my confusion on the two.
- Yes. and don't feel you're stuck with ASP.NET. PHP is an option too - some find it easier to learn...
--
Chris Hanscom - Microsoft MVP
On Facebook | On Twitter | Resource Center | Veign's Blog | Web Development Help
Get a Complete Website Analysis by Veign - A followup for any others suffering from confusion about Visual Web Developer and EW and ASP.NET, scripting and code-behind...
There is an excellent series of tutorials that start from scratch at http://www.asp.net/get-started/ Scroll down to the VIDEOS section to find "Lesson 1: Getting started with Visual Web Developer Express". It deals with the 2005 edition but the information about how everything fits together to produce an .aspx page is made very clear and easy to understand. While it is not about EW, it deals with subjects that EW handles in part and the background info can't help but inform your use of EW.
Front Page 2003 required no knowledge of what goes on behind the scenes, so I came into EW with much ignorance about what is going on at the server that makes things happen and no knowledge of Visual Basic or C#. Now I understand, thanks to what I've learned from the helpful folks here and the tutorial mentioned above, the pieces of the puzzle and see the direction to move in order to regain control over what I am doing after a lapse of several years. I have a new appreciation of how much FP2003 was doing for me, but the cost of FP ease-of-use was ignorance of what was actually happening when I filled out the dialog boxes.

