The other issue was the length of the boxes. With a width value that was consistent apart from in Opera but we can live with that.
The next stage was to get the button to react when Enter was pressed on the keyboard. Trawling Google suggested that the answer was something like
Page.RegisterHiddenField("__EVENTTARGET", Mybutton.ClientID)It was then that I put out a plea for help only to get the most straightforward of answers, i.e. for this sort of thing you just need to set a SUBMIT button and turn it into a server control so that it can respond to events e.g.
<input type="submit" value="Send me your name!">In theory this is a simple, effective solution but I still don't know at the moment as my version is not updating when I run it, build it, etc.
These controls are all in a user control. When I make changes to the user control they do not seem to propogate through unless they are in the code-behind page. I have tried building, rebuilding etc. In despair I will have to look at the MS site.
No comments:
Post a Comment