473,513 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beta 2 inherits

Hello,

I was using the following for my codebehind with VW Developer Beta1:
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.ImageButton
Imports System.Data
Imports System.Data.OLEDB
Imports System.Web.Mail
Partial Class default_aspx
When I created a new page, I got the following.
Partial Class default_aspx
Inherits System.Web.UI.Page

My question is how do I convert what I had in Beta 1 to the new format (Beta
2)?

--
Thanks in advance,

sck10
Nov 19 '05 #1
2 994
the coding model has been changed. in asp.net 1.0, the aspx page inherited
from the code behind. this caused the following

1) the code behind had to declare the server controls
2) the code behind had to hookup the events
3) to share variables from the codebehind to the aspx page, they had to be
protected

the new model, is thru the partial code model, the code behind and the aspx
page are merged into one il file (but you may think of it as a source
merge).

so to convert code from 1.0 to 2.0

1) change the class def to be a partial
2) remove all those protected declares
3) remove all form designer 1.0 code
4) open the page in the new designer
5) fix any compatibility changes

-- bruce (sqlwork.com)


"sck10" <sc***@online.nospam> wrote in message
news:eS****************@TK2MSFTNGP14.phx.gbl...
Hello,

I was using the following for my codebehind with VW Developer Beta1:
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.ImageButton
Imports System.Data
Imports System.Data.OLEDB
Imports System.Web.Mail
Partial Class default_aspx
When I created a new page, I got the following.
Partial Class default_aspx
Inherits System.Web.UI.Page

My question is how do I convert what I had in Beta 1 to the new format
(Beta
2)?

--
Thanks in advance,

sck10

Nov 19 '05 #2
Thanks for Bruce's informative suggestions.

Hi Sck10,

For detailed description on the changes from beta1 to beta2, we can also
refer to the tech articles in the ASP.NET
dev center in msdn site:

#Changes for Beta 2
http://msdn.microsoft.com/asp.net/be...ta2update.aspx

Hope also helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3

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

Similar topics

1
1046
by: Wernfried Schwenkner | last post by:
I've run an site with beta 1.0 without any problems. Today I've installed Beta 2.0 and can't even run a simple empty page. Creating an empty site, adding a Default.aspx form. This runs on the temporary IIS started from within the studion. But copying the site to the real IIS site, I get the error Der Typ 'Default_aspx' konnte nicht...
8
1683
by: Wernfried Schwenkner | last post by:
I've run a site with beta 1.0 without any problems. Since I've installed Beta 2.0 I can't even run a simple empty page. Creating an empty site, adding a Default.aspx form. This runs on the temporary IIS started from within the studio. But copying the site to the real IIS site, I get the error Der Typ '_Default' konnte nicht geladen...
4
1609
by: Charts | last post by:
6/23/05 ..NET Development\Framework\dotnet.framework.aspnet Visual Studio 2005 Beta 2 project cannot work in IIS virtual directory I used Visual Studio 2005 Beta 2 to build a simple new web site. Default.aspx file is like following.
9
2128
by: RBM007 | last post by:
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same tags and properties are used in a page without a masterpage. Does anyone shares this exprerience with me or does anyone knows an answer? For the...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7565
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5103
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4759
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.