public bool downloadGetQuote(string folderPath, string scriptName, bool bIsTestOn, bool bSaveData) { //if (StockApi.globalQuote(folderPath, scriptName, bIsTestModeOn: bIsTestOn, bSaveData: bSaveData, apiKey: Session["ApiKey"].ToString()) == null) if (StockApi.globalQuoteAlternate(folderPath, scriptName, bIsTestModeOn: bIsTestOn, bSaveData: bSaveData, apiKey: Session["ApiKey"].ToString()) == null) { //Response.Write("<script language=javascript>alert('Quote data not available for selected script.')</script>"); textboxMessage.Text = Environment.NewLine + "Quote data not available for selected script"; return(false); } return(true); }