Author: patientd1 | Posted on: 7/1/2010 1:02:44 PM | Views : 786

protected void saveMergedFile(string[] ReportFiles)
    {
        foreach (string item in ReportFiles)
        {
            string curFile = @item;
            if(!File.Exists(curFile))
                Response.Write("<script language=javascript>alert(curFile +': Report Not Found');</script>");    
        } 
}


I am getting Microsoft JScript runtime error: 'curFile' is undefined.


How do I pass the value of curFile to the javascript alert?


Thanks for your help.

...

Go to the complete details ...