473,790 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inherits from webcontrol or webcontrols

Hi,
I would like to know whats the difference of inherit from webcontrol or webcontrols

In wich cases its better the use of one or another

Thanks in advance
Regards
Josema.
Nov 15 '05 #1
1 2823
WebControls is a namespace, so you can't actually inherit from it. So,
WebControl would be the correct choice.
I would recommend though that you determine if there may be a MS control
that does nearly what you want and just inherit from that. You can save
yourself a lot of time and effort by modifying an existing control then
starting from scratch at WebControl.

"Josema" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** ***********@mic rosoft.com...
Hi,
I would like to know whats the difference of inherit from webcontrol or webcontrols?
In wich cases its better the use of one or another?

Thanks in advance.
Regards.
Josema.

Nov 15 '05 #2

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

Similar topics

3
3607
by: Mike Owen | last post by:
I have just tried to open a the file "Controls/CreateEditPost.cs" from within Visual Studio .Net, and the error message: 'An error occurred while loading the document. Fix the error, and then try loading the document again. The error message follows: An exception occurred while trying to create an instan of System.Web.UI.WebControls.WebControl. The exception was "Constructor type System.Web.UI.WebControls.WebControl not found" '
1
2734
by: Divya | last post by:
Hello This is my 1st project where I have to create a Webcontrol. I have created a simple custom control with a button and 2 labels added to a panel. My problem is that the event handler that I have assigned to the button , is not getting invoked. Could anyone please go thru the code and let me know what I am missing here? Thanks in advance My custom control is as follows using System using System.Web using System.Web.UI using...
3
1275
by: kw | last post by:
Page X loads WebControl Y which loads WebControl Z. WebControlZ defines a button: protected System.Web.UI.WebControls.LinkButton SearchByAssr; here comes the problem: private void InitializeComponent() {
3
1456
by: spmm# | last post by:
Hi! Could someone please help me with the following; I have a WebControl that basically looks like this: public class LeftMenu : System.Web.UI.WebControls.WebControl { private string m_CurrentNodeId = string.Empty; public string CurrentNodeId
0
1150
by: Alex Nitulescu | last post by:
Hi, I have the following in project "RaducuCustomControls": Imports System.ComponentModel Imports System.Web.UI <DefaultProperty("Text"), ToolboxData("<{0}:Rotator1 runat=server></{0}:Rotator1>")> Public Class Rotator1 Inherits System.Web.UI.WebControls.WebControl Public Items As New ArrayList()
7
3422
by: n33470 | last post by:
We're in the process of migrating our projects to use VS2005 from VS2003. We have a web page that uses the XML WebControl (System.Web.UI.WebControls.Xml) to perform an XSLT tranformation by using the property "Transform" of the webcontrol. Here is a sample: xmlMessage.Transform = _app.Cache.UserMessagesXsltUser; 'xmlMessage' is the XML Web Control, and '_app.Cache.UserMessagesXsltUser' is the transformation to apply.
0
977
by: Gary Rynearson | last post by:
I have an aspx form that conatains a WebControls.Table object. I also have a class inheriting from the WebControl class. That class is instantiated using the Table as a parameter, and adds checkboxes into rows / cells, as shown in the code below. The page loads fine, but after a postback, the checkboxes do not appear. Can anyone provide assistance on getting them to persist? Gary
0
2031
by: Dariusz Tomon | last post by:
Hi I have got the problem with web control displaying flash (swf) object. The problem is connected with the fact that 1-st swf should loads the second one. But it doesn't. That's why I suspects taht webcontrol or class under it causes that problem. Maybe the following code is too long to analyze so pls redirect me whare I could read/download the code suitable for that purposes.
3
1915
by: Bob | last post by:
Hi, I 'm starting asp.net and i saw two ways to make buttons. Which way to use? Are the htmlbuttons in specific case better than webbuttons? Are there advantages? Thanks Bob htmlbutton: <script runat="server">
0
9666
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10413
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9986
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4094
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
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.