<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>ASP .NET on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/asp-.net/</link>
		<description>Recent content in ASP .NET on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Wed, 23 Feb 2011 11:57:56 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/asp-.net/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>How I Became a Web Developer &amp; CTO</title>
				<link>https://www.justincarmony.com/2011/02/23/how-i-became-a-web-developer-cto/</link>
				<pubDate>Wed, 23 Feb 2011 11:57:56 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/02/23/how-i-became-a-web-developer-cto/</guid>
				<description>&lt;p&gt;&lt;em&gt;Note: many of the screenshots of websites I had done in the past are from the &lt;a href=&#34;http://www.archive.org/web/web.php&#34;&gt;Internet Archive&lt;/a&gt; and many of the images are missing. But it can give an idea on the projects I had worked on. One day I&amp;rsquo;ll try and track down the original files and update the screenshots.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Today some memories came from when I first started with web development. So before I forget anymore of the details, I thought I would share my &lt;em&gt;unique&lt;/em&gt; way I became a web developer. I never went to school to learn Computer Science or Information Systems. I&amp;rsquo;ve had a total of 2 programming classes, which were my in sophomore and junior years of High School, one of which we lovingly nicknamed Warcraft 101, because we would spend the entire time getting out butts kicked in &lt;a href=&#34;http://en.wikipedia.org/wiki/Warcraft_II:_Tides_of_Darkness&#34;&gt;Warcraft 2&lt;/a&gt; by my classmate Daren (We all got A&amp;rsquo;s, we had just finished the entire coursework in 2 and a half weeks).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Empowering JavaScript Through jQuery</title>
				<link>https://www.justincarmony.com/2008/10/25/empowering-javascript-through-jquery/</link>
				<pubDate>Sat, 25 Oct 2008 00:31:27 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/10/25/empowering-javascript-through-jquery/</guid>
				<description>&lt;p&gt;Once I discovered &lt;a href=&#34;http://jquery.com/&#34;&gt;jQuery&lt;/a&gt;, my life as a web developer changed. There are few libraries, tools, etc. that I can honestly say have completely changed the way I code. In all honesty, jQuery makes the difficult aspects of JavaScript and turns them into a strength. I recommend it over any other JavaScript library I know. It is smaller, leaner, straight forwards, and more powerful than anything out there. Large companies like Google, Microsoft, and Dell use it. Microsoft is now including jQuery in Visual Studio, their powerful IDE for making websites. If anything, I have yet to meet a person who has used jQuery and has gone to anything else.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET, LINQ, GridViews, and GUID Errors</title>
				<link>https://www.justincarmony.com/2008/02/25/asp-net-linq-gridviews-and-guid-errors/</link>
				<pubDate>Mon, 25 Feb 2008 20:17:22 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/02/25/asp-net-linq-gridviews-and-guid-errors/</guid>
				<description>&lt;p&gt;I found a simple problem today. Here is the deal, there were several times where I had to base a LinqDataSource off a Guid that I would set in the Page_Load(). I created an&amp;lt;asp:HiddenField /&amp;gt; to hold the value so all my DataSources could pull it from the control. The HiddenField control&amp;rsquo;s value is stored as a string, so I would have to convert the guid to a string. After doing this, I was getting the following error:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Page.FindControl() Returning Null Issues and Solutions Within Another Control</title>
				<link>https://www.justincarmony.com/2008/02/12/pagefindcontrol-returning-null-issues-and-solutions-within-another-control/</link>
				<pubDate>Tue, 12 Feb 2008 18:41:51 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/02/12/pagefindcontrol-returning-null-issues-and-solutions-within-another-control/</guid>
				<description>&lt;p&gt;Alright, I&amp;rsquo;m going to have a lot of blog posts over the next few days going over my wonderful expereinces learning how to create advanced server controls, and just how hard it is to find good information on the subject. But the problem I ran into today was having Page.FindControl() not work as expected.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;Page.FindControl() can be misleading. A developer without understanding the situation could assume FindControl() will return a control found within that page. &lt;em&gt;&lt;strong&gt;This is completely wrong.&lt;/strong&gt;&lt;/em&gt; The reason this does not work is because Page does not have its own FindControl() function. It actually &lt;em&gt;&lt;strong&gt;inherits&lt;/strong&gt;&lt;/em&gt; this from Control, because Page inherits control. So FindControl() is really more like a FindChildrenControls(), and it is &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; recursive.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET Ajax - Straight forward and simple, the way it should be.</title>
				<link>https://www.justincarmony.com/2008/02/11/asp-net-ajax-straight-forward-and-simple-the-way-it-should-be/</link>
				<pubDate>Mon, 11 Feb 2008 16:34:41 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/02/11/asp-net-ajax-straight-forward-and-simple-the-way-it-should-be/</guid>
				<description>&lt;p&gt;I have to say, I&amp;rsquo;m very impressed with the implementation of ASP .NET AJAX. After creating several projects in .NET, converting several of my pages to implement AJAX was beyond easy. It was incredible. It takes all the &amp;ldquo;thinking&amp;rdquo; out of AJAX and just makes it work. Now, I&amp;rsquo;m not familiar with the security and stability of it, but for simple AJAX to make your interface just &amp;ldquo;nicer&amp;rdquo;, its amazing.  I&amp;rsquo;ll be posting a few tricks and tips that I discover as I play around with the AJAX capabilities of .NET.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET, GridViews, SqlDataSource, and Guid Parameters</title>
				<link>https://www.justincarmony.com/2008/01/31/asp-net-gridviews-sqldatasource-and-guid-parameters/</link>
				<pubDate>Thu, 31 Jan 2008 21:40:27 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/31/asp-net-gridviews-sqldatasource-and-guid-parameters/</guid>
				<description>&lt;p&gt;Another thing I ran into today. I actually ran into it awhile back but since I ran into it again today I&amp;rsquo;d thought I&amp;rsquo;d post on it to help anyone who happens to find it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;You have a GridView and a SqlDataSource that takes 1 or more Guids as a Parameter. You use the built in DataSource configuration and it doesn&amp;rsquo;t give any errors. However, when you actually run it and pass the Guid, you get this error:&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET &amp; System.Threading.ThreadAbortException Error</title>
				<link>https://www.justincarmony.com/2008/01/31/asp-net-systemthreadingthreadabortexception-error/</link>
				<pubDate>Thu, 31 Jan 2008 20:02:15 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/31/asp-net-systemthreadingthreadabortexception-error/</guid>
				<description>&lt;p&gt;While doing some work today I started to run into a ThreadAbortException error. While debugging it spit back this error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I was really confused because everything seemed to be working just fine, then I found this forum thread. Turns out there are several causes for this error, but mine was caused by doing a Response.Redirect(); from within a Try-Catch statement. Apparently ASP .NET does not like that.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET GridView Access to Data In Code</title>
				<link>https://www.justincarmony.com/2008/01/22/asp-net-gridview-access-to-data-in-code/</link>
				<pubDate>Tue, 22 Jan 2008 16:52:38 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/22/asp-net-gridview-access-to-data-in-code/</guid>
				<description>&lt;p&gt;There are situations where you want to gain access to the GridView&amp;rsquo;s DataSet to display extra information outside of the GridView. I found the following code to work the best for me. You can get the information from the DataSource of a GridView by doing the following:&lt;/p&gt;&#xA;&lt;p&gt;DataView dv = (DataView)sdsDataSource.Select(DataSourceSelectArguments.Empty);&#xA;if (dv != null)&#xA;{&#xA;try&#xA;{&#xA;strName = (String)dv.Table.Rows[0][&amp;ldquo;Name&amp;rdquo;];&#xA;}&#xA;catch { strName = &amp;ldquo;N/A&amp;rdquo;; }&#xA;}&lt;/p&gt;&#xA;&lt;p&gt;You should be able to access whatever information you need from the DataView.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET Accessing Session, Request, Response, etc from within a Class</title>
				<link>https://www.justincarmony.com/2008/01/17/asp-net-accessing-session-request-response-etc-from-within-a-class/</link>
				<pubDate>Thu, 17 Jan 2008 22:30:38 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/17/asp-net-accessing-session-request-response-etc-from-within-a-class/</guid>
				<description>&lt;p&gt;I remember it took me forever to figure this out and the headache before learning this that it caused. Because .NET is strongly typed you are unable to access the Session, Request, or Response (and many other Http/Web object) from within a class library like you can writing in a code-behind file or on the page itself. I battled for weeks (I almost think months) trying to find ways of passing information between my pages and class library, when I finally found the answer:&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript</title>
				<link>https://www.justincarmony.com/2008/01/08/asp-net-20-gridviews-hyperlinkfield-and-javascript/</link>
				<pubDate>Tue, 08 Jan 2008 04:34:00 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/08/asp-net-20-gridviews-hyperlinkfield-and-javascript/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve found some interesting notes on ASP .NET&amp;rsquo;s GridView, it&amp;rsquo;s limitations and work arounds. For work I was looking for a way to execute JavaScript from clicking a link on a GridView Cell. An example would be to having a list of transactions and wanting to click a link to update it&amp;rsquo;s details. I noticed that many functions of GridView used &lt;a&gt; tags to execute JavaScript. An example would be:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-html&#34; data-lang=&#34;html&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;a&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;javascript:myFunction(&amp;#39;variable&amp;#39;);&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;Link&lt;span class=&#34;p&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Since I had experience with the HyperLinkField before, I thought I would add a HyperLinkField to my GridView and set the &lt;strong&gt;DataNavigateUrlFields&lt;/strong&gt; to the needed fields and the DataNavigateUrlFormatString to use the fields properly. I was hoping to accomplish it by using the following code, which in turn I found out &lt;em&gt;&lt;strong&gt;this solution does not work:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
