CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/16/2004 11:11:10 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
superconsultant
Asp.Net User
DropDown type of property for server component.8/16/2004 11:11:10 PM

0/0

I am building server control to be added to ViSual Studio tollbox. I want one of the properties to be like a DropDown type. So when developer has to set this property he will simply select one of the options from dropdown, but I can't use enumerations because data for dropdown comes from the database.

If anyone has an idea how to do this please advice.
Andy Smith
Asp.Net User
Re: DropDown type of property for server component.8/17/2004 3:11:26 AM

0/0

I can tell you how to create a dropdownlist for a string property, but how do you plan on knowing/setting the database connection string at design time?
superconsultant
Asp.Net User
Re: DropDown type of property for server component.8/17/2004 5:20:30 AM

0/0

That's easy I will simply have another propert let's say Connection which will be up to user to set it first.

Regards,
Dimitry
AndrewSeven
Asp.Net User
Re: DropDown type of property for server component.8/17/2004 3:44:48 PM

0/0

By reading the connection string out of the web.config after doing a bunch of crufty stuff with EnvDTE to find the file.
superconsultant
Asp.Net User
Re: DropDown type of property for server component.8/17/2004 6:48:13 PM

0/0

Andrew,

I still didn't get the first part. When I read connection string property retrieve the data and populate this other property it works fine if the property of type ArrayList or array of strings but when I try to make the property of type DropDownList it is not being populated.

Please advice.

Regards,
Dimitry
Andy Smith
Asp.Net User
Re: DropDown type of property for server component.8/18/2004 2:34:50 AM

0/0

you can use code similar to this to make your string property have a dropdownlist UI in the propertygrid. Just change it to get your data instead of getting a list of server controls.
superconsultant
Asp.Net User
Re: DropDown type of property for server component.8/19/2004 11:16:19 PM

0/0

Andy, Thanks for directions.



Does anyone know if there is a way to a pass back parameters to TypeConverter class or set its properties or maybe let's say use it dynamically not like this bellow:


<TypeConverter(GetType(StatesList)), _
CategoryAttribute("Custom List"), DefaultValueAttribute(""), _
DescriptionAttribute("Select a state from the list")> _
Public Property State() As String
Get
Return _State
End Get
Set(ByVal Value As String)
_State = Value
End Set
End Property
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Flash 8: The Missing Manual Authors: Emily A. Vander Veer, Emily A. VanderVeer, Pages: 446, Published: 2006
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
Programming Flash Communication Server Authors: Brian Lesser, Giacomo Guilizzoni, Robert Reinhardt, Joey Lott, Justin Watkins, Pages: 816, Published: 2005
MCAD/MCSD Training Guide (70-310): Developing XML Web Services and Server Components with Visual Basic. Net and the . Net Framework Authors: Mike Gunderloy, Ed Tittel, Pages: 1024, Published: 2003
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Borland C++ Builder 6 Developer's Guide Authors: Bob Swart, Jarrod Hollingworth, Mark Cashman, Paul Gustavson, Pages: 1097, Published: 2003
VB & VBA in a Nutshell: The Language Authors: Lomax, Pages: 633, Published: 1998
Pro SQL Server 2005 Integration Services: Intergration Services Authors: James Wightman, Pages: 548, Published: 2007

Web:
15 Seconds : Creating a Server Component with VB - Redesigned - Part 1 But there was also a downside to this type of server-side component design. ... Below is the VB code for the property procedure that will assign the value ...
11 Configuring Enterprise Manager to Manage Application Server ... Table 11-2 Single Sign-On Server Target Properties .... Select IM from the Component Type drop-down menu. Select the targets that you want to add to the ...
Standard Dropdown List Component Properties Window - Sun Java ... Type: boolean If the property is selected, the Dropdown List cannot be ... Picks up the currently selected list element and sends it to the server when the ...
Deploying components to a server Type the name of the file where you want the properties exported, ... to deploy the components from the Please select the destination server drop-down menu. ...
NetBeans Visual Web Pack - Technical Tip - Using a Drop Down List ... Here we bind the value of the items property of the dropdown1 Drop Down List component to the listOptions[] property of SessionBean1. ...
CodeProject: DropDownList and ListBox ASP.NET controls with ... Notice, if property AutoPostBack is true, in addition to standard behavior of DropDownList and ListBox controls, an automatic postback to the server will ...
Enfold Systems: Summary & Reference Works with any Plone installation if the free Server Component bundle of Plone ... This is equivalent to the "Page" content type from the Add dropdown list. ...
Remote Data Access Synchronization with SQL Server 2005 Compact ... Locate and click the DisplayStyle property, and then select ImageAndText in its drop-down list. Locate and click the Text property, type Load Server Data, ...
DataBinding: 'System.Data.DataRowView' does not contain a property ... University of Connecticut This section will help you configure the Remote Desktop server component so ... the dropdown list for "Start type:" and select the option for Automatic. ...

Videos:
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...




Search This Site:










webcontrols: tabstrip & toolbar

one more irritating question about customizing createuser wizard

question about authentication events ???

sending a data row from one page to another

problems with the asp.net starterkit commerce download...please help!

how to build the module custom parent-child action menu, i code like this, but not work.

home sitemap missing..please help

new and popular photo web box not showing pics

fckeditor

register and login

publishing website

adding data to a table that isn't part of the original sql query

complete newblie questions

postback newb confusion

need some hosting suggestions (lots of sql and bandwidth)

vs 2005

string conversion - best practise

ajax or hide panel

several tables missing in pubs database

additional controls for createuserwizard.

need a push in the back......new(whanna)be!!!!

custom control within a control control

sqlsourcecontrol and mxdatagrid

login status using session

not merging all files

re: cache problem with firefox

curl equivalent in php

print control

listbox and dropdownlistbox

unable to add ajax web parts

 
All Times Are GMT