473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

First time use VS .Net 2005, questions

Hi all,
I just installed VS.Net 2005 and tried to play with it. I have following
questions
1) I created a web project, I compile it, unlike VS.Net 2003 but I could not
find any DLL files in BIN folder, where are they?
2) I published the site, then I found a file named App_Web_xozrid3w.dll in
folder where I published. It seems that this should be the compiled web
project. BUT I could not find a setting how to control the naming of the
DLL.
3) In VS.Net 2003, the page behind code has something like
#region Web Form Designer generated code
override protected void OnInit(EventArgs e) {
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.Load += new System.EventHandler(this.Page_Load);
this.btnSubmit.ServerClick += new EventHandler(btnSubmit_ServerClick);
this.valDate.ServerValidate += new
ServerValidateEventHandler(valDate_ServerValidate) ;
}
#endregion
But it is no longer available in this version. How can I turn them on by
default? And AutoEventWireup="true" is default in ASPX page now.
4) I added a Global.Asax, the code behind is totally disabled, which I hate
a lot.
5) Anybody has some recommendation of some books regarding VS 2005 and
ASP.NET 2.0?

Thanks a lot!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
Nov 19 '05 #1
3 1207
The ASP.NET 2.0 model is built on a completely different compile model, at
least by default. If you desire a known named DLL, you can compile a site
for deployment and have complete control over everything. In fact, there is
an option to compile all of your tagged pages into the DLL and deploy no
pages at all ... only a compiled DLL.

For the most part, ASP.NET 2.0 pushes towards a true dynamic compile model,
which focuses on a single page per DLL. If you want a more 1.x experience,
you have to compile for deploy. I have not done this in the latest builds,
so I am not sure how to do this from the IDE (was command line in earlier
betas).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************
"Hardy Wang" <ha*******@newsgroups.nospam> wrote in message
news:ux**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I just installed VS.Net 2005 and tried to play with it. I have
following questions
1) I created a web project, I compile it, unlike VS.Net 2003 but I could
not find any DLL files in BIN folder, where are they?
2) I published the site, then I found a file named App_Web_xozrid3w.dll in
folder where I published. It seems that this should be the compiled web
project. BUT I could not find a setting how to control the naming of the
DLL.
3) In VS.Net 2003, the page behind code has something like
#region Web Form Designer generated code
override protected void OnInit(EventArgs e) {
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.Load += new System.EventHandler(this.Page_Load);
this.btnSubmit.ServerClick += new EventHandler(btnSubmit_ServerClick);
this.valDate.ServerValidate += new
ServerValidateEventHandler(valDate_ServerValidate) ;
}
#endregion
But it is no longer available in this version. How can I turn them on by
default? And AutoEventWireup="true" is default in ASPX page now.
4) I added a Global.Asax, the code behind is totally disabled, which I
hate a lot.
5) Anybody has some recommendation of some books regarding VS 2005 and
ASP.NET 2.0?

Thanks a lot!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #2
see inline

-- bruce (sqlwork.com)

"Hardy Wang" <ha*******@newsgroups.nospam> wrote in message
news:ux**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I just installed VS.Net 2005 and tried to play with it. I have
following questions
1) I created a web project, I compile it, unlike VS.Net 2003 but I could
not find any DLL files in BIN folder, where are they?
it depend on if you are file based or web based project. file based projects
go to a temp area and the VS webserver run them from there.

a web based project will build them in the bin

2) I published the site, then I found a file named App_Web_xozrid3w.dll in
folder where I published. It seems that this should be the compiled web
project. BUT I could not find a setting how to control the naming of the
DLL.
with 2.0 every page produces a dll, and one is created for the the code in
app_code directory. unique names are used, so that if you change a page
source, it can be recompiled while the site is running, becuase the dll has
a diffent name.

