Hi Anton,
Here is the code snippet you need to add in your page load
event (serside)
Page.RegisterHiddenField("__EVENTTARGET","btnSave" );
In the above line, btnSave is my default button to save my data on the
form. This "RegisterHiddenField" to allows server controls to
automatically register a hidden field on the form. The field will be
sent to the Page when the HtmlForm server control is rendered.
I hope this will help you.
-Sri.
"Anton ml. Vaheie" <va*****@email.si> wrote in message news:<eU*************@tk2msftngp13.phx.gbl>...
Hi,
Can somebody tell me how to convince explorer that my "button" will be
pressed when I press Enter - in other words that it will be default button.
Just like in windows forms. I use web form button.
Thanks,
Anton