Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Dear Support.
I am using Msgbox control as per below on my button click event.
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click If RadioButtonList1.SelectedIndex = -1 Then MsgBox2.Show(Me.Form.Page.ToString, "Please select the Indet Forward To", Nothing, New EO.Web.MsgBoxButton("OK")) Exit Sub End If
End sub
Msgbox open but my cursor focus on the Button2 so if i click enter then again button2_click event fire.
I want when msgbox open my main page get inactive and msgbox dialog can active. Please guide us how to get the same result.
Thanks, Mehul
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can use a Dialog control instead of a MsgBox control. Dialog control allows you to explicitly put button in there. You can then programmatically set focus to the button that you put in the dialog control.
Thanks
|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hi,
But same function works ok in Firefox and other browser. Only in IE it works different, In IE if we press spacebar then work ok but when press enter it click the main page button click event.
Thanks,
Mehul
|