generally you don't control the name.
3) In VS.Net 2003, the page behind code has something like
#region Web Form Designer generated code
override protected void OnInit(EventArgs e) {
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.Load += new System.EventHandler(this.Page_Load);
this.btnSubmit.ServerClick += new EventHandler(btnSubmit_ServerClick);
this.valDate.ServerValidate += new
ServerValidateEventHandler(valDate_ServerValidate) ;
}
#endregion
But it is no longer available in this version. How can I turn them on by
default? And AutoEventWireup="true" is default in ASPX page now.
the codebehind is now a partial class (think of it being included with the
code generated from the aspx page). so now the aspx page code defines all
the event linkups and variable definations. so this is no longer needed.

note: autowireup='true" causes the event handler linkups. if you turn this
off, you will need to manually hookup events (like vs2003 needed to do).
4) I added a Global.Asax, the code behind is totally disabled, which I
hate a lot.
things change. not sure what you dislike (why have two files), it edits the
same.
5) Anybody has some recommendation of some books regarding VS 2005 and
ASP.NET 2.0?

the included docs look good to me.
Thanks a lot!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #3
to #3
the code you mentioned is in another class. Seach for partial classes.

regarding #5
http://beta.asp.net/

Does this help?

Regards

Daniel Walzenbach
"Hardy Wang" <ha*******@newsgroups.nospam> schrieb im Newsbeitrag
news:ux**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I just installed VS.Net 2005 and tried to play with it. I have
following questions
1) I created a web project, I compile it, unlike VS.Net 2003 but I could
not find any DLL files in BIN folder, where are they?
2) I published the site, then I found a file named App_Web_xozrid3w.dll in
folder where I published. It seems that this should be the compiled web
project. BUT I could not find a setting how to control the naming of the
DLL.
3) In VS.Net 2003, the page behind code has something like
#region Web Form Designer generated code
override protected void OnInit(EventArgs e) {
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.Load += new System.EventHandler(this.Page_Load);
this.btnSubmit.ServerClick += new EventHandler(btnSubmit_ServerClick);
this.valDate.ServerValidate += new
ServerValidateEventHandler(valDate_ServerValidate) ;
}
#endregion
But it is no longer available in this version. How can I turn them on by
default? And AutoEventWireup="true" is default in ASPX page now.
4) I added a Global.Asax, the code behind is totally disabled, which I
hate a lot.
5) Anybody has some recommendation of some books regarding VS 2005 and
ASP.NET 2.0?

Thanks a lot!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: DotNetIsHorrible | last post by:
I write CRUD database applications for a living for an audience of about 100 users per application using classic ASP. I maintain and frequently change on user's request 22 different applications...
5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
2
by: DWalker | last post by:
In Visual Studio (Visual Basic) .NET 2002, I noticed that this: Dim Elapsed as DateTime = Now - Now gives a "compile time" error (error in the IDE), saying that the '-' operator is not...
9
by: Silas Justiniano | last post by:
Hello guys. I know just the basics of C... I want to learn it more. Friends told me: you need your own project, and I think the same. Everything I was thinking to do, already exists, memory...
4
by: Learner | last post by:
we can download the Management Studio Express for free from MS website. I did the same thing on my personal laptop. But can we develop applications using free downloaded Management Studio and...
0
by: Scott Nonnenberg [MSFT] | last post by:
Log in with us and spend some time talking about your favorite tool for writing C# code! Come to ask questions, suggest new features, or just hang out with the people who work on the tool you use!...
44
by: user | last post by:
Hi, Let's say I have 2 dates in the b/m format: Date 1 and date 2 How do I check whether Date2 is later than Date 1? Date1. 21-Nov-2006 09:00:00 PM
2
by: Pete | last post by:
Sorry if this isn't the place to ask, but I can't locate a more specific NG to post this in. I grabbed the SDK and Visual Studio 2005 add-ins for .net 3.0 and decided to take a look at it. ...
6
by: alho | last post by:
The web service is called by a program running on pocket pc. When to call the web service, the first call is still ok, but for the second or later calls, it will throw "403 Forbidden" WebException....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.