我似乎无法理解ASP.NET页面的生命周期及其实际含义。我尝试做的是在用户单击提交按钮后加载一个跳动的图像,然后在页面使用数据网格重新加载后使这种跳动消失。有没有人能开导我一下?蒂娅!
发布于 2013-03-12 05:54:55
当提交显示图像的页面时,可以使用RegisterOnSubmitStatement运行一些javascript函数。
var script = "document.getElementById('MyImage').style.display = 'block'";
Page.ClientScript.RegisterOnSubmitStatement(GetType(), "ShowImage", script);要使用IE (已知错误)在回发期间制作动画gif动画,请执行以下操作(使用jQuery):
var src = $theImge.attr("src");
$theImge.attr("src", "test.png"); //can be anything
$theImge.attr("src", src);
$theImge.hide();
$theImge.show();https://stackoverflow.com/questions/15348883
复制相似问题