Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试将我的 ImageMap 控件设置为不同的 imageurl,如下所示:
ImageMap1.ImageUrl = grapth; Response.Redirect("~/StockData.aspx");
但由于某种原因,页面 ImageMap ImageUrl 保持不变。
有任何想法吗?
当你调用Response.Redirect时,浏览器会发出一个全新的 HTTP 请求,所有ImageMap1.ImageUrl与当前页面相关的状态(如 )都被丢弃。
Response.Redirect
ImageMap1.ImageUrl
如果当前页面已经是 StockData.aspx,那么您应该简单地删除重定向。