asp.net 不用JS弹出确认对话框

   using System.Runtime.InteropServices;

public class testClass
{

 [DllImport("User32.dll", EntryPoint = "MessageBox", CharSet = CharSet.Auto)]
    public static extern int MsgBox(int hWnd, String text, String caption, uint type);
.......
}


int itest = testClass.MsgBox(0, "你确定?", "对话框", 6);

posted on 2008-01-13 15:03  LongSky  阅读(683)  评论(0)    收藏  举报

导航