Ask a Question related to ASP.NET Building Controls, Design and Development.
-
MBO #1
Property is loosing value
Hello NG,
I've created a custom component inherited from
"System.Web.UI.Webcontrold.Button" and added a new String Property
....
Private _waitMessage As String
<Bindable(True), Category("Appearance"), DefaultValue("Please Wait")> Public
Property [WaitMessage]() As String
Get
Return _waitMessage
End Get
Set(ByVal Value As String)
_waitMessage = Value
End Set
End Property
....
If I'm using the component, I can set the property in the property editor,
but when I built the project it is set back to an empty string. I found out
that when I add the component the following code is added to the webform:
....
<cc1:PleaseWaitButton id="PleaseWaitButton1" style="Z-INDEX: 101; LEFT:
392px; POSITION: absolute; TOP: 208px"
runat="server" Text="Search" Width="440px"
Height="128px"></cc1:PleaseWaitButton>
....
It seems that the "WaitMessage" attribute is missing, if I manually add the
attribute like
<cc1:PleaseWaitButton id="PleaseWaitButton1" style="Z-INDEX: 101; LEFT:
392px; POSITION: absolute; TOP: 208px"
runat="server" Text="Search" WaitMessage="Please Wait" Width="440px"
Height="128px"></cc1:PleaseWaitButton>
....
the probelm is solved, the property holds its value also when I build the
project.
What do I need to change in the property or component, that the
"WaitMessage" attribute is inserted automatically when I insert the
component to a webform ?
Thanks and Regards
MBO
MBO Guest
-
#29234 [Com]: empty($object->property) incorrect when property has access overloaded (__get)
ID: 29234 Comment by: phpbugs at thunder-2000 dot com Reported By: chrissy at codegoat dot com Status: No... -
using the Items property in the design time property window
I hope this is the proper forum. I posted this problem in the wrong one previously. I have a custom server control that I am building. Implementing... -
Loosing css?
Hi all! I have a problem with my datagrid and css. To fill my grid, I have a database connection. The sql is partly built from drop down lists... -
Collection Property problems with Image control ImageUrl property and URLBuilder
Been using reflector and examining what Microsoft does with the Rows property in the Table class. It looks like all of the items added to the rows... -
More Collection Property problems with Image control ImageUrl property and URLBuilder
After a few more hours of debugging I discovered that the URLBuilder solution that I mentioned previously does not work because there is no service...



Reply With Quote

