Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File 从外部文件调用jquery函数_File_Function_Drop Down Menu_External_Aquery - Fatal编程技术网

File 从外部文件调用jquery函数

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

我有一个Jquery文件(“Maestro.js”)和一个函数:

    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();
            }