可以用javascript
<script type="text/javascript">
function ss(messge)
{
return confirm(messge);
}
</script>
sl sc后台
ScriptObject hello = HtmlPage.Window.GetProperty("ss") as ScriptObject;
bool Delete = bool.Parse(hello.InvokeSelf("请确认删除").ToString());
if (Delete)
{
}