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: 10/12/2004 6:48:59 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 17 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
drdexter33
Asp.Net User
Re-usable custom dropdown controls10/12/2004 6:48:59 PM

0/0

I'm building a support application that re-uses several dropdown lists that get populated from lookup tables.

I thought I'd try my hand at writing custom controls...

I might be doing this wrong, however, here's how I went about it:
-------------------------------------------------------------------------------------------------
1). I added a Web User Control for each dropdown that I needed.
2). I added a dropdown control to each Web User Control.
3). I populated each dropdown with each lookup table.

There currently are no properties or methods in these Web User Controls, just the code to populate the dropdowns with the data.

Now, when I drop a control onto the page, It works great.

Problem is when I need to get a selected value from this particular Custom Control, I'm having a problem.

This code works to an extent, however, it's NOT retrieving the users selected value of the dropdown. I tried using the findcontrol method to drill down into the control and get the dropdown, but it doesn't seem to be working.
-----------------------------------------------------------------------------------------------------

Dim CBOProblemType As Control = Page.FindControl("CBOProblemType1")
Dim ddProblemType As DropDownList = CBOProblemType.FindControl("ddProblemType")
Dim strStatusID As String = ddProblemType.SelectedValue

-----------------------------------------------------------------------------------------------------
Does anyone have experience doing this sort of thing, or know where a good reference or tutorial is?

Thanks.

Doug Dexter


drdexter33
Asp.Net User
Re: Re-usable custom dropdown controls10/12/2004 8:26:59 PM

0/0

Check this tutorial:
--------------------------------------------------------------------------------------------
http://www.c-sharpcorner.com/Code/2002/June/ColorComboWebUSerasp.asp
--------------------------------------------------------------------------------------------
It's in C# but I think I'm on the right track.

Thanks.

Doug

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


Free Download:

Books:
OOP: Building Reusable Components with Microsoft Visual Basic . NET Authors: Ken Spencer, Tom Eberhard, John Alexander, Pages: 500, Published: 2002
Pro .NET 2.0 Windows Forms and Custom Controls in C#: From Professional to Expert Authors: Matthew MacDonald, Pages: 1037, Published: 2005
Pro .NET 2.0 Graphics Programming: From Professional to Expert Authors: Eric White, Pages: 445, Published: 2005
Professional Outlook 2007 Programming Authors: Ken Slovak, Pages: 454, Published: 2007
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Workflow in the 2007 Microsoft Office System Authors: David Mann, Pages: 433, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005
Windows Forms Programming in C# Authors: Chris Sells, Pages: 681, Published: 2004

Web:
15 Seconds : Reusable Components in ASP.NET 2.0, Object Binding ... This article demonstrates how to create a reusable component in ASP. ... the data in this categoriesObjectSource control to a DropDownList control named ...
Creating a Reusable Navigation Menu - ASP.NET - DMXzone.COM Creating a Reusable Navigation Menu. 6515 Users read it. ... Validating Forms with ASP.NET Validator Controls · Creating a Custom DropDown Control ...
Visual Studio Magazine Online | Feature: Design Reusable Custom ... Design Reusable Custom Controls. Build custom controls that can inherit from .... it shows a dropdown list for an enumeration such as LinearGradientMode. ...
CodeProject: Publishing Reusable Templates as Content Types in ... A content type is a reusable collection of settings you want to apply to a ... the “custom” the content type group which created was listed in the dropdown ...
Creating a Reusable Navigation Menu - ASP.NET - DNzone.COM Feb 1, 2006 ... Creating a Reusable Navigation Menu. 3569 Users read it. ... NET DataSet Tips & Tricks · Creating a Custom DropDown Control ...
Inside Microsoft: Code Reuse with ASP.NET Part 3: Custom Controls NET controls for building flexible and reusable components. ... Since the custom control for this example is a modified drop down list, we’ve called it ...
Table of Contents from OOP: Building Reusable Components with ... OOP: Building Reusable Components with Microsoft® Visual Basic® .NET .... NET DropDownList Server Control, 185. Highlighting the Selected Textbox Server ...
InformIT: Building Reusable Form Components in Microsoft Office ... Nov 2, 2007 ... Once you install a template part by using the Add Custom Control Wizard .... a template part that contains a Drop-Down List Box control that ...
Component Based Software Development Framework The process also enabled application developers to build custom reusable .... Also, the GUI Objects for control components such as menus, buttons, dropdown ...
Using the 'Reusable Content' list on a public website Jun 6, 2007 ... Essentially it allows you to choose an item from the Reusable Content list in a SharePoint ... _contentList = new DropDownList(); Controls. ...




Search This Site:










windows 2003 service pack 1 problems ?

why not items showing?

dynamic menu control

asp.net 2 treeview client events

problem with user control!

ie controls

building a .net component to render a .jpg

is this possible?

simple button control

outlook web 2003 controls.

setting property options for a composite control

inherited method calls

quoted attributes in rendered elements

newbie: a very simple example?

object reference not set to instance of object in event handler

server control property is bold in property list

experiences with setting up asp.net .20 membership on hosted environments?

embedding an xslt resource

sorting values in hashtable or sortedlist

servergrid.com or 1and1.com?

problem with databinding custom server control

custom controls question#1

page template and pop up calendar control problem

error on instantiation

assemblyinfo question.

sorting a hybriddictionary?

event handling inside a user control

listbox and dropdownlistbox

inheriting placeholder control problem with databind controls

hosting access db

  Privacy | Contact Us
All Times Are GMT