473,386 Members | 1,745 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,386 software developers and data experts.

Events don't fire?!

Hello,

I created a user control (.ascx), named Message, with 2 properties:

Messages Generic.List(Of String)
IconUrl String

Messages items are added to a bulleted list named BL_Messages on its
Load event
IconUrl is used as ImageUrl of an Asp Image and is defined in its Load
event.

On the page where I have this user control I have a button.
On this button Click event I have the following:

MyMessage.Messages.Add("Something")
MyMessage.IconUrl = "../Images/Deny.jpg"

When I click the button I don't see any change on my UserControl.

I tried everything I could think of but I can't figure what is going
on. It's like the events are not being fired.

What am I doing wrong?

Thanks,
Miguel

Jun 20 '07 #1
2 1354
On the page where I have this user control I have a button.
On this button Click event I have the following:

MyMessage.Messages.Add("Something")
MyMessage.IconUrl = "../Images/Deny.jpg"
How are you storing the data for Messages and IconUrl properties?
In ViewState or only as private variables?
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Jun 20 '07 #2
It seems you are not rebidning the controls in user control with properties
after the button click

regards
Sriram

"shapper" wrote:
Hello,

I created a user control (.ascx), named Message, with 2 properties:

Messages Generic.List(Of String)
IconUrl String

Messages items are added to a bulleted list named BL_Messages on its
Load event
IconUrl is used as ImageUrl of an Asp Image and is defined in its Load
event.

On the page where I have this user control I have a button.
On this button Click event I have the following:

MyMessage.Messages.Add("Something")
MyMessage.IconUrl = "../Images/Deny.jpg"

When I click the button I don't see any change on my UserControl.

I tried everything I could think of but I can't figure what is going
on. It's like the events are not being fired.

What am I doing wrong?

Thanks,
Miguel

Jun 20 '07 #3

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

Similar topics

14
by: JPRoot | last post by:
Hi I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
2
by: Mark Broadbent | last post by:
I initially posted a problem in the aspnet.webcontrols and have now found why the problem existed. Just thought I'd post this to see if this was perhaps a known issue. Scenario: I have a simple...
0
by: ariesc | last post by:
I upgraded from .NET 2002 to .NET 2003 and found one weird things on the LEAVE / ENTER events within a datagrid. I added handler to each textbox of a datagrid, then handle the ENTER/LEAVE events....
8
by: MrNobody | last post by:
If I have a control like say a drop down list and I have some kind of onSelectItem change event, is there a way to temporarily suspend the event handling (without removing the event and then...
3
by: MikeK | last post by:
Ok, I've been noodling with this for several days now and I'm starting to go crazy. Does Apple's Safari browser support drag events on Textarea elements? The few specs and docs I've found seem to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.