Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Event (http://www.velocityreviews.com/forums/t770445-event.html)

devloper 07-16-2003 02:55 PM

Event
 
I have 2 web user controls in my page. One who manages if
you can go to the other step and the other it's a list of
person. If there is no person in the list you can go to
the other step.

For the control who valid if you can go to the other step,
I had this event to the button in JavaScript.

this.ibtnNext.Attributes.Add("onclick","javascript : return
ValidNextStep("+contDataInfo1.tb_Tickets.Count+"); ");
(I keep this information in the Cache, it's available for
all)

If it's > 0 ok it react to the event in Click in the c#
code.

It's doesn't work really well because it always create the
JavaScript and after it had react to the event of add
person. It's always the value before the event in my
contDataInfo1.tb_Tickets.Count.

I tried to add the control in my page a the event
pre_render, this time I got the good value but I don't
know why it didn't react at my event in my c# code.

What in can do? I can't do that kind of coupling?



All times are GMT. The time now is 03:23 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.