soona Posted November 14, 2008 Share Posted November 14, 2008 Hi, now i am worked Asp.net.c#....designed one button ....button click event make conform MsgBox...use as following code..." Button1.Attributes.Add("onclick","return confirm('Are you sure you want to delete this record?');"); "it's work fine...but incase textbox value enter after press the enterkey automatically open the confirm MsgBox...why?here, i need to hide the Confirm msgbox at that time press enter key...pls it's urgent...help me.... Link to comment Share on other sites More sharing options...
HostingASPNet Posted December 7, 2008 Share Posted December 7, 2008 Hello,It's because the default focus is on button1 when the form is loaded, so you should change the default focus.Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.