File 从外部文件调用jquery函数
我有一个Jquery文件(“Maestro.js”)和一个函数:File 从外部文件调用jquery函数,file,function,drop-down-menu,external,aquery,File,Function,Drop Down Menu,External,Aquery,我有一个Jquery文件(“Maestro.js”)和一个函数: function SetDDLNumbers () { for (var i = 0; i < 51; i++) { $('#ContentPlaceHolder3_ShuttersCount').append(new Option(i, i)); $('#ContentPlaceHolder3_CollectedCount').append(new O
function SetDDLNumbers () {
for (var i = 0; i < 51; i++) {
$('#ContentPlaceHolder3_ShuttersCount').append(new Option(i, i));
$('#ContentPlaceHolder3_CollectedCount').append(new Option(i, i));
$('#ContentPlaceHolder3_ValimCount').append(new Option(i, i));
$('#ContentPlaceHolder3_UCount').append(new Option(i, i));
$('#ContentPlaceHolder3_ShoeingCount').append(new Option(i, i));
$('#ContentPlaceHolder3_EnginCount').append(new Option(i, i));
$('#ContentPlaceHolder3_ProtectedSpaceCount').append(new Option(i, i));
$('#ContentPlaceHolder3_GlassCount').append(new Option(i, i));
$('#ContentPlaceHolder3_BoxesCount').append(new Option(i, i));
}
});
My asp file and the PageLoad function is :
protected void Page_Load(object sender, EventArgs e)
{
GridViewRow row = (GridViewRow)Session["selectedrow"];
int ProjectID = Convert.ToInt32(row.Cells[1].Text);
DBservices db = new DBservices();
DataTable dt = db.GetCustomerInformation(ProjectID);
if (!Page.IsPostBack)
{
SetPageDetails(dt);
SetProjCurrentStatus();
LoadSuppliers();
}
GetOrderStatus();
}
当我试图编写:SetDDLNumbers()时,它告诉我该函数无法识别。
如何调用此函数
<script src="javascript/maestro.js" type="text/javascript"></script>
if (!Page.IsPostBack)
{
SetPageDetails(dt);
SetProjCurrentStatus();
LoadSuppliers();
}