<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1978841.aspx</link><pubDate>Mon, 29 Oct 2007 11:26:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1978841</guid><dc:creator>sandeepthekka</dc:creator><author>sandeepthekka</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1978841.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1978841</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;  memberdetails.OfficePhone = txtOfficePhone.Text == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : txtOfficePhone.Text;
                memberdetails.ResidencePhone = txtResPhone.Text == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : txtResPhone.Text;
                memberdetails.Mobile = txtMobile.Text == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : txtMobile.Text;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1976817.aspx</link><pubDate>Fri, 26 Oct 2007 20:49:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1976817</guid><dc:creator>tgopi99</dc:creator><author>tgopi99</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1976817.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1976817</wfw:commentRss><description>&lt;p&gt;Very useful one, Thank you very much.&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1976761.aspx</link><pubDate>Fri, 26 Oct 2007 20:09:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1976761</guid><dc:creator>azamsharp</dc:creator><author>azamsharp</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1976761.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1976761</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here is a small example that will clear up the things further: &lt;/p&gt;&lt;p&gt;This is the code for my previousPage: &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;asp:TextBox ID=&amp;quot;txtName&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;Button1&amp;quot; runat=&amp;quot;server&amp;quot; PostBackUrl=&amp;quot;~/FirstPage.aspx&amp;quot; Text=&amp;quot;Button&amp;quot; OnClick=&amp;quot;Button1_Click&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And here is the page that access the PreviousPage. &lt;/p&gt;&lt;p&gt;&amp;nbsp;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (PreviousPage != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox tb = PreviousPage.FindControl(&amp;quot;txtName&amp;quot;) as TextBox;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(tb.Text); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!Page.IsPostBack)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/p&gt;&lt;p&gt;If you are not able to find the control in the PreviousPage then you can use properties in the Previous to access the value of the control. Like the following: &lt;/p&gt;&lt;p&gt;public class MyPreviousPage : ....&lt;/p&gt;&lt;p&gt;public string Name { return txtName.Text; } &lt;/p&gt;&lt;p&gt;Now, in the main page you can access like this: &lt;/p&gt;&lt;p&gt;MyPreviousPage.Name&lt;/p&gt;&lt;p&gt;You will also need to add the following directive in the main page (NOT Previous Page) &lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span class="Article_FullDescription"&gt;&lt;span style="-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;&amp;lt;%@ PreviousPageType VirtualPath=&amp;quot;~/MyPreviousPage.aspx&amp;quot;&amp;nbsp; %&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1976735.aspx</link><pubDate>Fri, 26 Oct 2007 19:52:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1976735</guid><dc:creator>azamsharp</dc:creator><author>azamsharp</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1976735.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1976735</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;First check that the PreviousPage property is not null and also make sure that the Previous Page consists of the element named textboxFirstName. You can also expose properties in the PreviousPage to access the controls instead of using FindControl method. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1976483.aspx</link><pubDate>Fri, 26 Oct 2007 17:49:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1976483</guid><dc:creator>tgopi99</dc:creator><author>tgopi99</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1976483.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1976483</wfw:commentRss><description>&lt;p&gt;I even checked with the above code, but still it is giving the following error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;i&gt;Object reference not set to an instance of an object.&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;Line 39:                 TextBox tbox = new TextBox();
