CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 4/6/2005 5:11:04 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 19 Favorited: 0 Favorite
9 Items, 1 Pages 1 |< << Go >> >|
haidar_bilal
Asp.Net User
Static inside Custom Control4/6/2005 5:11:04 PM

0/0

Hello, still a beginner in control building Big Smile [:D].
I am trying to have a static method inside a custom control.
I would like to ask some private controls inside that custom control. I should place those controls as static too, but when in the same time EnsureChildControls() should also have a static, but it cannot have static + override, what shall we do ?

regards

Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
wessamzeidan
Asp.Net User
Re: Static inside Custom Control4/6/2005 6:16:51 PM

0/0

The question is, why would you want a static method inside a custom control?
Wessam Zeidan
haidar_bilal
Asp.Net User
Re: Static inside Custom Control4/6/2005 7:58:23 PM

0/0

Hi Wissam, how are you doing now.
Well, what I did was a contactus custom control, where I need to have a method called SendMail(), I wanted it to be static since, I won't be initializing a new instance of the control, I would directly want to use:

// ContactUs.SendMail();

However, to do so, the SendMail method uses internal controls, which should be also defined as static, if that is true, then CreateChildcontrols() should also be static, but it can't be since its defined with override.

So, got me ?

regards

Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
wessamzeidan
Asp.Net User
Re: Static inside Custom Control4/6/2005 8:14:43 PM

0/0

if you don't want to initialize a new instance of the control, then how are you planning to use the custom control?? I don't think its possible..


Wessam Zeidan
haidar_bilal
Asp.Net User
Re: Static inside Custom Control4/6/2005 10:06:15 PM

0/0

Hello Wessam well what I did was as follows:

on the page I used:

<ctrl:main ....id="contact" /> as an example

in code behind:

Components.BusinessLayer.ContactUs contact;
string name = contact.Name;

That's all

regards

Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
wessamzeidan
Asp.Net User
Re: Static inside Custom Control4/7/2005 7:22:28 AM

0/0

so you are initializing the control
Wessam Zeidan
haidar_bilal
Asp.Net User
Re: Static inside Custom Control4/8/2005 8:31:33 AM

0/0

Hello, well yes that is true.
So how could I set up such a static method ?

regards

Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
wessamzeidan
Asp.Net User
Re: Static inside Custom Control4/8/2005 9:19:08 AM

0/0

Since you're using the controls in your custom control to get values for the SendMail method, then the logical thing to do for the SendMail method is for it not be a static method. As you know static methods can only use members in a class that are declared static.
Wessam Zeidan
haidar_bilal
Asp.Net User
Re: Static inside Custom Control4/10/2005 7:02:10 AM

0/0

Hello Wissam, after all I had not to use static and things are fine now.

regards

Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming Windows Presentation Foundation Authors: Chris Sells, Ian Griffiths, Pages: 430, Published: 2005
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Pro .NET 2.0 Windows Forms and Custom Controls in C#: From Professional to Expert Authors: Matthew MacDonald, Pages: 1037, Published: 2005
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
The Java Developer's Guide to Eclipse Authors: Jim D'Anjou, Sherry Shavor, Scott Fairbrother, Dan Kehn, John Kellerman, Pat McCarthy, Pages: 1136, Published: 2004
Special Edition Using Microsoft Office 2003 Authors: Ed Bott, Woody Leonhard, Pages: 1324, Published: 2004
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
The Java Developer's Guide to Eclipse Authors: Jim D'Anjou, Sherry Shavor, Scott Fairbrother, Dan Kehn, John Kellerman, Pat McCarthy, Pages: 1083, Published: 2004
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006

