位置:海鸟网 > IT > ASP.NET >

ASP.NET中自定义提示对话框

如果你不喜欢javascript的alert那种单调的对话框,可以用这种自定义的方法.

  

1.在需要的地方调用下面的方法:

CommonScript.MessageBox("100006",

 

5.数据库:

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ErrMessage]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[ErrMessage]

GO

CREATE TABLE [dbo].[ErrMessage] (

      [ErrID] [int] NOT NULL ,

      [ErrCode] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,

      [ErrModul] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

      [ErrSubModul] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

      [ErrMessage] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL

) ON [PRIMARY]

GO