This question shows research effort; it is useful and clear
-1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
只是想知道是否可以不拆分以下步骤......
Button b = new Button()
{
// You can access Attributes here, but only get, not set.
ID = "btnExample",
Text = "Click Me"
};
b.Attributes.Add("onclick", "alert('hello, world')");