Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Events don't fire?!

Reply
Thread Tools

Events don't fire?!

 
 
shapper
Guest
Posts: n/a
 
      06-20-2007
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

 
Reply With Quote
 
 
 
 
MasterGaurav \(www.edujini-labs.com\)
Guest
Posts: n/a
 
      06-20-2007
> 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
-----------------------------------------


 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3JpcmFtIFN1cmFwdXJlZGR5?=
Guest
Posts: n/a
 
      06-20-2007
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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
runtime events that generate other controls and events newbye ASP .Net 0 07-06-2006 06:27 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
order of events - dynamic checkbox events =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= ASP .Net 0 08-17-2005 10:36 PM
Re: passing variables between web page events & httpmodules events Alvin Bruney ASP .Net 1 11-24-2003 04:14 PM
Passing Variables between Web Page Events and HttpModule Events shiv ASP .Net 0 11-21-2003 04:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57