<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quinterox &#187; asp</title>
	<atom:link href="http://www.quinterox.com/content/tag/asp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quinterox.com/content</link>
	<description>Cesar Quinteros</description>
	<lastBuildDate>Sun, 20 Jun 2010 04:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Visual Gallery &#8211; A free simple photo gallery</title>
		<link>http://www.quinterox.com/content/blog/visual-gallery-a-free-simple-photo-gallery/</link>
		<comments>http://www.quinterox.com/content/blog/visual-gallery-a-free-simple-photo-gallery/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 22:39:45 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free image gallery]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[square thumbs]]></category>

		<guid isPermaLink="false">http://www.quinterox.com/content/?p=443</guid>
		<description><![CDATA[Visual Gallery- A free ASP.NET image gallery created by Cesar F Quinteros. It generates square thumbnails on the fly and is ideal for a small, personal image gallery.]]></description>
			<content:encoded><![CDATA[<p>After a few months of hiding from the online communities I have returned with a free program in hand. Almost all this time amongst other things I have used created an &#8220;open source&#8221; photo gallery for all to use.  Enter Visual Gallery. As the name might obviously state it was created using Visual Basic, which for those that might not know can run in the form of web applications on Windows web servers (IIS).</p>
<p>I started developing the application after running into a situation where I wanted some co-workers to view a few pictures of my kid while not granting them access to my <a href="http://gallery.menalto.com/">Gallery</a>, which I keep for friends and family. The application gets all of the images in a folder and creates a thumbnail and links all of the  files from the main page. Then Javascript takes over making a nice &#8220;stage-like&#8221; display of each image which the user merely clicks to return to the list. The application is great for small, personal image galleries since it does not provide a good caching system for thumbnails it generates. They are generated again and again, on the fly.</p>
<p>So though the application is not perferct it is very useful. I am declaring it open source, so make your changes as needed but share them with others. Also tell me how it can be improved, maybe I can later release an updated version?</p>
<a class="downloadlink" href="http://www.quinterox.com/content/wp-content/plugins/download-monitor/download.php?id=Visual_Gallery1.0.zip" title="Version1.0 downloaded 55 times" >Visual Gallery 1.0 (55)</a>
<p>See it in action here <a href="http://damnbugs.com/lab/visual%20gallery/" target="_blank">http://damnbugs.com/lab/visual gallery/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/blog/visual-gallery-a-free-simple-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If, else, elseif, statements</title>
		<link>http://www.quinterox.com/content/code/if-else-elseif-statements/</link>
		<comments>http://www.quinterox.com/content/code/if-else-elseif-statements/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 04:15:32 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[conditional statement]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=33</guid>
		<description><![CDATA[Simple use of conditional statements.]]></description>
			<content:encoded><![CDATA[<p>Conditional statements are probably the easiest-to-use most useful statements within a programming language. Below I give a brief example of how to use it.</p>
<pre>if strVariable1 = “John”
Response.Write(”Welcome John!”)
elseif strVariable1 = “Bob”
Response.Write(”Welcome Bob!”)
else
Response.Write(”Welcome…you.”)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/if-else-elseif-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Request.Querystring()</title>
		<link>http://www.quinterox.com/content/code/requestquerystring/</link>
		<comments>http://www.quinterox.com/content/code/requestquerystring/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 04:14:22 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[request.querystring]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=32</guid>
		<description><![CDATA[Simple use of Request.Querystring]]></description>
			<content:encoded><![CDATA[<p>The Request.QueryString() function is useful when you need to pass information to your application based on user interaction. For example if you have a GridView control full of names and you want to pass either the value of a datakey or the selection the user made itself to your application to return more detailed data you can use the Request.QueryString() function to do so.</p>
<pre>Label1.Text.Request.QueryString(”qtext”)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/requestquerystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using configSource</title>
		<link>http://www.quinterox.com/content/code/using-configsource/</link>
		<comments>http://www.quinterox.com/content/code/using-configsource/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 02:39:03 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[configsource]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=25</guid>
		<description><![CDATA[Example of how to allocate an external config file with connection string information to your main config file allowing you to harness the power of a more intricate way to manage user permissions.]]></description>
			<content:encoded><![CDATA[<p>In order to change configuration settings within an application without restarting and to harness the power of a more intricate ability to manage user permissions, it is ideal to store connection strings and other data in an external file. Below I demonstrate how to make the web.config file call to an external file for a connection string. This can also be done for connection strings stored as keys in the appSettings tag.</p>
<pre>&lt;configuration&gt;
&lt;appSettings/&gt;
&lt;connectionStrings configSource=”conns.config”&gt;&lt;/connectionStrings&gt;
&lt;system.web&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</pre>
<p>The conns.config file will then only contain a single section element and nothing else. Yes it is that simple.</p>
<pre>&lt;connectionStrings&gt;
&lt;add name=”myConnectionString”
connectionString=”Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=C:My Database Foldermydatabase.mdb;
Jet OLEDB:Database Password=mypassword” providerName=”SQLOLEDB”/&gt;
&lt;/connectionStrings&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/using-configsource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>String vs. String()</title>
		<link>http://www.quinterox.com/content/code/string-vs-string/</link>
		<comments>http://www.quinterox.com/content/code/string-vs-string/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 05:25:16 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[directories]]></category>
		<category><![CDATA[for each]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=24</guid>
		<description><![CDATA[Something great I noticed about the difference of dimming as String and as String().]]></description>
			<content:encoded><![CDATA[<p>I noticed something today, when you add the () to the end of the word String it actually instantiates an array as opposed to just the word String. Here is an example that depicts that:</p>
<pre>Dim strThemesFolder As String = Server.MapPath("~contentthemes")
<span style="color: #00ff00;"><span><span style="color: #008000;">'Notice the Array below, a regular string wouldn't be able to hold all those values</span></span>
</span>
Dim strThemeFolders As String() = Directory.GetDirectories(strThemesFolder)
Dim strFolderName As String
For Each strFolderName In strThemeFolders
      Response.Write(strFolderName)
Next</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/string-vs-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing MasterPageFile</title>
		<link>http://www.quinterox.com/content/code/changing-masterpagefile/</link>
		<comments>http://www.quinterox.com/content/code/changing-masterpagefile/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 06:05:22 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[masterpage]]></category>
		<category><![CDATA[masterpagefile]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=23</guid>
		<description><![CDATA[This snippet is from a web app I was developing in ASP.NET that had to have the ability to switch skins upon the administrator's command.]]></description>
			<content:encoded><![CDATA[<h2>Snippet-Admin/Default.aspx</h2>
<p>I added this code to my admin files to enable me to change masterfilepages on the fly. I tried with global variables and with properties but my masterpagefile would always default back the hardcoded file somehow.</p>
<pre>
Private Function changeTheme(ByVal strNewThemePath As String) As String
        If File.Exists(Server.MapPath(strNewThemePath)) Then
            Application.Set("theme", strNewThemePath)
            Return String.Format("Theme changed successfully to: ""{0}""", strNewThemePath)
        Else
            Return String.Format("The file: ""{0}"" does not exist. Theme not changed.", strNewThemePath)
        End If
End Function
</pre>
<h2>Snippet-Global.asax</h2>
<p>I also added this to the global.asax file since the code above did not specify a default theme.</p>
<pre>    Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
        'If no other theme is chosen then load the default
        If Application("theme") Is Nothing Then
            Dim Config As New Config
            Application("theme") = Config.strDefaultTheme
        End If
    End Sub</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/changing-masterpagefile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting And Getting Public Properties</title>
		<link>http://www.quinterox.com/content/code/setting-and-getting-public-properties/</link>
		<comments>http://www.quinterox.com/content/code/setting-and-getting-public-properties/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 04:31:53 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[set]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=21</guid>
		<description><![CDATA[A simple example of setting and getting public properties.]]></description>
			<content:encoded><![CDATA[<p>I am not 100% sure how public properties are supposed to be used but I intend to use it to store the current user&#8217;s name and email. It could also be used to store blog information momentarily.</p>
<pre>
Private mstrName As String
Public Property Name() As String
        Get
            Name = mstrName
           ' Returns default value if nothing has changed it
        End Get
        Set(ByVal pstrName As String)
            mstrName  = pstrName
           'Sets the name to be the newly entered value
        End Set
 End Property
</pre>
<p>The information can then be retrieved or set as follows:</p>
<pre>
Dim settingsClass As New 'yourClassName'

Response.Write(settingsClass.Name)
'Returns Cesar
settingsClass.Name = "John"
'Assigns 'John' to the name property
Response.Write(settingsClass.Name)
'Returns John
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/setting-and-getting-public-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
