J
jiatiejun
I want write a custom controls (Button or ImageButton derived)
and want set the "name" tag to my custom value
use this.Attributes["name"] = "MyNameValue";
or writer.AddAttribute(HtmlTextWriterAttribute.Name, "MyNameValue");
asp.net add my "name" tag
but itself name tag still exists
result HTML code:
<input type="submit" name="MyButton1" value="" id="MyButton1"
name="MyNameValue" />
---------------------------^^^^^^^^^ Button base class
+^^^^^^^^^^^ I add name tag
-------------------------------------------------------------------+
how to remove Button base class name tag ?
thanks
and want set the "name" tag to my custom value
use this.Attributes["name"] = "MyNameValue";
or writer.AddAttribute(HtmlTextWriterAttribute.Name, "MyNameValue");
asp.net add my "name" tag
but itself name tag still exists
result HTML code:
<input type="submit" name="MyButton1" value="" id="MyButton1"
name="MyNameValue" />
---------------------------^^^^^^^^^ Button base class
+^^^^^^^^^^^ I add name tag
-------------------------------------------------------------------+
how to remove Button base class name tag ?
thanks