<?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>CodeGuru Forums - ASP.NET</title>
		<link>http://forums.codeguru.com/</link>
		<description>Post questions and get answers on ASP.NET. Obviously there will be some overlap between this board and the C# and Visual Basic .NET boards so please try and only post ASP.NET specific questions here.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 01:35:07 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.codeguru.com/images/misc/rss.png</url>
			<title>CodeGuru Forums - ASP.NET</title>
			<link>http://forums.codeguru.com/</link>
		</image>
		<item>
			<title>ASP.NET debugging techniques?</title>
			<link>http://forums.codeguru.com/showthread.php?537749-ASP-NET-debugging-techniques&amp;goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 04:16:01 GMT</pubDate>
			<description>I have an interesting and rare situation.  There is an single stand-alone ASPX and C sharp file I am debugging.  It is not part of a project or web site.  

It runs with other files and libraries within a folder of other aspx files and other supporting files.  Normally I could debug the file by loading it locally in Visual Studio and attaching it to a copy of the web site running from local host.  But here is the tricky part and the thorn in my side.   The aspx file uses a lot of libraries that are part of the CMS system we have and the associated database is particular of what clients have access to content on the server.

So my best and immediate solution to this problem is to use some sort of method of writing out to  file and/or having pop up windows to show the process.  How can I do this in aspx?  How can I do this in C sharp?</description>
			<content:encoded><![CDATA[<div>I have an interesting and rare situation.  There is an single stand-alone ASPX and C sharp file I am debugging.  It is not part of a project or web site.  <br />
<br />
It runs with other files and libraries within a folder of other aspx files and other supporting files.  Normally I could debug the file by loading it locally in Visual Studio and attaching it to a copy of the web site running from local host.  But here is the tricky part and the thorn in my side.   The aspx file uses a lot of libraries that are part of the CMS system we have and the associated database is particular of what clients have access to content on the server.<br />
<br />
So my best and immediate solution to this problem is to use some sort of method of writing out to  file and/or having pop up windows to show the process.  How can I do this in aspx?  How can I do this in C sharp?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?15-ASP-NET">ASP.NET</category>
			<dc:creator>Complete</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537749-ASP-NET-debugging-techniques</guid>
		</item>
		<item>
			<title>Control out of context</title>
			<link>http://forums.codeguru.com/showthread.php?537357-Control-out-of-context&amp;goto=newpost</link>
			<pubDate>Tue, 28 May 2013 07:40:27 GMT</pubDate>
			<description><![CDATA[Hello everybody

I`ve created a WebForms applications for learning purposes. I`ve placed two TextBoxes on my WebForm1 using the Visual Studio toolbox. The code is shown below : 


Code:
---------
<asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
<br />
Last Name:
<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
---------
Now in the corresponding WebForm1.aspx.cs coding file I`m trying to export the functionality of these two controls by creating the attribute *FullName*


Code:
---------
public string FullName
{
get { return txtFirstName.Text + " " + txtLastName.Text; }
}
---------
Unfortunately, when I compile my code I get the error : 


Code:
---------
Error	1	The name 'txtFirstName' does not exist in the current context
---------
Shouldn`t the control be in context since I`m placing it on the same WebForm1 as the corresponding cs file?]]></description>
			<content:encoded><![CDATA[<div>Hello everybody<br />
<br />
I`ve created a WebForms applications for learning purposes. I`ve placed two TextBoxes on my WebForm1 using the Visual Studio toolbox. The code is shown below : <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;asp:TextBox ID=&quot;txtFirstName&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;<br />
&lt;br /&gt;<br />
Last Name:<br />
&lt;asp:TextBox ID=&quot;txtLastName&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;<br />
&lt;br /&gt;</code><hr />
</div>Now in the corresponding WebForm1.aspx.cs coding file I`m trying to export the functionality of these two controls by creating the attribute <b>FullName</b><br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">public string FullName<br />
{<br />
get { return txtFirstName.Text + &quot; &quot; + txtLastName.Text; }<br />
}</code><hr />
</div>Unfortunately, when I compile my code I get the error : <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Error&nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; The name 'txtFirstName' does not exist in the current context</code><hr />
</div>Shouldn`t the control be in context since I`m placing it on the same WebForm1 as the corresponding cs file?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?15-ASP-NET">ASP.NET</category>
			<dc:creator>divined</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537357-Control-out-of-context</guid>
		</item>
	</channel>
</rss>
