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: 11/10/2005 2:54:59 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 181 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
atrehan
Asp.Net User
Extending DropDownList11/10/2005 2:54:59 PM

1/1

Hi Friends,

I had created a Control that extends Drop Down List, what i am trying to do is pull the data from the dtabase depending on one of the property. I had created a contrrol that is working properly except two Issues.

1) There is one custom property in the control on the basis of which Data is filled in the Drop Down List. The Drop down works properly when this property is set from the tags on the aspx page. when i set the property from the Code Behind it dosent get executed.
i.e
<my:dropdown id="ddl" runat="server" customProperty="123"></my:dropdown>

Here if i initialize the property customProperty it works fine. But if i write the same property in Code behind file like
ddl.customProperty="123", it doesn't work.

2) There is one more prooperty that binds the Data to the Drop down ist , when i add the property to the control tag at Design Time the control is not created and shows an error, but at runtime it works properly. It means the property for data source is running at the Design time and throwing error. So i wan to know how can the properties be added at the runtime.

<my:dropdown id="ddl" runat="server" customProperty="123" returnData=""></my:dropdown>

Here returnData is the property that sets the DataSource

Public WriteOnly Property returnData() As String
   
Set(ByVal Value As String
)
      MyBase
.DataSource = getData()
      MyBase
.DataBind()
   End
Set
End
Property

getData() is the function that returns the data from the Database.

when i add the property returnData to the control tag and try to view the control in Design view the control is not created at DesingTime but works fine at Runtime.

Any Direction will be heartly appreciated.

Thanks,
Amit

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


Free Download:

Books:
Beginning Dreamweaver MX 2004 Authors: Charles E. Brown, Imar Spaanjaars, Todd Marks, Pages: 792, Published: 2004
Beginning Dreamweaver MX Authors: Charles Brown, Imar Spaanjaars, Todd Marks, Pages: 816, Published: 2003
ASP.NET Data Web Controls Kick Start: Kick Start Authors: Scott Mitchell, Pages: 432, Published: 2003
Special Edition Using Microsoft Project 2002 Authors: Tim Pyron, Pages: 1224, Published: 2002
Ivor Horton's Beginning Visual C++ 2005 Authors: Ivor Horton, Pages: 1182, Published: 2006
Exploring Interface Design Authors: Marc Silver, Pages: 336, Published: 2005
Microsoft Sharepoint: Building Office 2007 Solutions in VB 2005 Authors: Scot P. Hillier, Pages: 552, Published: 2007
ASP.NET Developer's JumpStart Authors: Paul D. Sheriff, Ken Getz, Pages: 648, Published: 2002
Advances in Artificial Intelligence: 14th Biennial Conference of the Canadian Society for Computational Studies of Intelligence, Ai 2001, Ottawa, Canada, June 7-9, 2001 : Proceedings Authors: Canadian Society for Computational Studies of Intelligence Conference, Eleni Stroulia, Stan Matwin, Pages: 366, Published: 2001
AutoCAD 2008 and AutoCAD LT 2008: No Experience Required Authors: David Frey, Jon McFarland, Pages: 698, Published: 2007

Web:
Data binding problem extending DropDownList - ASP.NET Forums Data binding problem extending DropDownList. Last post 05-04-2007 1:46 PM by RichardD. 2 replies. Sort Posts: ...
Extending DropDownList's Methods (trying to put javascript code to ... For that reason, I extended the dropdownlist class and tried to put that javascript code inside the databind() method, by overriding it. ...
Extending the DropDownList to Support Enums: ASP Alliance In this article, Steve demonstrates how to bind a DropDownList to an Enum type, and then goes on to create a generic EnumDropDownList control which will ...
Extending DropDownList - ng.asp-net-forum.windows ... Extending DropDownList, > ROOT > NEWSGROUP > Asp.Net Forum > windows_hosting. hosting_open_forum, Date: 11/10/2005 2:54:59 PM, Replies: 0, Views: 2, ...
ASP.NET Extending DropDownList with custom collection Jun 26, 2006 ... Extending DropDownList with custom collection. Jack Wayne posted at 23-Jun-06 11 :25. Hi, I have a collection ie bookCollection ...
Custom auto-bound Drop Down List This is a custom control, extending a System.Web.UI.WebControls.DropDownList that has one extra parameter: CodeName. The goal is to be able to do something ...
DropDownList with default values I am extending DropDownList class to make it reusable rather than populating the Items collection in every CodeBehind. ...
CodeProject: Extending GridView Control: Using a DropDownList ... An article using DropDownList Pager in GridView Control; Author: mastereuo; Section: Grid & Data Controls; Chapter: Desktop Development.
Custom DropDownList control in ASP.NET 2.0 All it does is extend DropDownList as follows: using System.Web.UI; using System .Web.UI.WebControls; namespace POLISY.Web.UI.Common ...
Inline Edit AJAX Control Extender for both Textboxes and Dropdown ... Extending DropDownList Controls The label is initialized with the text property of the selected item in the dropdownlist. The value property is not used to ...

Videos:
WCF Extended Header Menu Plugin Dropdown Demo of the extended header menu.
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










user accounts available for non administrators in dnn2.0

alternative rss feed display methods?

masterpage and content help

dot net menu

setup up problem! any idea?

problems with menbership in dnn3

how to reuse controller from the core : reference required error (3.0.8)

freetextbox : dead or alive

executereader and returnvalue

check/ unceck child check boxes in tree view

using forms mode with activedirectory to protect subdirectory

asp.net com interop + winsock under iis 6

asp.net 1.1 sp1 and msidxs oledb provider

proper way to copy all modules to a new portal?

images on master page not lining up correctly

directory listing denied??

security concerns regardin dnn being placed on my web server

remotely fixing a dnn3.0 portal with a bad portal alias

cannot load custom module

syntax highlighting and intellisense not working inside <script> blocks

 
All Times Are GMT