473,586 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In VS.NET can you disable auto-code-behind?

Ian
When you add a control to the web form designer in VS.NET, say a label
called "InheritanceTes tLabel", VS.NET automatically adds the following
line to the code-behind.

protected new System.Web.UI.W ebControls.Labe l InheritanceTest Label;

I would like to inherit the code-behind from a class that already has
this protected member field. If you leave the line in the inherited
code-behind VS.NET complains that you need the new keyword cause
you're hiding the base class field.

Is there a way to disable this auto-code-behind behavior? Or ideally
for it to be smart enough to only add controls if they're not present
in the base class? If theres not a way to get rid of it, is there a
way to conditionally compile around it or something?

Ian
Nov 17 '05 #1
0 1293

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

Similar topics

0
1842
by: rawCoder | last post by:
If an item is added in a grid, then the grid scrolls automatically either to bring the selected or the last entered item in focus. Is there a way to disable this scrolling. Means, If I am looking at item number 500 and the item number 100 is selected and an item is added at the top. Then grid doesnt scroll anywhere and item number 500...
9
24150
by: junlia | last post by:
Does anyone how how can we disable the auto-postback feature in asp.net page? I have to use a server side control in the page, but the auto post back feature in it causes problems for me. Please help! Thanks much, Junlia
24
4845
by: Agnes | last post by:
I need to disable the exit button in the form . However, the min. and max. button need to keep it How ? Thanks a lot From Agnes
2
8331
by: KKuser | last post by:
Hello: I currently use Me.FormBorderStyle = FormBorderStyle.None to hide the tile bar, but it looks quite ugly. It's easy to disable the "X" button using VB6, but I really can't find out any way to do the same thing using VB.Net.
1
1297
by: Julien Grossiord | last post by:
Hello, As I do not need it, I would like to disable ViewState on my server but even if I use <pages enableViewState="false"> in web.config or <%@ Page EnableViewState="false" .... %> in my pages, I still have a hidden field __VIEWSTATE in the form. Do you know how I could disable it ? Best regards, Julien.
2
565
by: Larry | last post by:
Is there a way to disable all the controls the instant any auto-postback controls are changed (resulting in a postback that takes a couple seconds), so that the user can't continue changing other controls while the postback to the server is running? The reason this is necessary is because the user can be fooled into not knowing that the...
2
1336
by: Joe Cool | last post by:
When I put a disk in my dvd drive, most of the time windows askes me how I want to process the files on the disk. Sometimes, it will automatically open a browser window showing the contents of the disk. I have an application I wrote in VB2005 that puts together pieces of a larger file that had been burned to two or more disks. When it...
2
5613
by: khng | last post by:
How to disable the copy/drag event for some selected textfield as I want the user to key in instead of copy or drag the required information. For IE, I done it with the onPaste and onDragEnter Event, but it don't work on Other Browser, so I need your helping hand
3
3071
by: dasani | last post by:
Hello, I have a question about disabling auto-spell-checker function of some browsers, especially the current version of Safari. Although the function is useful in general, it's problematic for my case here. I've been working on web sites, where students input English words to test their vocabulary. However, since enabling the...
0
2153
by: =?Utf-8?B?Y29kZW11dHQ=?= | last post by:
I've got a problem where my HTTP WCF messages are not going where I want them to go because my company has tightened its proxy restrictions. Basically the AUTO-DETECTION of a proxy that has been set up for the browser to hinder certain website access is causing .NET / WCF to use the proxy when sending messages bound for a different web...
0
7912
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
7839
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
8202
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. ...
1
7959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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
5390
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
3837
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
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

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.