<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>ASP.NET</title>
        <link>http://blogs.ugidotnet.org/dottor/category/ASP.NET.aspx</link>
        <description>ASP.NET</description>
        <language>it-IT</language>
        <copyright>Andrea Dottor</copyright>
        <generator>Subtext Version 2.6.0.0</generator>
        <item>
            <title>Membership.FindUsersByName, ecco perch&amp;#232; non mi funzionava.</title>
            <link>http://blogs.ugidotnet.org/dottor/archive/2006/09/12/47734.aspx</link>
            <description>&lt;FONT face=Verdana size=2&gt;
&lt;P&gt;Se nella vostre applicazioni fate uso delle membership di ASP.NET, vi sarà 
capitato (o vi potrà capitare) di cercare un utente dato una parte dello 
username.&lt;/P&gt;
&lt;P&gt;La soluzione ovvia è quella di usare la funzione &lt;A href="http://msdn2.microsoft.com/en-us/library/sk59azhc.aspx" target=_blank&gt;&lt;FONT color=#dc5e04&gt;Membership.FindUsersByName&lt;/FONT&gt;&lt;/A&gt;, che 
come dice la descrizione&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;EM&gt;"Gets a collection of membership users where the user name contains the 
  specified user name to match."&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Bene, proprio quello che cercavamo, ma qui c'è da prestare un pò di 
attenzione. Infatti se come stringa mettiamo "pip" e stavamo cercando l'utente 
"pippo", &lt;STRONG&gt;non ci verrà ritornato proprio niente&lt;/STRONG&gt;. &lt;IMG height=19 src="http://www.imhoproject.org/files/arrabbiato.gif" width=19 align=absMiddle border=0&gt;&lt;BR&gt;La cosa un pò mi puzzava e non capivo il 
perchè non mi ritornasse una lista di utenti che contenevano la stringa "pip" 
nello username, e dopo un pò di tentativi mi sono rassegnato ed ho abbandonato 
il tutto.&lt;/P&gt;
&lt;P&gt;Ieri con &lt;A href="http://blog.boschin.it/" target=_blank&gt;&lt;FONT color=#dc5e04&gt;Andrea&lt;/FONT&gt;&lt;/A&gt; ci siamo messi a vedere un pò meglio la facenda, 
ed analizzando con &lt;A href="http://www.aisto.com/roeder/dotnet/"&gt;&lt;FONT color=#dc5e04&gt;Reflector&lt;/FONT&gt;&lt;/A&gt; le classi delle &lt;A title="" href="http://msdn2.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.aspx" target=_blank name=""&gt;&lt;FONT color=#ff8040&gt;SqlMembershipProvider &lt;/FONT&gt;&lt;/A&gt;ci 
siamo accorti che la stringa di ricerca viene passata direttamente a SQL, e 
quindi&amp;nbsp; ponendo due bei percento agli estremi della nostra stringa "%pip%" 
ecco che&lt;STRONG&gt; il tutto inizia a funzionare&lt;/STRONG&gt;. &lt;IMG height=19 src="http://www.imhoproject.org/files/risate.gif" width=19 align=absMiddle border=0&gt;&lt;/P&gt;
&lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: black 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: black 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: gainsboro"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;SqlCommand&amp;nbsp;command1&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;new&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;SqlCommand("dbo.aspnet_Membership_FindUsersByName",&amp;nbsp;holder1.Connection);&lt;BR&gt;MembershipUserCollection&amp;nbsp;collection1&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;new&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;MembershipUserCollection();&lt;BR&gt;SqlDataReader&amp;nbsp;reader1&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;null&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;;&lt;BR&gt;command1.CommandTimeout&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.CommandTimeout;&lt;BR&gt;command1.CommandType&amp;nbsp;=&amp;nbsp;CommandType.StoredProcedure;&lt;BR&gt;command1.Parameters.Add(&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.CreateInputParam("@ApplicationName",&amp;nbsp;SqlDbType.NVarChar,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.ApplicationName));&lt;BR&gt;command1.Parameters.Add(&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.CreateInputParam("@UserNameToMatch",&amp;nbsp;SqlDbType.NVarChar,&amp;nbsp;usernameToMatch));&lt;BR&gt;command1.Parameters.Add(&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.CreateInputParam("@PageIndex",&amp;nbsp;SqlDbType.Int,&amp;nbsp;pageIndex));&lt;BR&gt;command1.Parameters.Add(&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.CreateInputParam("@PageSize",&amp;nbsp;SqlDbType.Int,&amp;nbsp;pageSize));&lt;BR&gt;command1.Parameters.Add(parameter1);&lt;BR&gt;&lt;/DIV&gt;&lt;/SPAN&gt;

&lt;/FONT&gt;&lt;!-- Powered by IMHO 1.3 (IT) Instant Blogger Copyright (c) 2005 A.Boschin - http://www.imhoproject.org --&gt;
&lt;img src="http://blogs.ugidotnet.org/dottor/aggbug/47734.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Andrea Dottor</dc:creator>
            <guid>http://blogs.ugidotnet.org/dottor/archive/2006/09/12/47734.aspx</guid>
            <pubDate>Tue, 12 Sep 2006 16:21:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/dottor/archive/2006/09/12/47734.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/dottor/comments/commentRss/47734.aspx</wfw:commentRss>
        </item>
        <item>
            <title>[Reporting Services] Prelevare un valore da un controllo contenuto nel Report</title>
            <link>http://blogs.ugidotnet.org/dottor/archive/2006/09/05/47359.aspx</link>
            <description>&lt;FONT face=Verdana size=2&gt;
&lt;P&gt;Nei nostri Report ci pu&amp;#242; tornare utile avere la possibilit&amp;#224; di prelevare il 
valore di un dato contenuto in un'altra controllo, come ad esempio il testo 
contenuto in una TextBox posizionata nella pagina.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
  &lt;P&gt;La sintassi &amp;#232; la seguente:&lt;BR&gt;&lt;FONT   color=#0080ff&gt;=ReportItems!textbox1.Value&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Questo ci pu&amp;#242; tornare utile nel caso volessimo eseguire operazione e/o 
funzioni usando dati contenuti in pi&amp;#249; textBox.&lt;/P&gt;

&lt;/FONT&gt;
&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;!-- Powered by IMHO 1.3 (IT) Instant Blogger Copyright (c) 2005 A.Boschin - http://www.imhoproject.org --&gt;
&lt;img src="http://blogs.ugidotnet.org/dottor/aggbug/47359.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Andrea Dottor</dc:creator>
            <guid>http://blogs.ugidotnet.org/dottor/archive/2006/09/05/47359.aspx</guid>
            <pubDate>Tue, 05 Sep 2006 15:13:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/dottor/archive/2006/09/05/47359.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/dottor/comments/commentRss/47359.aspx</wfw:commentRss>
        </item>
        <item>
            <title>[ReportingServices] Tabelle Orizzontali</title>
            <link>http://blogs.ugidotnet.org/dottor/archive/2006/09/04/47278.aspx</link>
            <description>&lt;FONT face=Verdana size=2&gt;
&lt;P&gt;Da quanche giorno ho iniziando ad usare e a conoscere i 
&lt;STRONG&gt;report di Reporting Services&lt;/STRONG&gt; e mi imbatto spesso in semplici 
problemi, ma che all'apparenza mi appaiono enormi a causa della mia (ancora) 
scarsa conoscenza dello strumento.&lt;/P&gt;
&lt;P&gt;Uno di questi riguarda la creazione di &lt;STRONG&gt;tabelle 
orizzontali&lt;/STRONG&gt;, infatti, nei report di Reporting Services non &amp;#232; possibile 
creare tabelle orizzontali se non usando qualche work around. Uno di questi 
richiede l'uso delle matrici.&lt;/P&gt;
&lt;P&gt;In &lt;A href="http://blogs.msdn.com/chrishays/archive/2004/07/23/HorizontalTables.aspx" target=_blank&gt;&lt;FONT color=#dc5e04&gt;questo post&lt;/FONT&gt;&lt;/A&gt; troverete spiegati i 
vari step per creare il tutto.

&lt;/FONT&gt;&lt;/P&gt;&lt;!-- Powered by IMHO 1.3 (IT) Instant Blogger Copyright (c) 2005 A.Boschin - http://www.imhoproject.org --&gt;
&lt;img src="http://blogs.ugidotnet.org/dottor/aggbug/47278.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Andrea Dottor</dc:creator>
            <guid>http://blogs.ugidotnet.org/dottor/archive/2006/09/04/47278.aspx</guid>
            <pubDate>Mon, 04 Sep 2006 13:37:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/dottor/archive/2006/09/04/47278.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/dottor/comments/commentRss/47278.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Il mio primo TIP su xe.net</title>
            <link>http://blogs.ugidotnet.org/dottor/archive/2006/07/03/43990.aspx</link>
            <description>&lt;FONT face=Verdana size=2&gt;
