Author: Geoff Upham | Posted on: 8/19/2009 6:10:38 PM | Views : 266

Hi All
I'm having a little problem implementing a custom WebControlAdapter for button.  I am following the sliding doors pattern to output the following HTML:
<button value="submit" name="Button1" id="Button1" type="Submit" onclick="__doPostBack('Button1','')"><span>Button</span></button> in place of the standard:
<input id="Button1" type="submit" value="Button" name="Button1"/> This is being done (among other reasons) so the button will resize based on the text contained within it, so not purely for aesthetic reasons.  This method is working well in all browsers except IE7 and I assume earlier (IE8 works well).  I have traced the problem to the fact IE7 postsback the contents of the button element as opposed to the value.< ...

Go to the complete details ...