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.
在删除 asp.net 网页中的项目之前,我添加了一个确认对话框。这是我的编码。
OnClientClick="return confirm('Are you sure you want to delete this Contact Record?');"
它给出的默认标题为“本地主机上的页面:49456 说:” 我需要更改此对话框的默认标题。我的默认浏览器是 Google chrome。有人可以帮我吗???提前谢谢。
像这样提供所需的标题。
OnClientClick="return confirm('Are you sure you want to delete this Contact Record?','Your Title');
注意:调整页面标题时 - 如果 aspx 页面将其设置为“”,则无法在此处更改。因此,在 .aspx 页面中将其设置为空字符串以外的内容;例如:
Page.Title = "Some New Title";