473,498 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Property is loosing value after bulid

MBO
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
Nov 19 '05 #1
0 854

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

Similar topics

10
2036
by: Piotr Wolski | last post by:
hello, as always i have a problem:-) i'm using HTML form. User is adding some date to this form and after that i'm generating plot. When plot is generated i can see en empty form and a plot. I...
11
3307
by: Sims | last post by:
Hi, I heard that there was a chance of 'loosing' a session ID between pages, (when the user clicks from one link to another). Is it really possible? Where could I find a definitive answer to...
1
3106
by: ds | last post by:
hello, i want to know the difference between vb.net and asp.net in intranet application. to bulid a intranet application which is best suited,vb.net or asp.net. i want to know the performance...
3
2457
by: Johnny M | last post by:
using Access 2003 Pardon the subject line, but I don't have a better word for this strange behavior (or behavior I don't understand!!!) I have a class module named DepreciationFactor. One of...
3
1694
by: Windjammer | last post by:
I seem to be loosing my session variable as I move from one application to another The first application presents a menu of applications the user is authed for When I call the next application and...
2
2146
by: rainjack | last post by:
hi, This function is used to store some data into the stl vector, after store it using push_back, and i will delete the allocated memory using delete , but did it also delete the data i have...
5
2132
by: Mirovk | last post by:
The onclick action associated to my formīs radio buttons call to a vbscript were the session values are changed, this happens correctly but with the onclick action associated to my continue button...
1
1645
by: Owen Richardson | last post by:
I have an asp.net website where i have a quick search facility built into my master page. the search is a web control, with a drop down country box and a list box full of cities. When i select...
1
3492
by: Falcula | last post by:
Hello, I have a treeview control, when i select a item i navigate to url. But selected node is lost, it reset itself, loosing state. I post my code here. Thanks in advance. <script...
0
7124
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
7200
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...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.