473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Adding a Bindable Property to an Web User Control

Hi All,

I have a web user control (ASCX) that retrieves a set of records from a SQL
Server database.

What I'd like to do is choose a property of that control as a
ControlParameter for an ObjectDataSource. Unfortunately, the custom control
doesn't show up in the list of choosable controls in the designer, and even
if I select Show Advanced Properties (so I can select my control as a
source), it doesn't show the custom properties that I want to use for the
parameters.

Is there a special way to declare a property in a C#.NET ASCX web control so
that it is bindable to an ObjectDataSource control as a ControlParameter?
Nov 20 '06 #1
0 5101

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joăo Santa Bárbara | last post by:
hi all i have created my own navigation component with several buttons, i have based it on the currency manager using a few handlers. but my problem is, in other component that i have created i...
9
by: James Geurts | last post by:
Hey all... I posted this in the vs.net ide group too, but people are not answering, so I figured that it might be more appropriate here. I'm not sure if I'm adding a designer to my code properly. ...
3
by: Miguel.Herrera | last post by:
I like to create an assembly with a property exposed in COM as bindable. I have tried to use attribute but when I check the typelib produced by regasm for my assembly the property does not have...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
0
by: Tommy | last post by:
I have subclassed the textbox and added a property to it with the following code: '-------------------------------------------------------- Imports System.ComponentModel Public Class clsTextBox...
0
by: Bert | last post by:
Hi I am trying to add a property to a class that is derive from asp:placeholder. ? I have tried this but get an ambigous name error: Imports System.ComponentModel Imports System.Web.UI
6
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to...
0
by: tombow | last post by:
I created a custom control (call it MyWidget) in a C# web control library. MyWidget has a SqlDataSource property: public abstract class MyWidget : WebControl { // .... snipped private...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.