C# 如何在WindowsPhone7中向SQLCE插入HTML字符串

C# 如何在WindowsPhone7中向SQLCE插入HTML字符串,c#,windows-phone-7,C#,Windows Phone 7,在我的项目中,我使用SQL ce,但当我将HTML字符串插入SQL时,出现了错误: string HTML = <p><em>Text & Photos by Junya Hirokawa, Editor, </em><a href="http://business.nikkeibp.co.jp/nds/cp/" target="_blank">Nikkei Design</a><em> Magazine</

在我的项目中,我使用SQL ce,但当我将HTML字符串插入SQL时,出现了错误:

string HTML =  <p><em>Text & Photos by Junya Hirokawa, Editor, </em><a href="http://business.nikkeibp.co.jp/nds/cp/" target="_blank">Nikkei Design</a><em> Magazine</em></p>

<p>As the evening approaches Tokyo, the air has a hint of winter chill to it.  It's during this seasonal transition from fall to winter that the Tokyo "Design Week" has firmly established itself. <a href="https://designtide.jp" target="_blank">Designtide Tokyo</a> is one of the 3 major events that make up the week, along with <a href="http://www.tdwa.com/en/" target="_blank">Tokyo Designers Week</a> and <a href="http://www.tokyo-midtown.com/en/designtouch" target="_blank">Design Touch</a>. Designtide's main event was held again this year at the Tokyo Midtown, with roughly 27,000 attendees (including me).</p>

<p>This year's Designtide event had a noticeable new flavor to it. What I immediately noticed about the exhibitor lineup this year was that the designers that used to be known as the young-guns had been replaced by a new batch of even younger designers. This new group, born in the post-1980 era, attracted a lot of attention with their exhibitions. In a country with such a large elderly population, it felt good to see new talent in the Japanese design industry as this young group shows their work to the world at large.</p>

<p>With those thoughts in mind, I made my way around the event asking industry insiders what caught their eye this year.</p>

<p><img src="http://s3files.core77.com/blog/images/2011/12/DTT2011-Junya_Favs-1-1.jpg" width="468" height="349" alt="DTT2011-Junya_Favs-1-1.jpg"/><small><em>Colin Schaelli's con.temporary furniture</em></small></p>

<p><strong>Favorite Pick #1: con.temporary furniture by Colin Schaelli</strong></p>

<p>I happened upon Mike Abelson, designer at POSTALCO, whose favorite pick was <a href="http://www.colinschaelli.com/" target="_blank">Colin Schaelli's con.temporary furniture</a>. Here's what Abelson had to say:<blockquote>I like the way that the whole thing can be put together in less than a minute and still be very stable. It is also nice not to have to use any fastening hardware or glue! It looks simple to manufacture but I have a feeling that it requires skilled craftsmen to make it&mdash;I am guessing that that is why it is made in Japan.</blockquote></p>

<p><img src="http://s3files.core77.com/blog/images/2011/12/DTT2011-Junya_Favs-1-5.jpg" width="468" height="350" alt="DTT2011-Junya_Favs-1-5.jpg"/><small><em>con.temporary furniture doesn't use any screws or nails and can be easily put together or taken apart.</em></small></p>

<p>The con.temporary furniture series doesn't use any screws or nails, and is easy to put together or take apart. Schaelli believes in using locally sourced materials, so all materials used for the furniture series are sourced from the location where the item is sold. He also has the furniture manufactured in the market in which it's sold. Currently, his furniture is available in Japan and Switzerland, but Schaelli is looking to increase his reach soon.</p>

<p><img src="http://s3files.core77.com/blog/images/2011/12/DTT2011-Junya_Favs-1-2.jpg" width="468" height="263" alt="DTT2011-Junya_Favs-1-2.jpg"/><small><em>Colin Schaelli's con.temporary furniture and Mike Abelson of POSTALCO</em></small></p>

<p><a href="http://postalco.net/" target="_blank">POSTALCO</a>, where Abelson designs, is a popular brand in Japan that specializes in leather goods, accessories, as well as stationary. All of POSTALCO's products are born out of observing people's daily lives, and are the type of high quality products that are loved by their owners. One of the more popular items at the shop is Abelson's "bridge bag," which utilizes the same structure as suspension bridge to achieve a lightweight bag that can hold heavy objects. Abelson had previously designed for Jack Spade.</p>

<p><img src="http://s3files.core77.com/blog/images/2011/12/DTT2011-Junya_Favs-1-6.jpg" width="468" height="263" alt="DTT2011-Junya_Favs-1-6.jpg"/><small><em>Sosuke Nakabo, the designer behind the main exhibition space at Designtide, and his 3 year old daughter standing next to Schaelli's con.temporary furniture.</em></small></p>

<p>Sosuke Nakabo, the designer behind Designtide's main exhibition space, also chose con.temporary furniture as his favorite pick. Here's what Nakabo had to say:<blockquote>con.temporary furniture doesn't necessarily have an immediate impact, but I felt like the workmanship is honest. Designtide Tokyo obviously attracts a large number of Japanese exhibitors. The good is that it's a friendly and intimate community. The bad is that it can be too comfortable and placid. In that kind of environment, Colin's shelf definitely stands out as different.  It has that European perspective and history ingrained in it.</blockquote></p><a href="http://www.core77.com/blog/design_festivals/the_best_of_design_tide_tokyo_2011_by_nikkei_design_editor_junya_hirokawa_21364.asp">(more...)</a>
<p><a href="http://feedads.g.doubleclick.net/~a/MrXxH_HqpzzU4mRjqtZGmRLSvQk/0/da"><img src="http://feedads.g.doubleclick.net/~a/MrXxH_HqpzzU4mRjqtZGmRLSvQk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MrXxH_HqpzzU4mRjqtZGmRLSvQk/1/da"><img src="http://feedads.g.doubleclick.net/~a/MrXxH_HqpzzU4mRjqtZGmRLSvQk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/core77/blog/~4/EjH1ux1iRFM" height="1" width="1"/>



using (DataBaseColor db = new DataBaseColor(GlobalVariable.DBConnectString))
                {
                    db._Article.InsertOnSubmit(new Article { title = f.Title.Text, Description = f.Summary.Text, linkURL = f.Links[0].Uri.ToString(), pubDate = f.PublishDate.ToString(), orderID = idCate, rid = rid });
                    db.SubmitChanges();
                }
如何将HTML文本添加到SQL?或者如何在wp7的SLQ Ce中添加参数

HTML作业中没有引号是正常的吗?您应该有如下内容:

  string HTML = @"<p><em>Text ... width="1"/>";
希望有帮助

HttpUtility.HtmlEncode(HTML); 
HttpUtility.HtmlDecode(EncodedHtml);