OnClick 이벤트로 가치를 보내는 방법?
-
20-08-2019 - |
문제
다음 버튼이 있습니다
<asp:ImageButton ID="button1" runat="server"
ImageUrl="~/image.jpg"
CommandName = "id"
CommandArgument = "1"
onclick="button1_Click"
/>
그리고 코드 뒤에
protected void button1_Click(object sender, ImageClickEventArgs e)
{
Response.Write(e.commandName);
}
이것은 작동하지 않습니다 !!
제휴하지 않습니다 StackOverflow