Hybrid Control: Accessing all properties of a child control
21 Feb 2007 17:04:58 -0800
Hello,
I have a hybrid control. To make it easy, lets say that it consists
of a label, a textbox, and a button. I want to make the child label's
properties available in the designer, but I don't want to have to
program a get and set for every property. I have made the controls
"public" but only the butto ...
|
Persisting Child Controls, Property Collections and Individual Properties
Wed, 21 Feb 2007 12:09:32 -0800
I have a custom composite control whose markup needs to contain child controls, an array property, and simple properties, all as
nested tag elements, e.g.:
<cc1:MyComposite runat="server" id="whatever" SimpleProp1="somevalue">
<ChildControls> <-- this is a property collection, of controls
<ChildControl1 . ...
|
Problem with javascript file in ASP
Tue, 20 Feb 2007 23:21:25 -0800
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP
Pro SP2, IE 7, VS2005, ASP.net 2.0
The problem is that I'm trying to display this news scroller made in a
Javascript file(newsscroller.js) in my ASP page, everything works great in a
normal HTML page, I can see the scroller just ...
|
Custom controls in a Formview
Tue, 20 Feb 2007 12:37:27 -0800
I have a custom control in a Formview. This custom control consists of a
textbox, a label and some code-behind. The code behind generates a codenumber
in the label based on a database and the entry in the textbox. Everything
works fine. I bind with two properties the textbox and the label text to a
datasou ...
|
Can you set a "required attribute" on control property?
Tue, 20 Feb 2007 10:41:08 -0800
When creating a property for a server control can you set some sort of
"required attribute", so that the developer sees the browser message you see
when you leave off an attribute on a Microsoft control:
Parser Error
Description: An error occurred during the parsing of a resource required
to serv ...
|
Designers Not Called for Child Controls
Sun, 18 Feb 2007 21:29:37 -0800
In design-mode, when my databound composite control creates its child controls and adds them to its control collection, the
designers for the newly-created child controls (which are also composite databound controls) don't get called.
Why is that? I thought the designer was always called when a child control i ...
|
Updating Custom Control at Design Time
Sun, 18 Feb 2007 15:54:35 -0800
Okay, I'm confused: I have a custom composite control which has several "steps". I've created the DesignerActionList infrastructure
to move between the steps at design time. The methods that control the movement get called, the "step state" gets changed...but the
design surface doesn't update to reflect the chan ...
|
|
|
Custom Control with DataControlField
Sun, 18 Feb 2007 10:00:31 -0800
I want to build my own custom control utilizing the DataControlField. What I
can't figure out is how to parse the markup such as:
<MyControls:MyCustomGridView . >
<Columns>
<asp:BoundField DataField="FirstName" HeaderText=" FirstName "
SortExpression=" FirstName " />
<as ...
|
Catch-21 with WMI / TrustLevel
Sun, 18 Feb 2007 00:08:45 -0900
With a Catch-22, of course, there's no way out. You're stuck. A Catch-21, on
the other hand, is one level down in severity and therefore may be exited by
the clever and crafty. I believe this to be one such situation.
So here's the problem...
I'm putting the finishing touches on the licensing for a custom ...
|
GridView DataBind() Not Working
Fri, 16 Feb 2007 21:43:12 -0800
I have a GridView as a child control in a custom composite control which is stubornly refusing to databind at design time. I'm
convinced I must be missing something about how the databinding process works differently at design time.
Here is the code that constructs the GridView in CreateChildControls():
gri ...
|