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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP CODE BEHIND? Can someone explain what this is.

Status
Not open for further replies.

ghost2

Programmer
Aug 7, 2003
145
US
I am trying to create a file similar to another set of files I have from another user. I am new to ASP.NET. What is the code behind file? I am in a new asp application project and I cant seem to figure out what this means.
 
are you using VS.Net? If not than what enviornment are you designing in? The code behind file is where your code is (vb, c++, c#), the aspx file is the web page (html) and style sheet is where you can keep your formating options (i've have used these yet) for the aspx file.

you can write all your code in the aspx file using the <% %> delimiters, but it's ulgy and cumbersome.

Jason Meckley
Database Analyst
WITF
 
Ok so what I did was created a code behind file with a call to variables I needed to populate. Now I need I guess to create the HTML page that inherits this code. How can I do that?
 
What development envoirnment are you using?

Jason Meckley
Database Analyst
WITF
 
Visual Studio 2003. I created an ASP Application.
 
To design a web app all you need to do is click
File->New->Blank Solution

From the dialog box select
Visual Basic Projects -> ASP.Net Web Application

Name Your App and click OK. This will open your new web
To add a new object click File -> Add Item...
Select Web Form and name the web form. To get to the code behind double click the web form.

To run the code click Debug -> Start
For more assistance use the Help Files.
Help -> Contents -> Visual Studio .Net -> Samples and Walkthroughs -> Web Form Application


Jason Meckley
Database Analyst
WITF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top