<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Vista Forums - .NET General</title>
		<link>http://www.vistax64.com/</link>
		<description>microsoft.public.dotnet.general</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:52:47 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>15</ttl>
		<image>
			<url>http://www.vistax64.com/images/styles/vista/misc/rss.jpg</url>
			<title>Vista Forums - .NET General</title>
			<link>http://www.vistax64.com/</link>
		</image>
		<item>
			<title>Best Approach to data storage in memory</title>
			<link>http://www.vistax64.com/net-general/260948-best-approach-data-storage-memory.html</link>
			<pubDate>Wed, 18 Nov 2009 16:12:01 GMT</pubDate>
			<description><![CDATA[Thanks  Gregory 
 
it gives me some food for thought! 
 
Simon 
 
"Gregory A. Beamer" <NoSpamMgbworld@newsgroup> wrote in message...]]></description>
			<content:encoded><![CDATA[<div>Thanks  Gregory<br />
<br />
it gives me some food for thought!<br />
<br />
Simon<br />
<br />
&quot;Gregory A. Beamer&quot; &lt;NoSpamMgbworld@newsgroup&gt; wrote in message<br />
news:Xns9CC76E727E338gbworld@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; &quot;Simon Whale&quot; &lt;simon@newsgroup&gt; wrote in news:OO6kRmGaKHA.5300<br />
&gt; @TK2MSFTNGP02.phx.gbl:<br />
&gt;<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="green"><br />
&gt;&gt; My question is what would be best for editing entries? List(of t) or<br />
&gt;&gt; datatable?</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>&gt;<br />
&gt; The list is lighter weight, so, if it is prudent, I would head that<br />
&gt; direction. But, there are factors that may make the list an issue.<br />
&gt;<br />
&gt; For example, if the list is rarely edited before committing, then making<br />
&gt; editing easier is not your primary concern. The primary concern is<br />
&gt; reducing errors on saving and using the most maintainable code possible.<br />
&gt; In this instance, the DataTable might be better, especially if you use<br />
&gt; TableAdapters to commit data.<br />
&gt;<br />
&gt; What you have to look at is the most common path combined with<br />
&gt; maintainability. That is first run. Then, see if there are any other<br />
&gt; issues , like performance, that makes you rethink your chosen path.<br />
&gt;<br />
&gt; One more thing to think of. If you are using the built in CRUD<br />
&gt; methdology with DataSets, you end up with a translation &quot;layer&quot; for your<br />
&gt; entries to turn them into a List(of T) and back. This is one potential<br />
&gt; source of error. I am not saying avoid this, but ask your motivation<br />
&gt; before you introduce this extra &quot;complexity&quot; into the app.<br />
&gt;<br />
&gt; Peace and Grace,<br />
&gt; Greg<br />
&gt;<br />
&gt; --<br />
&gt; Vote for Miranda's Christmas Story<br />
&gt; <a href="http://tinyurl.com/mirandabelieve" target="_blank">http://tinyurl.com/mirandabelieve</a><br />
&gt;<br />
&gt; Twitter: @gbworld<br />
&gt; Blog: <a href="http://gregorybeamer.spaces.live.com" target="_blank">http://gregorybeamer.spaces.live.com</a><br />
&gt;<br />
&gt; *******************************************<br />
&gt; |      Think outside the box!             |<br />
&gt; *******************************************</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div><br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>Simon Whale</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260948-best-approach-data-storage-memory.html</guid>
		</item>
		<item>
			<title>Can a prog find its own Name?</title>
			<link>http://www.vistax64.com/net-general/260918-can-prog-find-its-own-name.html</link>
			<pubDate>Tue, 17 Nov 2009 20:15:58 GMT</pubDate>
			<description><![CDATA[Looks good. 
 
Thanks 
 
Barry 
 
 
"Scott M." <s-mar@newsgroup> wrote in message 
news:%23FKwut9ZKHA.2160@newsgroup 
---Quote---]]></description>
			<content:encoded><![CDATA[<div>Looks good.<br />
<br />
Thanks<br />
<br />
Barry<br />
<br />
<br />
&quot;Scott M.&quot; &lt;s-mar@newsgroup&gt; wrote in message<br />
news:%23FKwut9ZKHA.2160@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt;<br />
&gt; &quot;Barry Flynn&quot; &lt;Anonymouse&gt; wrote in message<br />
&gt; news:%23Fr3HL8ZKHA.4932@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="green"><br />
&gt;&gt; Win Forms program - VB 2005.<br />
&gt;&gt;<br />
&gt;&gt; I am converting a VB6 program to VB 2005.<br />
&gt;&gt; The program wants to know its own name - ie the name of the .exe that has<br />
&gt;&gt; been executed.<br />
&gt;&gt; It gets this from App.exename<br />
&gt;&gt;<br />
&gt;&gt; In VB 2005, I have replaced this with My.Application.Info.AssemblyName.<br />
&gt;&gt; However, if the program has been renamed after it was Built, that returns<br />
&gt;&gt; the name it was Built as, rather than the name of the .exe that has<br />
&gt;&gt; actually been executed.<br />
&gt;&gt;<br />
&gt;&gt; Is the name of the actual .exe available?<br />
&gt;&gt;<br />
&gt;&gt; Thanks<br />
&gt;&gt;<br />
&gt;&gt; Barry</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>&gt;<br />
&gt; Will this work?<br />
&gt;<br />
&gt; [C#]<br />
&gt; System.Diagnostics.Process p =<br />
&gt; System.Diagnostics.Process.GetCurrentProcess();<br />
&gt; String n = p.ProcessName;<br />
&gt;<br />
&gt; -Scott<br />
&gt;<br />
&gt;</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div><br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>Barry Flynn</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260918-can-prog-find-its-own-name.html</guid>
		</item>
		<item>
			<title>Exchange Server not sending or receiving email.</title>
			<link>http://www.vistax64.com/net-general/260917-exchange-server-not-sending-receiving-email.html</link>
			<pubDate>Tue, 17 Nov 2009 17:02:05 GMT</pubDate>
			<description><![CDATA[What is your ".NET" (dotnet) question?  This newsgroup is for general 
questions about Microsoft's .NET programming platform. 
 
-Scott 
...]]></description>
			<content:encoded><![CDATA[<div>What is your &quot;.NET&quot; (dotnet) question?  This newsgroup is for general<br />
questions about Microsoft's .NET programming platform.<br />
<br />
-Scott<br />
<br />
&quot;moyondizvo&quot; &lt;moyondizvo@newsgroup&gt; wrote in message<br />
news:FA3FA808-EAF4-4DD0-A650-5FD786F5107D@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; I'm running Exchange Server 2003 on a SBS 2003 SP2 machine. Every other<br />
&gt; day<br />
&gt; email cannot be sent out or received until after I restart the Exchange<br />
&gt; Store<br />
&gt; Service.  Any assistnace to help me overcome this will be greatly<br />
&gt; appreciated.  Thank you in advance.</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div><br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>moyondizvo</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260917-exchange-server-not-sending-receiving-email.html</guid>
		</item>
		<item>
			<title><![CDATA[can't update or download troubleshooter]]></title>
			<link>http://www.vistax64.com/net-general/260916-cant-update-download-troubleshooter.html</link>
			<pubDate>Mon, 16 Nov 2009 14:17:01 GMT</pubDate>
			<description><![CDATA["Allly55" <Allly55@newsgroup> wrote in message 
news:9D84C2D0-2E4B-41E6-A180-A6F7B3343E13@newsgroup 
---Quote--- 
> Can't update windows can't...]]></description>
			<content:encoded><![CDATA[<div><br />
&quot;Allly55&quot; &lt;Allly55@newsgroup&gt; wrote in message<br />
news:9D84C2D0-2E4B-41E6-A180-A6F7B3343E13@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; Can't update windows can't download troubleshooter think I've made a<br />
&gt; mistake<br />
&gt; buying windows 7 laptop should have stuck with XP any suggestion please<br />
&gt; --<br />
&gt; Allly55</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Yes. You should seek help with your Windows 7/ laptop issue either through<br />
the laptop maker's technical support (*they* are responsible for supporting<br />
the OEM Windows 7 they installed on the laptop), or in a discussion<br />
group/forum for Windows 7 issues. Here are the Windows 7 forums:<br />
<br />
<a href="http://social.answers.microsoft.com/Forums/en-US/category/windows7" target="_blank">http://social.answers.microsoft.com/...egory/windows7</a><br />
<br />
<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>Allly55</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260916-cant-update-download-troubleshooter.html</guid>
		</item>
		<item>
			<title>Issue retriving data from mssql 2005</title>
			<link>http://www.vistax64.com/net-general/260915-issue-retriving-data-mssql-2005-a.html</link>
			<pubDate>Mon, 16 Nov 2009 12:19:01 GMT</pubDate>
			<description><![CDATA[Mikael wrote: 
---Quote--- 
> Different queries accessing a storedprocedure sometimes hang until they are 
> timedout. 
> 
> Calling the stored...]]></description>
			<content:encoded><![CDATA[<div>Mikael wrote:<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; Different queries accessing a storedprocedure sometimes hang until they are<br />
&gt; timedout.<br />
&gt;<br />
&gt; Calling the stored procedure mannually (Management Studio)(from the client<br />
&gt; computer that also executes the program) returns 1090 rows in one sec.<br />
&gt;<br />
&gt; EXEC spa08v1GetTransactions NULL ,'20091006','20091006'<br />
&gt;<br />
&gt; Executing the stored procedure from a simple app, just counting the rows<br />
&gt; gives me a timeout at 956 rows. This runs nicely against my test enviroment.<br />
&gt;<br />
&gt;   SqlCommand cmd = new SqlCommand();<br />
&gt;             cmd.Connection = new<br />
&gt; SqlConnection(&quot;Server=MyServer;Database=MyDatabase;Trusted_Connection=True;&quot;);<br />
&gt;             cmd.CommandType = System.Data.CommandType.StoredProcedure;<br />
&gt;<br />
&gt;             cmd.CommandText = &quot;[dbo].[spa08v1GetTransactions]&quot;;<br />
&gt;             SqlParameter p = cmd.Parameters.Add(&quot;port_key&quot;,<br />
&gt; System.Data.SqlDbType.Int);<br />
&gt;             p.Value = DBNull.Value;<br />
&gt;<br />
&gt;              p = cmd.Parameters.Add(&quot;from_date&quot;,<br />
&gt; System.Data.SqlDbType.SmallDateTime);<br />
&gt;             p.Value = DateTime.Parse(&quot;2009-10-06&quot;);<br />
&gt;<br />
&gt;              p = cmd.Parameters.Add(&quot;to_date&quot;,<br />
&gt; System.Data.SqlDbType.SmallDateTime);<br />
&gt;              p.Value = DateTime.Parse(&quot;2009-10-06&quot;);<br />
&gt;<br />
&gt;             cmd.Connection.Open();<br />
&gt;             SqlDataReader dr = cmd.ExecuteReader();<br />
&gt;<br />
&gt;             int i = 0;<br />
&gt;<br />
&gt;             while(dr.Read())<br />
&gt;             {<br />
&gt;                 //Console.WriteLine(dr[3]);<br />
&gt;                 i++;<br />
&gt;             }<br />
&gt;             cmd.Connection.Close();<br />
&gt;<br />
&gt;             Console.WriteLine(i);<br />
&gt;             Console.Read();<br />
&gt;<br />
&gt;<br />
&gt;<br />
&gt; Running on test and production:<br />
&gt; Microsoft SQL Server 2005 - 9.00.3080.00 (X64)   Sep  6 2009 09:15:46<br />
&gt; Copyright (c) 1988-2005 Microsoft Corporation  Enterprise Edition (64-bit) on<br />
&gt; Windows NT 5.2 (Build 3790: Service Pack 2)<br />
&gt;<br />
&gt; App. running 2008 - 3.5<br />
&gt;<br />
&gt;<br />
&gt; I had the same issue last monday and it helped dropping and recreating the<br />
&gt; stored procedure, but it dosent help me today.<br />
&gt;<br />
&gt; I also tried the DBCC FREEPROCCACHE without any luck.<br />
&gt;<br />
&gt; Any idears (Besides restarting the production server :)<br />
&gt;</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>One thing that jumps out at me is you do not ever dispose of the SQL<br />
objects.  That shouldn't cause any issue as described, necessarily.<br />
<br />
When &quot;the same thing&quot; works in one code, but not another, always check<br />
permissions of the user.<br />
<br />
--<br />
Mike<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>Mikael</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260915-issue-retriving-data-mssql-2005-a.html</guid>
		</item>
		<item>
			<title>Re: horizontal grid</title>
			<link>http://www.vistax64.com/net-general/260914-re-horizontal-grid.html</link>
			<pubDate>Mon, 16 Nov 2009 09:08:10 GMT</pubDate>
			<description><![CDATA[Hi, 
 
You can use DataList instead of GridView, it provides facility to 
display records in Horizontal direction. 
 
You can use datalist's...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
You can use DataList instead of GridView, it provides facility to<br />
display records in Horizontal direction.<br />
<br />
You can use datalist's &quot;RepeatDirection&quot; property.<br />
<br />
Regards,<br />
Mansi Shah<br />
<br />
*** Sent via Developersdex <a href="http://www.developersdex.com" target="_blank">http://www.developersdex.com</a> ***<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>Mansi Shah</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260914-re-horizontal-grid.html</guid>
		</item>
		<item>
			<title>How to remove HTML special characters and tags from a Google RSSfeed?</title>
			<link>http://www.vistax64.com/net-general/260913-how-remove-html-special-characters-tags-google-rssfeed.html</link>
			<pubDate>Mon, 16 Nov 2009 02:10:58 GMT</pubDate>
			<description><![CDATA[On Nov 18, 9:14*am, "ib.dangelm...@newsgroup" 
<ib.dangelm...@newsgroup> wrote: 
---Quote--- 
---Quote--- 
> > Is there an easy way of doing this...]]></description>
			<content:encoded><![CDATA[<div>On Nov 18, 9:14*am, &quot;ib.dangelm...@newsgroup&quot;<br />
&lt;ib.dangelm...@newsgroup&gt; wrote:<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="green"><br />
&gt; &gt; Is there an easy way of doing this that I am overlooking?</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>&gt;<br />
&gt; The maybe easiest way to parse HTML is to use a (hidden) webbrowser<br />
&gt; control in a form e.g.:<br />
&gt;<br />
&gt; {<br />
&gt; * WebBrowser webBrowser = new WebBrowser();<br />
&gt; * webBrowser.DocumentCompleted += OnDocumentCompleted;<br />
&gt; * webBrowser.DocumentText = &quot;&lt;html&gt;&lt;body&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=<br />
&gt; \&quot;test.html\&quot;&gt;&lt;b&gt;blabla &amp;gt;&amp;amp;&amp;lt; bla&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/<br />
&gt; body&gt;&lt;/html&gt;&quot;;<br />
&gt;<br />
&gt; }<br />
&gt;<br />
&gt; private void OnDocumentCompleted( object sender,<br />
&gt; WebBrowserDocumentCompletedEventArgs e )<br />
&gt; {<br />
&gt; * MessageBox.Show( ((WebBrowser)sender).Document.Body.OuterText );<br />
&gt;<br />
&gt; }<br />
&gt;<br />
&gt; Another (easy) possibility is by using the html agility pack (free<br />
&gt; library somewhere on the web):<br />
&gt;<br />
&gt; using ( StringWriter sw = new StringWriter() )<br />
&gt; {<br />
&gt; * new HtmlToText().ConvertHtml(htmlString, sw);<br />
&gt; * sw.Flush();<br />
&gt; * return sw.ToString();<br />
&gt;<br />
&gt; }<br />
&gt;<br />
&gt; Hope it helps.</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Ops ... sorry, forgot to include the &quot;HtmlToText&quot; class for the html<br />
agility pack:<br />
<br />
public class HtmlToText<br />
{<br />
public HtmlToText()<br />
{<br />
}<br />
<br />
public void Convert(string path, StringWriter sw)<br />
{<br />
HtmlDocument doc = new HtmlDocument();<br />
doc.Load(path);<br />
ConvertTo(doc.DocumentNode, sw);<br />
}<br />
<br />
public void ConvertHtml(string html, StringWriter sw)<br />
{<br />
HtmlDocument doc = new HtmlDocument();<br />
doc.LoadHtml(html);<br />
ConvertTo(doc.DocumentNode, sw);<br />
}<br />
<br />
private void ConvertContentTo(HtmlNode node, TextWriter outText)<br />
{<br />
foreach(HtmlNode subnode in node.ChildNodes)<br />
ConvertTo(subnode, outText);<br />
}<br />
<br />
public void ConvertTo(HtmlNode node, TextWriter outText)<br />
{<br />
string html;<br />
switch(node.NodeType)<br />
{<br />
case HtmlNodeType.Comment:<br />
// don't output comments<br />
break;<br />
<br />
case HtmlNodeType.Document:<br />
ConvertContentTo(node, outText);<br />
break;<br />
<br />
case HtmlNodeType.Text:<br />
// script and style must not be output<br />
string parentName = node.ParentNode.Name;<br />
if ((parentName == &quot;script&quot;) || (parentName == &quot;style&quot;))<br />
break;<br />
<br />
// get text<br />
html = ((HtmlTextNode)node).Text;<br />
<br />
// is it in fact a special closing node output as text?<br />
if (HtmlNode.IsOverlappedClosingElement(html))<br />
break;<br />
<br />
// check the text is meaningful and not a bunch of whitespaces<br />
if (html.Trim().Length &gt; 0)<br />
outText.Write(HtmlEntity.DeEntitize(html));<br />
break;<br />
<br />
case HtmlNodeType.Element:<br />
switch(node.Name)<br />
{<br />
case &quot;p&quot;:<br />
// treat paragraphs as crlf<br />
outText.Write(&quot;\r\n&quot;);<br />
break;<br />
}<br />
<br />
if (node.HasChildNodes)<br />
ConvertContentTo(node, outText);<br />
<br />
break;<br />
}<br />
outText.Write(&quot; &quot;);<br />
}<br />
}<br />
<br />
The code is based on some example included in the html agility pack.<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/net-general/">.NET General</category>
			<dc:creator>JimTheAverage</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/net-general/260913-how-remove-html-special-characters-tags-google-rssfeed.html</guid>
		</item>
	</channel>
</rss>
