Returns the result from an ASPX 'template' page in the /templates directory of this application. This method uses an HTTP client to call into the Web server and retrieve the result as a string.
public static string AspTextMerge(string templatePageAndQueryString, ref string errorMessage)
Return Value
Merged Text or null if an HTTP error occurs - note: could also return an Error page HTML result if the template page has an error.
Parameters
templatePageAndQueryString
The name of a page (ASPX, HTM etc.) to retrieve plus the querystring
Examples: webform1.aspx, subfolder/WebForm1.aspx, ~/WebForm1.aspx,/myVirtual/WebForm1.aspx
errorMessage
If this method returns null this message will contain the error info
See also:
Class WebUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic