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!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 3/2/2005 3:32:18 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
www2005
Asp.Net User
Passing parameters to custom server controls3/2/2005 3:32:18 AM

0/0

Newbie question...

Is it possible to send one or more parameters upon instantiation of a custom server control? If so, how? Or can someone point me to a good online resource?

Thanks!
konacoder
Asp.Net User
Re: Passing parameters to custom server controls3/2/2005 1:50:01 PM

0/0

TreeViewControl is a custom control that I have created. You can assign parameters in the form of class Attributes.

WebControls.TreeViewControl treeControl = new WebControls.TreeViewControl();
treeControl.ID = "treeControl";
treeControl.Path = ".";
treeControl.AppData = "data";
contentPanel.Controls.Add(treeControl);


If you wanted to define values for the custom control on your aspx you would simply do the following

<Tree:TreeControl id="treeControl" path="." appdata="data" />

Any more questions please let me know.

Chris
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET for Developers Authors: Michael Amundsen, Paul Litwin, Pages: 458, Published: 2001
Professional ADO.NET 2: Programming with SQL Server 2005, Oracle, and MySQL Authors: Wallace B. McClure, Gregory A. Beamer, John J. Croft, John J. Croft, IV, J. Ambrose Little, Bill Ryan, Phil Winstanley, David Yack, Jeremy Zongker, Pages: 614, Published: 2005
Beginning ASP.NET 1.0 with Visual Basic.NET: With Visual Basic .NET Authors: Chris Goode, John Kauffman, Rob Birdwell, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Ollie Cornes, Dave Sussman, Matt Butler, Gary Johnson, Chris Ullman, Ajoy Krishnamoorthy, Juan T. Llibre, Pages: 816, Published: 2002
VB & VBA in a Nutshell: The Language Authors: Lomax, Pages: 633, Published: 1998
Visual Basic .NET Developer's Guide to ASP.NET, XML, and ADO.NET Authors: Jeffrey P. McManus, Chris Kinsman, Pages: 592, Published: 2002
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Network Security: The Complete Reference Authors: Roberta Bragg, Mark Rhodes-Ousley, Keith Strassberg, Pages: 854, Published: 2004
Mastering SQL Server 2005 Reporting Services Infrastructure Design Authors: Joseph L. Jorden, Pages: 486, Published: 2007
Pro SQL Server 2005 Reporting Services Authors: Rodney Landrum, Walter J. Voytek, II, Walter J. Voytek, Pages: 374, Published: 2005

Web:
Passing parameters to custom user controls : The Official ... Passing parameters to custom user controls. Reply Contact. I need to write a custom control, such as a fancy text box with custom behavior, ...
Help with passing bound values as parameters into custom web ... Help with passing bound values as parameters into custom web control. Last post 10-01-2008 9:20 AM by HLL. 5 replies. Sort Posts: ...
Creating Server Controls Creating the DataDropDownList Control Testing Your Server Control Custom ... to which you could pass in many of these parameters, a custom control would be ...
Passing parameters to custom element extensions - CodingForums.com Passing parameters to custom element extensions Post a JavaScript. ... User Control Panel, Private Messages, Subscriptions, Who's Online ...
How to hiddenly pass parameters to a web user control ? - .NET ASP How to hiddenly pass parameters to a web user control ? ... own, by for example implementing a custom httpmodule which rewrites a ...
Custom Parent Class Analysis & Passing Parameter - Blackbaud User ... Reload this Page Custom Parent Class Analysis & Passing Parameter .... User Control Panel, Private Messages, Subscriptions, Who's Online, Search Forums ...
CodeProject: Passing parameters between C++, PHP, JavaScript, etc ... Passing parameters between C++, PHP, JavaScript, etc. ... Static & Panel Controls ... Other custom formats I see used are often inefficient, ...
ControlBuilderFAQ - Show FAQ - Custom parameters for data sources Custom Parameter for User Control Property by Travis (Posted on 11/30/2006 1:00: 00 AM). "I want a custom parameter that can pass a user control's public ...
p2p.wrox.com Forums - C# passing parameters to custom control class p2p.wrox.com Forums - c# passing parameters to custom control class. ... ...
15 Seconds : Building ASP.NET User and Server Controls, Part 2 Solomon Shaffer explains custom controls, describes the complexities and issues ... We call the first function (passing in our parameters set with our ...

Videos:
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 Assistant Prof...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










skinning showcase

changing a password in ad with dnn 3.2.2

date format problem

please help! an unhandled error has occurred.

page duplication - need help!

solpart menu ssl bug

child portals in 3.1.1

how do i pass a querystring to iframe page?

rights to module settings

tsunami disaster

updated homeland security module

how to dynamically modify background on desktopmoduletitle

3.0.4 issue: events module error

role change not effective.

vertical solpart menu separator

solpartmenu help ... remove shadow

an approach to upgrading localized files?

can view externally, but not from the server hosting the site

problems moving a hosted site to a local site?

how can i add user accounts without being the administrator?

moduleid = -1 ????

child portals

dnn 3.0.12 - readme documents

indenting child treenodes in dnntree

one user control's pop-up window

hiding subdirectories in file picker drop-down list

3.0.6 wrong portal alias listing

search within module (3.0.9) - core enhancement request/question for core

ver 2 beta question

any one know of a good pop up module

  Privacy | Contact Us
All Times Are GMT