473,473 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Protection levels after Conversion Wizard

Hi

I've got a project I've just run through the conversion wizard, and it's
giving me a few headaches.

I've got a user control which has controls referrenced from its calling page
(usercontrol1.textbox1.text etc).

All worked fine in V2003, but 2005 is giving me a "usercontro1.textbox1 is
inaccessible due to it's protection level" error. Obviously, with it now
being a partial class, I can't look at or edit the public/private declaration.

How do I fix this in 2k5!?

Cheers

Dan
Jan 8 '06 #1
1 1750
Hi Dan,

Welcome to MSDN newsgroup.
As for the control member variable's access level between asp.net 1.1 and
2.0 pages /usercontrols, that's a known change since the asp.net 2.0 page
now use dynamic compilation and partial class which no longer require us to
explicitly declare the control vairables in page class..... And for our
old 1.1 page or Usercontrol, if we use public member variable to expose
control instances, we'd recommend change them by defining some public
properties that wrapper those control members. Also, here is a tech article
covers the most changes when upgrading asp.net 1.x project to asp.net 2.0
application also the best practice of how to modify them:

#Common Web Project Conversion Issues and Solutions
http://msdn.microsoft.com/asp.net/re...default.aspx?p
ull=/library/en-us/dnaspp/html/conversionissuesasp_net.asp
Also, the dev team have just published a update on the VS IDE's web project
upgrade wizard:

#Microsoft Visual Studio 2005 - Update to the Web Project Conversion Wizard
http://www.microsoft.com/downloads/d...652-FC04-4EF8-
A28A-25C5006677D8&displaylang=en

So please feel free to post your feedback or requests to our MSDN feedback
center:

http://lab.msdn.microsoft.com/produc...k/default.aspx

we'll be more than happy to recieve more and more feedback from our users,
and the dev guys can also try improving them from those requests and
comments.

Thanks & 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.)

--------------------
| Thread-Topic: Protection levels after Conversion Wizard
| thread-index: AcYUWJule66h5cjcRO+NSqf75QAh7Q==
| X-WBNR-Posting-Host: 172.203.227.195
| From: "=?Utf-8?B?bXVzb3NkZXY=?=" <mu*******@community.nospam>
| Subject: Protection levels after Conversion Wizard
| Date: Sun, 8 Jan 2006 05:37:02 -0800
| Lines: 19
| Message-ID: <07**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:369302
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi
|
| I've got a project I've just run through the conversion wizard, and it's
| giving me a few headaches.
|
| I've got a user control which has controls referrenced from its calling
page
| (usercontrol1.textbox1.text etc).
|
| All worked fine in V2003, but 2005 is giving me a "usercontro1.textbox1
is
| inaccessible due to it's protection level" error. Obviously, with it now
| being a partial class, I can't look at or edit the public/private
declaration.
|
| How do I fix this in 2k5!?
|
| Cheers
|
|
|
| Dan
|

Jan 9 '06 #2

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

Similar topics

75
by: Massimo | last post by:
I'm planning to develop a .NET application using C#, in order to sell it as a shareware and/or as a full package, so I'll need a good way to protect it against piracy. I know some ways to protect...
0
by: Charles Atwood | last post by:
I am trying to use the Java Language Conversion Assistant 2.0 with Visual Studio .NET 2003 on Windows 2000 Server SP4 and .NET framework 1.1 to convert some java files to C#. I go through all the...
3
by: Mark | last post by:
Hi... Maybe I'm just being especially obtuse today, but I've been perplexed by how some of the protection levels have been working with nested classes in C#. I have a parent class that wants to...
0
by: VB Programmer | last post by:
Simple ASP.NET 1 site. Opened solution in beta 2 of 2.0. Ran thru conversion wizard and it states: "Conversion Complete. There were some errors during conversion." I view the conversion log...
2
by: Jim Benson | last post by:
Where is the .NET conversion Wizard. I'm told when trying to open a Vb6 app that the Wizard isn't installed but can't find it on the installation CDs. I would like to see what kind of a job it does...
7
by: guy | last post by:
Has anyone any experience of the conversion wizard for VB6 to VB2005? if so how good is it? also how does it handle database related conversions i.e is ADO converted to ADO.NET etc. the project...
0
by: =?Utf-8?B?RWFjaHVz?= | last post by:
I've made several attempts to upgrade an application from asp.net 1.1 to 2.0. I open the web site by selecting the vbproj file, by selecting the solution file, or by selecting the web application....
0
by: Marchand | last post by:
Hi, after the Visual Studio 2005 vb6 to vb.Net conversion wizard end execution, the projet does not load properly in the solution. The error is file not found. But when I look in the...
0
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized...
0
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,...
0
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.