为什么我安装的VisualStudio2003 J# 缺少default.js 等几文件,有谁能发给我吗?
lf9888@163.com
QQ:14066725
------解决方案--------------------------------------------------------
自已保存一下
// (c) Microsoft Corporation
function AddDefaultServerScriptToWizard(selProj)
{
wizard.AddSymbol("DEFAULT_SERVER_SCRIPT", "JavaScript");
}
function AddDefaultClientScriptToWizard(selProj)
{
var prjScriptLang = selProj.Properties("DefaultClientScript").Value;
// 0 = JScript
// 1 = VBScript
if(prjScriptLang == 0)
{
wizard.AddSymbol("DEFAULT_CLIENT_SCRIPT", "JavaScript");
}
else
{
wizard.AddSymbol("DEFAULT_CLIENT_SCRIPT", "VBScript");
}
}
function AddDefaultDefaultHTMLPageLayoutToWizard(selProj)
{
var prjPageLayout = selProj.Properties("DefaultHTMLPageLayout").Value;
// 0 = FlowLayout
// 1 = GridLayout
if(prjPageLayout == 0)
{
wizard.AddSymbol("DEFAULT_HTML_LAYOUT", "FlowLayout");
}
else
{
wizard.AddSymbol("DEFAULT_HTML_LAYOUT", "GridLayout");
}
}
function OnFinish(selProj, selObj)
{
var oldSuppressUIValue = true;
try
{
oldSuppressUIValue = dte.SuppressUI;
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
var bEmptyProject = 0; //wizard.FindSymbol("EMPTY_PROJECT");
var proj = CreateBJProject(strProjectName, strProjectPath, "defaultwebproject.vjsproj");
if( !ProjectIsARootWeb( strProjectPath ) )
{
wizard.AddSymbol("NOT_ROOT_WEB_APP", true);
}
// if a web.config file has already been added (via the ASP.NET
// version conflict dialog), don't try to add another one
item = DoesFileExistInProj( proj,"Web.config" )
if( item == null )
{
wizard.AddSymbol( "WEB_CONFIG_NOT_ADDED_YET", true );
}
else
{
wizard.AddSymbol( "WEB_CONFIG_NOT_ADDED_YET", false );
}
var InfFile = CreateInfFile();
if (!bEmptyProject && proj)
{
AddReferencesForWebForm(proj);
// add the default project props for the aspx file before we
// render it
AddDefaultServerScriptToWizard(proj);
AddDefaultClientScriptToWizard(proj);
AddDefaultTargetSchemaToWizard(proj);
AddDefaultDefaultHTMLPageLayoutToWizard(proj);
// render our files
AddDesignerFileToBJWebProject(proj, strProjectName, strProjectPath, "Global.asax", false);