Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Event

Thread Tools


Posts: n/a
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

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

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

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?

Reply With Quote

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
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
Catching a RequiredFiled Validator event in PageLoad or some other event? Lars Netzel ASP .Net 3 07-22-2004 10:48 PM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net 2 05-25-2004 11:45 PM
PreRender Event occurs immediatley after Load event =?Utf-8?B?QWxpcmV6YSBaaWFp?= ASP .Net 1 02-09-2004 10:19 AM
Event On Form From Control Event Dave Wurtz ASP .Net 1 12-09-2003 10:37 PM