Line 40:                 DropDownList dlist = new DropDownList();
&lt;font color="red"&gt;Line 41:                 tbox = (TextBox)Page.PreviousPage.FindControl(&amp;quot;textboxFirstName&amp;quot;) as TextBox;
&lt;/font&gt;Line 42:                 if (tbox != null)
Line 43:                 {&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1976481.aspx</link><pubDate>Fri, 26 Oct 2007 17:48:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1976481</guid><dc:creator>tgopi99</dc:creator><author>tgopi99</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1976481.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1976481</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; I am getting the following error when i am checking null value of an object as you said. Here is my code&lt;/p&gt;&lt;font size="2"&gt;tbox = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt;)Page.PreviousPage.FindControl(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;textboxFirstName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (tbox != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;Session[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;semfname&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;] = tbox.Text;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;txtfirstname.Text = tbox.Text;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;i&gt;Object reference not set to an instance of an object.&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;Line 39:                 TextBox tbox = new TextBox();
Line 40:                 DropDownList dlist = new DropDownList();
&lt;font color="red"&gt;Line 41:                 tbox = (TextBox)Page.PreviousPage.FindControl(&amp;quot;textboxFirstName&amp;quot;) as TextBox;
&lt;/font&gt;Line 42:                 if (tbox != null)
Line 43:                 {&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1975283.aspx</link><pubDate>Fri, 26 Oct 2007 07:10:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1975283</guid><dc:creator>KinjanShah</dc:creator><author>KinjanShah</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1975283.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1975283</wfw:commentRss><description>Hi tgopi99,

In Order to check for object Reference in C#.NET, you need to use null, in VB.NET you need to use Nothing.

if(tbox == null)
{
    //code for nothing
}
else
{
    //Code for presence
}

Hope this will help you out.

Thanks and Regards,
Kinjan Shah,
MCAD</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1975267.aspx</link><pubDate>Fri, 26 Oct 2007 06:56:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1975267</guid><dc:creator>impathan</dc:creator><author>impathan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1975267.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1975267</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;tgopi99:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;tbox = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt;)Page.PreviousPage.FindControl(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;textboxFirstName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;if( &lt;font size="2"&gt;&lt;font size="2"&gt;tbox!=null)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;best rEgard&lt;/p&gt;&lt;p&gt;pAthan&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1975245.aspx</link><pubDate>Fri, 26 Oct 2007 06:35:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1975245</guid><dc:creator>ramana123</dc:creator><author>ramana123</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1975245.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1975245</wfw:commentRss><description>&lt;p&gt;Use &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if(tbox!=null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;//do your code if control finds.&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;//tbox is null/&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1975184.aspx</link><pubDate>Fri, 26 Oct 2007 05:38:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1975184</guid><dc:creator>ravipahuja1</dc:creator><author>ravipahuja1</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1975184.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1975184</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Go for &amp;quot;as&amp;quot; as suggest by azam.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1974974.aspx</link><pubDate>Fri, 26 Oct 2007 01:37:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1974974</guid><dc:creator>mbanavige</dc:creator><author>mbanavige</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1974974.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1974974</wfw:commentRss><description>&lt;p&gt;like this:&lt;/p&gt;&lt;pre class="coloredcode"&gt;TextBox tbox = (TextBox)Page.PreviousPage.FindControl(&lt;span class="st"&gt;&amp;quot;textboxFirstName&amp;quot;&lt;/span&gt;);
&lt;span class="kwd"&gt;if&lt;/span&gt; (tbox == &lt;span class="kwd"&gt;null&lt;/span&gt;) {
    &lt;span class="cmt"&gt;// it was null&lt;/span&gt;
}&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: Check null value for an object</title><link>http://forums.asp.net/thread/1974971.aspx</link><pubDate>Fri, 26 Oct 2007 01:28:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1974971</guid><dc:creator>azamsharp</dc:creator><author>azamsharp</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1974971.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1974971</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You can use the &amp;quot;as&amp;quot; keyword to try to cast the object. If the casting fails null is returned. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2"&gt;tbox =&lt;/font&gt;&lt;font size="2"&gt;Page.PreviousPage.FindControl(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;textboxFirstName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;) &lt;b&gt;as&lt;/b&gt; TextBox; &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Check null value for an object</title><link>http://forums.asp.net/thread/1974965.aspx</link><pubDate>Fri, 26 Oct 2007 01:24:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1974965</guid><dc:creator>tgopi99</dc:creator><author>tgopi99</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1974965.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1974965</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How to check the object is null in C#. For the code below&lt;/p&gt;&lt;font color="#008080" size="2"&gt;
&lt;p&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt; tbox = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;tbox = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt;)Page.PreviousPage.FindControl(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;textboxFirstName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;i want to find whether the tbox is null or not. How can i achieve this in C#.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Please help.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>