void GetResultSetFrame(string strResultsetName, int nStartIndex, int nCount = 10) { string strError = ""; GetResultSetFrame result_info = new GetResultSetFrame(); if (string.IsNullOrEmpty(strResultsetName) == true) { strError = "结果集名不应为空"; goto ERROR1; } string strResult = ""; int nRet = ViewResultsetControl.GetContentText( app, sessioninfo, strResultsetName, nStartIndex, nCount, "zh", out strResult, out strError); if (nRet == -1) { goto ERROR1; } result_info.Html = strResult; this.Response.Write(MyWebPage.GetResultString(result_info)); this.Response.End(); return; ERROR1: result_info.ErrorString = strError; this.Response.Write(MyWebPage.GetResultString(result_info)); this.Response.End(); }
void GetResultSetFrame(string strResultsetName, int nStartIndex, int nCount = 10) { string strError = ""; GetResultSetFrame result_info = new GetResultSetFrame(); if (string.IsNullOrEmpty(strResultsetName) == true) { strError = "结果集名不应为空"; goto ERROR1; } string strResult = ""; int nRet = ViewResultsetControl.GetContentText( app, sessioninfo, strResultsetName, nStartIndex, nCount, "zh", out strResult, out strError); if (nRet == -1) goto ERROR1; result_info.Html = strResult; this.Response.Write(MyWebPage.GetResultString(result_info)); this.Response.End(); return; ERROR1: result_info.ErrorString = strError; this.Response.Write(MyWebPage.GetResultString(result_info)); this.Response.End(); }