I am getting XML data from feedburner and in my C# codebehind I am accessing the data like so:
我從feedburner和我的C#代碼隱藏中獲取XML數據我正在訪問數據,如下所示:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=cooklikecarolyn");
XmlNodeList subscribers = xmlDoc.GetElementsByTagName("entry");
Response.Write(subscribers[0].Attributes["circulation"].Value.ToString());
How do I insert this into a div I already have at the bottom of the page?
如何將其插入到頁面底部已有的div中?
1
Set the div runat="server':
設置div runat =“server”:
<div id="feedDiv" runat="server"></div>
Then set the InnerHtml or InnerText of the div in C#:
然后在C#中設置div的InnerHtml或InnerText:
feedDiv.InnerHtml = subscribers[0].Attributes["circulation"].Value.ToString();
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2011/08/30/725a68cb066f8352116504e598043b6d.html。