Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > UpdatePanel Trigger - DefaultButton in ASCX Problem...

Reply
Thread Tools

UpdatePanel Trigger - DefaultButton in ASCX Problem...

 
 
koraykazgan koraykazgan is offline
Junior Member
Join Date: Aug 2007
Posts: 5
 
      08-14-2007
Hi all,

I have a user control (ASCX). In that user control there is a panel, and inside that panel there is a textbox and a button. The panel has a DefaultButton property set, which is set to the button inside it.

I also have a page, and on that page there are two instances of that user control (uc1 and uc2). I additionaly have an update panel on the page. In that update panel there is a label. This update panel has two async triggers defined, one for uc1 and the other one for uc2.

What I want is simple. When I am in the textbox of uc1, type something and press enter (not clicking the button), I want the label to display the entered text. Also when I am entering text in the textbox of uc2 and press enter, the label should display the text of the textboxin uc2.

So far so good, it is working in IE7. But I want this also to work in Firefox 2. In firefox, when I am in the textbox and press enter, nothing happens. If I remove the trigger of the update panel, it is working. Also, when I put the control directly on the page (without putting them in a user control), it is working too.

I thought it is maybe not working because I have not defined the eventName of the trigger. So I have written an event for the usercontrol and raised that event in the user control ButtonClick event, and in the trigger I set EventName to that event, but it also doesn't worked in firefox.

So I think this is a bug of the Update Panels Triggers. Please let me know, if I am doing something wrong.

Thanks for help...
 
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
Triggering an UpdatePanel with a trigger located outside of the UpdatePanel Nathan Sokalski ASP .Net 1 06-15-2009 06:23 PM
Nested UpdatePanel with trigger in parent mohaaron@gmail.com ASP .Net 1 12-11-2007 12:59 PM
UpdatePanel trigger in different usercontrol. zb ASP .Net 1 11-08-2007 07:34 AM
refresh an updatePanel in an other updatePanel fran_j_diaz@yahoo.fr ASP .Net 3 08-08-2007 06:30 AM
trigger updatepanel from gridview button =?Utf-8?B?Sm9l?= ASP .Net 0 08-08-2007 05:02 AM



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