我正在尝试从后面的代码中为 div 分配一个 innerhtml 值。这是我得到的:
private void ModalBody()
{
LoadTemplateOverride();
divModalBody.InnerHtml =
}
private void LoadTemplateOverride()
{
string templateURL = String.Format("{0}/leadgen/eodemails/templatecontroller.aspx?eodid={1}", site.Get("InternalApiUrl"), Email.ID);
HttpWebRequest request = HttpWebRequest.Create(templateURL) as HttpWebRequest;
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
tbSubject.Text = response.Headers["EmailSubject"];
tbBody.Text = (new StreamReader(response.GetResponseStream())).ReadToEnd();
}