&lt;P&gt;A questo indirizzo &lt;A href="http://www.xedotnet.org/blogs/articoli/blogarticles/textboxmode.aspx"&gt;http://www.xedotnet.org/blogs/articoli/blogarticles/textboxmode.aspx&lt;/A&gt; 
è stato pubblicato il mio primo TIP, dove spiego &lt;STRONG&gt;&lt;EM&gt;come ralizzare una 
Textbox in formato password che sia in grado di mantenere in viewstate il valore 
inputato anche attraverso diversi postback&lt;/EM&gt;&lt;/STRONG&gt;.&lt;BR&gt;Non immaginate 
quanto grande sia la mia soddisfazione nel vederlo pubblicato.&lt;BR&gt;Tranquilli che 
non mi fermerò a questo tip, anche perchè &lt;A title="" href="http://blog.boschin.it/" target="" name=""&gt;Andrea&lt;/A&gt;&amp;nbsp;mi ha fatto promettere che 
dovrò consegnargli un articoletto&amp;nbsp;veramente interessante su una WebPart che ho 
da poco realizzato. Ma non vi voglio anticipare niente.&lt;/P&gt;

&lt;/FONT&gt;&lt;!-- Powered by IMHO 1.3 (IT) Instant Blogger Copyright (c) 2005 A.Boschin - http://www.imhoproject.org --&gt;
&lt;img src="http://blogs.ugidotnet.org/dottor/aggbug/43990.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Andrea Dottor</dc:creator>
            <guid>http://blogs.ugidotnet.org/dottor/archive/2006/07/03/43990.aspx</guid>
            <pubDate>Mon, 03 Jul 2006 18:35:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/dottor/archive/2006/07/03/43990.aspx#feedback</comments>
            <slash:comments>5</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/dottor/comments/commentRss/43990.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Servizio di indicizzazione e file temporanei di ASP.NET</title>
            <link>http://blogs.ugidotnet.org/dottor/archive/2006/06/30/43809.aspx</link>
            <description>&lt;FONT face=Verdana size=2&gt;