Web:
CodeProject: ASP.NET AJAX support in custom controls. Free source ... Jun 20, 2008 ... NET custom control to make it work with ASP. ... It will even work inside an UpdatePanel , but only if your component is static - I mean, ...
CodeProject: Creating and Using custom controls in VC++. Free ... Sep 21, 2003 ... This article will create a custom control using the custom control on the control bar.; Author: Yogesh M Joshi.; Section: Static & Panel ...
Custom Static Control Products from Formaspace Technical Furniture GlobalSpec Product Announcement for Formaspace Technical Furniture - Today's tech and electronics lab configurations demand durable and rugged construction, ...
Custom Labels, Custom Stickers, Fast Label Printing Services ... Custom printed control panels are available in any size, any shape and ..... from static cling for inside windows to double sided decals and tags that show ...
CodeProject: Static & Panel Controls. Free source code and ... Static Controls - Beginners; Static Controls - Custom Controls ..... A Static derived class which provides a check box to enable/disable items inside it ...
SingingEels : Building Custom ASP.NET MVC Controls Aug 1, 2008 ... In this article, we'll see how to create 'custom controls' in ASP.NET MVC. ... public static string Marquee(this HtmlHelper html, ...
Custom Controls For buttons and static text controls, the owner-drawn style affects how the ... Custom controls might be required to send notifications of events to the ...
Static Control Containers on ThomasNet.com Company Profile: ISO 9001 certified manufacturer of standard & custom static dissipating plastic materials including static control containers, clamshells, ...
Custom Static Text It contains all the functionality of the regular PowerBuilder static text control but with a few extra's. The following features make this custom static ...

Videos:
ESDA Principles of ESD Control Demo Video for: ESDA Principles of ESD Control - an excellent introductory-level ESD training program developed in partnership with the ESD ...
COLORdash Par CONTROL FEATURES 3, 4 or 9-channel DMX-512 LED wash light (with ID addressing) Operating modes 3-channel: RGB control 4-channel: RGB ...
My Custom Character Showcase This video shows the 4 custom characters I've made so far. All but Shade are a part of Team Chaos. In Left to Right order: Blitz the Hedgehog ...
How to Display your visitor's countries flags counter on your ... http://www.webseomasters.com Dispaly your visitor's country flags on your webpage. You Only need to upload a small HTML code. Every webmaster ...
AT THE Z00 - Google Earth - details under (More info) CLICK (More info) FOR VIDEO DETAILS 1) Whale -- Tokyo, Japan 35°43'0.49"N, 139°46'35.58"E National Science Museum, Ueno Park, Tokyo http://www ...
Ginger.wmv Singing Golden Retriever. She is a Southeastern Guidedogs active breeder. This is an animated static image. Enjoy!
XML11: An Abstract Windowing Protocol Google TechTalks June 1, 2006 Arno Puder Arno Puder received his masters and Ph.D. in computer science and is currently working as an ...
Using ROSE to Mitigate Performance Trade-offs Google TechTalks April 03, 2006 Daniel Quinlan ROSE is a tool for building source-to-source transformation tools for the optimization of C ...
PEOPLE OF THE WORLD, LISTEN UP HERE!!: 3/8/08 DUBLIN UFO ... alien grey abduction MIB interview bizarre Glutamine dosco voador Brasil ET extraterrestre sinistro history channel ufo videos alien ufos sighting ...
Fight Club-drawn on ms paint Every one please show ur mates and leave comments, i want some advice, critisism, jst tell me wut u thot this is an amazing video fo me drawing ...




Search This Site:










raised event problem

really need help solving long standing issue with designing controls that share base classes

removing node from dynamically created tree

dll compilation

controls.add() doesnt persist added controls

listing the controls of a certain type form in the property grid

which host offers the most disk space? (i need a lot!)

reflection class returns string tags problem

datalist question?

custom inherited controls

browsers refresh is considered a postback after an itemcommand event

hosting problems

dynamicall created controls in a datagrid

accessing session from within a web control

sql server doesn't permit remote access

5 domains on one hosting account? (shared disk space & bandwidth?)

spell checking

handling emails to domain

email

accessing updated control properties

help.... anyone have an answer to this...

need suggestions for web hosting

cellsetgrid: asp.net control for analysis services

build asp.net control with c++

templated controls in vb

how to instantiate usercontrol in a web service?

control designer - help needed

spell checker -- should i build or buy? -- anyone suggest a 3rd party that you like?

a possible bug?

can not resize the control at design time

  Privacy | Contact Us
All Times Are GMT