[c#]代码库
private static string ScriptBegin = "<script language=\"JavaScript\">";
private static string ScriptEnd = "</script>";
public static void ConfirmMessageBox ( string PageTarget,string Content )
{
string C+Content+"’);"+"if(retValue){window.location=’"+PageTarget+"’;}";
ConfirmContent=ScriptBegin + ConfirmContent + ScriptEnd;
Page ParameterPage = ( Page ) System.Web.HttpContext.Current.Handler;
ParameterPage.RegisterStartupScript ( "confirm",ConfirmContent );
//Response.Write
( strScript );
}