怎么用后台代码设置ImageButton的postbackurl

2025-01-04 14:56:03
推荐回答(1个)
回答1:

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
int y = e.Y;
if (y > 200)
{
Response.Redirect("http://www.sohu.com");
}
else
{
Response.Redirect("http://www.sina.com");
}
}