&lt;P&gt;Vi &amp;#232; mai capitao di trovarvi un errore del tipo "&lt;FONT color=red&gt;Unable to cast object of type 'ASP.testo_controllo_aspx' to type 
'ASP.testo_controllo_aspx&lt;/FONT&gt;&lt;FONT color=red&gt;'&lt;/FONT&gt;" mentre testavate la 
vostra web application?&lt;BR&gt;Se siete come me, avrete certamente cancellato i file 
temporanei di asp, e/o ricompilato l'applicazione e il tutto si &amp;#232; sistemato 
(almeno per un p&amp;#242;).&lt;/P&gt;
&lt;P&gt;Parlando con &lt;A title="" HREF="/knodev/" target="" name=""&gt;Davide Vernole&lt;/A&gt; sono venuto a sapere che una delle cause di 
questo errore pu&amp;#242; essere l'indicizzazione delle cartelle di Windows (che di 
Default &amp;#232; attivo).&lt;/P&gt;
&lt;P&gt;Per risolvere il tutto, nella cartella 
&lt;STRONG&gt;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET 
Files\&lt;/STRONG&gt; disabilitate il flag "&lt;EM&gt;Per una ricerca rapida, consenti 
indicizzazione della cartella&lt;/EM&gt;" che trovate in &lt;EM&gt;Avanzate&lt;/EM&gt; del tab 
&lt;EM&gt;Generale&lt;/EM&gt; delle &lt;EM&gt;propriet&amp;#224; della cartella&lt;/EM&gt;, ed il gioco &amp;#232; 
fatto.&lt;BR&gt;Cercando in rete, ho notato che il servizio di indicizzazione delle 
cartelle, se abilitato nella cartella &lt;STRONG&gt;Temporary ASP.NET Files&lt;/STRONG&gt; 
pu&amp;#242; anche causare un errore del tipo "&lt;FONT color=red&gt;Parser Error Message: 
Access is denied: 'Microsoft.Web.UI.WebControls'&lt;/FONT&gt;".&lt;/P&gt;
&lt;P&gt;&lt;IMG height=19 src="http://www.imhoproject.org/files/occhiolino.gif" width=19 align=absMiddle border=0&gt; &lt;EM&gt;e anche questo &amp;#232; 
risolto!!&lt;/EM&gt;&lt;/P&gt;

&lt;/FONT&gt;&lt;!-- Powered by IMHO 1.3 (IT) Instant Blogger Copyright (c) 2005 A.Boschin - http://www.imhoproject.org --&gt;
&lt;img src="http://blogs.ugidotnet.org/dottor/aggbug/43809.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Andrea Dottor</dc:creator>
            <guid>http://blogs.ugidotnet.org/dottor/archive/2006/06/30/43809.aspx</guid>
            <pubDate>Fri, 30 Jun 2006 12:38:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/dottor/archive/2006/06/30/43809.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/dottor/comments/commentRss/43809.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Leggere un file inserito come Risorsa Embedded</title>
            <link>http://blogs.ugidotnet.org/dottor/archive/2006/06/29/43749.aspx</link>
            <description>&lt;P&gt;
&lt;FONT face=Verdana size=2&gt;Una feature che st&amp;#242; 
iniziando ad usare parecchio sono le risorce embedded, cio&amp;#232; la capacita di 
inserire file all'interno dei nostri assembly e di poterli tranquillamente 
leggere.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Per inserire un file e renderlo 
disponibile come risorsa embedded non dobbiamo far altro che dal Solution 
Explorer di Visual Studio, aggiungere il file interessato e nelle propriet&amp;#224; 
dello stesso, alla voce Build Action, selezionare "Embedded Resource" ed il 
gioco &amp;#232; fatto.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;Per leggere il file in questione, ecco una 
funzione, che grazie al namespace del file ci ritorna uno stringa con il 
contenuto del file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;
&lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: black 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: black 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: gainsboro"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #808080; FONT-FAMILY: Courier New"&gt;/// &lt;summary&gt;&lt;BR&gt;/// &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #008000; FONT-FAMILY: Courier New"&gt;Funzione di letttura delle risorse embedded&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #808080; FONT-FAMILY: Courier New"&gt;/// &lt;/summary&gt;&lt;BR&gt;/// &lt;param name="resourceName"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #008000; FONT-FAMILY: Courier New"&gt;Nome della risorsa completo di tutto il NameSpace&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #808080; FONT-FAMILY: Courier New"&gt;&lt;/param&gt;&lt;BR&gt;/// &lt;returns&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #008000; FONT-FAMILY: Courier New"&gt;Testo contenuto nella risorsa&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #808080; FONT-FAMILY: Courier New"&gt;&lt;/returns&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;private string &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;GetFromResources(&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;string &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;resourceName)&lt;BR&gt;{&lt;BR&gt;    Assembly assem = &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;this&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;.GetType().Assembly;&lt;BR&gt;    &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;using &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;(Stream stream = assem.GetManifestResourceStream(resourceName))&lt;BR&gt;    {&lt;BR&gt;        &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;try&lt;BR&gt;        &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;{&lt;BR&gt;            &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;using &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;(StreamReader reader = &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;new &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;StreamReader(stream))&lt;BR&gt;            {&lt;BR&gt;                &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;return &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;reader.ReadToEnd();&lt;BR&gt;            }&lt;BR&gt;        }&lt;BR&gt;        &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;catch &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;(Exception e)&lt;BR&gt;        {&lt;BR&gt;            &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;throw new &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;Exception("&lt;FONT color=#bd425a&gt;Error retrieving from Resources. Tried '&lt;/FONT&gt;"&lt;BR&gt;                                     + resourceName + "&lt;FONT color=#bd425a&gt;'\r\n&lt;/FONT&gt;" + e.ToString());&lt;BR&gt;        }&lt;BR&gt;    }&lt;BR&gt;}&lt;BR&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;Per leggere la nostra risorsa, esempio "&lt;FONT color=#0080ff&gt;Script.js&lt;/FONT&gt;" contenuta nel progetto "&lt;FONT color=#0080ff&gt;AndreaDottor.UI&lt;/FONT&gt;" nella cartella "&lt;FONT color=#0080ff&gt;Resources&lt;/FONT&gt;" ora non dobbiamo far altro che 
scrivere&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: black 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: black 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: gainsboro"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Courier New"&gt;string &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Courier New"&gt;scriptResource = GetFromResources("&lt;FONT color=#bd425a&gt;AndreaDottor.UI.Resources.Script.js&lt;/FONT&gt;")&lt;BR&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;Un 
vantaggio di tutto questo, &amp;#232; anche la possibilit&amp;#224; di accedervi 
facilmente tramite il namespace, quindi senza doversi pi&amp;#249; preoccupare di dove si 
sarebbero trovati determinati file (esempio Stylesheet, file di Javascript o 
quantaltro). &lt;IMG height=19 src="http://www.imhoproject.org/files/occhiolino.gif" width=19 align=absMiddle border=0&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;Fonte: &lt;A href="http://www.codeproject.com/csharp/embeddedresourcestrings.asp"&gt;http://www.codeproject.com/csharp/embeddedresourcestrings.asp&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;!-- Powered by IMHO 1.3 (IT) Instant Blogger Copyright (c) 2005 A.Boschin - http://www.imhoproject.org --&gt;
&lt;img src="http://blogs.ugidotnet.org/dottor/aggbug/43749.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Andrea Dottor</dc:creator>
            <guid>http://blogs.ugidotnet.org/dottor/archive/2006/06/29/43749.aspx</guid>
            <pubDate>Thu, 29 Jun 2006 18:03:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/dottor/archive/2006/06/29/43749.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/dottor/comments/commentRss/43749.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>