<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>ASP.NET Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'ASP.NET' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 03:55:48 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 03:55:49 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>client side authorization in asp.net web project</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/427254/427254/client-side-authorization-in-aspnet-web-project/</link>
      <description>i am developing a server-client program in which server will be showing datas sent by client across a network. without Authentication it works fine but i need some authentication because server side its a website.once i give authentication i am not able to get datas from client.i know that client must be given authorization to put data into server.can anyone tell me how to do that?i am developing based on the link given below&lt;br /&gt;
&lt;br /&gt;
blog.bobcravens.com/2009/11/browse-files-on-remote-computers &lt;br /&gt;
&lt;br /&gt;
posting server side authentication code&lt;br /&gt;
&lt;br /&gt;
&amp;lt;authentication mode="Forms"&amp;gt;&lt;br /&gt;
  &amp;lt;forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/forms&amp;gt;&lt;br /&gt;
&amp;lt;/authentication&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;authorization&amp;gt;&lt;br /&gt;
  &amp;lt;deny users = "?"/&amp;gt;&lt;br /&gt;
&amp;lt;/authorization&amp;gt;&lt;br /&gt;
login.aspx&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script runat="server"&amp;gt;&lt;br /&gt;
    Sub Login_Click(ByVal sender As Object, ByVal e As EventArgs)&lt;br /&gt;
        If ((UserEmail.Text = "s@gmail.com") And _&lt;br /&gt;
            (UserPass.Text = "000")) Then&lt;br /&gt;
            FormsAuthentication.RedirectFromLoginPage _&lt;br /&gt;
                 (UserEmail.Text, Persist.Checked)&lt;br /&gt;
        Else&lt;br /&gt;
            Msg.Text = "Invalid credentials. Please try again."&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
i have written validation code also.everything works fine on the server side but not able to get data from client side..&lt;br /&gt;
&lt;br /&gt;
client program is written in c#,client-server communication is via http post.&lt;br /&gt;
&lt;br /&gt;
i am getting error shown below when i run client program&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/427254/427254/client-side-authorization-in-aspnet-web-project/</guid>
      <pubDate>Sun, 05 Feb 2012 23:47:26 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>client side authorization in asp.net web project</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/427253/427253/client-side-authorization-in-aspnet-web-project/</link>
      <description>i am developing a server-client program in which server will be showing datas sent by client across a network. without Authentication it works fine but i need some authentication because server side its a website.once i give authentication i am not able to get datas from client.i know that client must be given authorization to put data into server.can anyone tell me how to do that?i am developing based on the link given below&lt;br /&gt;
&lt;br /&gt;
blog.bobcravens.com/2009/11/browse-files-on-remote-computers &lt;br /&gt;
&lt;br /&gt;
posting server side authentication code&lt;br /&gt;
&lt;br /&gt;
&amp;lt;authentication mode="Forms"&amp;gt;&lt;br /&gt;
  &amp;lt;forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/forms&amp;gt;&lt;br /&gt;
&amp;lt;/authentication&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;authorization&amp;gt;&lt;br /&gt;
  &amp;lt;deny users = "?"/&amp;gt;&lt;br /&gt;
&amp;lt;/authorization&amp;gt;&lt;br /&gt;
login.aspx&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script runat="server"&amp;gt;&lt;br /&gt;
    Sub Login_Click(ByVal sender As Object, ByVal e As EventArgs)&lt;br /&gt;
        If ((UserEmail.Text = "s@gmail.com") And _&lt;br /&gt;
            (UserPass.Text = "000")) Then&lt;br /&gt;
            FormsAuthentication.RedirectFromLoginPage _&lt;br /&gt;
                 (UserEmail.Text, Persist.Checked)&lt;br /&gt;
        Else&lt;br /&gt;
            Msg.Text = "Invalid credentials. Please try again."&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
i have written validation code also.everything works fine on the server side but not able to get data from client side..&lt;br /&gt;
&lt;br /&gt;
client program is written in c#,client-server communication is via http post.&lt;br /&gt;
&lt;br /&gt;
i am getting error shown below when i run client program&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/427253/427253/client-side-authorization-in-aspnet-web-project/</guid>
      <pubDate>Sun, 05 Feb 2012 23:45:36 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>not able toop en design page</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/427200/427200/not-able-toop-en-design-page/</link>
      <description>its actually a isue with IDE visual studio&lt;br /&gt;
when i open the application in VS 2005 and click the design tab i am not able to get the design sheet immediately&lt;br /&gt;
it takes nearly 1  hr to load the page&lt;br /&gt;
in the status bar its showing creating controls one by one all the time &amp;amp; on right there is VS icon showing some processing&lt;br /&gt;
during this pahse neither i am able to build or execute or do anything with the VS  as there is no effect or any click or key press&lt;br /&gt;
till yest it was working fine , it started suddenly&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2286"&gt;screen.png&lt;/a&gt; (17469 bytes | downloaded 6 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/427200/427200/not-able-toop-en-design-page/</guid>
      <pubDate>Thu, 02 Feb 2012 23:29:29 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>not able toop en design page</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/427199/427199/not-able-toop-en-design-page/</link>
      <description>its actually a isue with IDE visual studio&lt;br /&gt;
when i open the application in VS 2005 and click the design tab i am not able to get the design sheet immediately&lt;br /&gt;
it takes nearly 1  hr to load the page&lt;br /&gt;
in the status bar its showing creating controls one by one all the time &amp;amp; on right there is VS icon showing some processing&lt;br /&gt;
during this pahse neither i am able to build or execute or do anything with the VS  as there is no effect or any click or key press&lt;br /&gt;
till yest it was working fine , it started suddenly&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2285"&gt;screen.png&lt;/a&gt; (17469 bytes | downloaded 7 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/427199/427199/not-able-toop-en-design-page/</guid>
      <pubDate>Thu, 02 Feb 2012 23:26:40 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Help me on asp.net</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426893/426893/help-me-on-aspnet/</link>
      <description>How to compare textbox value with database table field to check whether name is exist. If name is exist than give message name is exist otherwise allow user to insert name on table....&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426893/426893/help-me-on-aspnet/</guid>
      <pubDate>Fri, 20 Jan 2012 05:42:45 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Hide/show menus based on user's role</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426729/426729/hideshow-menus-based-on-users-role/</link>
      <description>I am using a horizonatl menu. I want to hide some menus based on the logged in user's role.  For example, if the user is administrator, then only the Master menu should be visible. How do I acheieve this?&lt;br /&gt;
&lt;br /&gt;
Please find the enclosed  ascx, js &amp;amp; css files&lt;br /&gt;
&lt;br /&gt;
If there is a simple version also, do help me out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sankari &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426729/426729/hideshow-menus-based-on-users-role/</guid>
      <pubDate>Thu, 05 Jan 2012 22:09:41 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Looking for ASP.NET Facebook Style one to one Chat for my SM site?</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426671/426671/looking-for-aspnet-facebook-style-one-to-one-chat-for-my-sm-site/</link>
      <description>Hey guys, We have a requirement for a one to one chat from one of our clients for a social media kind of project we are doing. The problem is that we need it in quick time so i would rather use an already made component that is out there. I do not mind paying a license fee but it must not be a yearly thing. One time fee is something that we can convince our project lead for. I have been searching google for the past 4 days and i do not see any components similar to what we need in asp.net. I do see comet chat for php but we need that in asp.net.&lt;br /&gt;
&lt;br /&gt;
below are some of our main requirements:&lt;br /&gt;
&lt;br /&gt;
1-1 chat&lt;br /&gt;
Footer placement in bottom right similar to that of facebook and gmail. The ones i can find right now are all chat room sort of layout which we cannot do.&lt;br /&gt;
Status to be changes by user. Appear Offline is a must.&lt;br /&gt;
SQL Server Database. We need all chat transcripts to be saved until we want to delete/archive them.&lt;br /&gt;
Group Chat is a plus as we might need that in future but is not needed right now. But a possibility of having in future would be a good thing.&lt;br /&gt;
&lt;br /&gt;
Any help/suggestions will be highly appreciated.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426671/426671/looking-for-aspnet-facebook-style-one-to-one-chat-for-my-sm-site/</guid>
      <pubDate>Mon, 02 Jan 2012 01:12:41 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Looking for ASP.NET Facebook Style one to one Chat for my SM site?</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426670/426670/looking-for-aspnet-facebook-style-one-to-one-chat-for-my-sm-site/</link>
      <description>Hey guys, We have a requirement for a one to one chat from one of our clients for a social media kind of project we are doing. The problem is that we need it in quick time so i would rather use an already made component that is out there. I do not mind paying a license fee but it must not be a yearly thing. One time fee is something that we can convince our project lead for. I have been searching google for the past 4 days and i do not see any components similar to what we need in asp.net. I do see comet chat for php but we need that in asp.net.&lt;br /&gt;
&lt;br /&gt;
below are some of our main requirements:&lt;br /&gt;
&lt;br /&gt;
1-1 chat&lt;br /&gt;
Footer placement in bottom right similar to that of facebook and gmail. The ones i can find right now are all chat room sort of layout which we cannot do.&lt;br /&gt;
Status to be changes by user. Appear Offline is a must.&lt;br /&gt;
SQL Server Database. We need all chat transcripts to be saved until we want to delete/archive them.&lt;br /&gt;
Group Chat is a plus as we might need that in future but is not needed right now. But a possibility of having in future would be a good thing.&lt;br /&gt;
&lt;br /&gt;
Any help/suggestions will be highly appreciated.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426670/426670/looking-for-aspnet-facebook-style-one-to-one-chat-for-my-sm-site/</guid>
      <pubDate>Mon, 02 Jan 2012 01:10:07 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>database connectivity in asp.net</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426520/426520/database-connectivity-in-aspnet/</link>
      <description>i have created a vs 2008 solution that contain 3 projects i.e.&lt;br /&gt;
&lt;br /&gt;
1. BLL&lt;br /&gt;
&lt;br /&gt;
2. DAL&lt;br /&gt;
&lt;br /&gt;
3. GUI (Website)&lt;br /&gt;
&lt;br /&gt;
 Language used C#&lt;br /&gt;
&lt;br /&gt;
I have add references &amp;amp; connect it through vs 2008 inbuilt sql server &amp;amp; it is working fine on &lt;br /&gt;
&lt;br /&gt;
localhost but when i upload it on internet it is giving error in web.config file i.e. customerrors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plz suggest some solution or there is a diffferent way to do it.&lt;br /&gt;
&lt;br /&gt;
thanks</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426520/426520/database-connectivity-in-aspnet/</guid>
      <pubDate>Tue, 20 Dec 2011 23:41:06 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426519/426519/this-post-has-been-deleted/</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426519/426519/this-post-has-been-deleted/</guid>
      <pubDate>Tue, 20 Dec 2011 23:38:05 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>asp.net deployment issue</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426401/426401/aspnet-deployment-issue/</link>
      <description>I have hosted my asp.net appln in a web server. (it works perfectly in my local system). I am getting error 500.&lt;br /&gt;
This is my source code:&lt;br /&gt;
&lt;br /&gt;
index.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %&amp;gt;

&amp;lt;%@ Register Src="WebUserControl5.ascx" TagName="WebUserControl5" TagPrefix="uc1" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;

&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;Login&amp;lt;/title&amp;gt;
&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
// &amp;lt;!CDATA[

function TABLE1_onclick() {

}

// ]]&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;uc1:WebUserControl5 ID="WebUserControl5_1" runat="server" /&amp;gt;
        &amp;lt;table border="0" style="height: 45%" width="100%"&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td style="width: 100px"&amp;gt;
                    &amp;lt;img src="images/BATraining800.jpg" style="width: 261px; height: 167px" /&amp;gt;&amp;lt;/td&amp;gt;
                &amp;lt;td rowspan="2" style="width: 175px"&amp;gt;
                    &amp;lt;span style="font-size: 10pt; font-family: Verdana"&amp;gt;
                    What's in Store?&amp;lt;br /&amp;gt;
                    &amp;lt;br /&amp;gt;
                    &amp;lt;/span&amp;gt;
                    &amp;lt;ul&amp;gt;
                        &amp;lt;li&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Verdana"&amp;gt;Multiple Portfolios &amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Verdana"&amp;gt;Dividend Updates &amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Verdana"&amp;gt;NAV Updates &amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Verdana"&amp;gt;Summary Statement&amp;lt;/span&amp;gt;s &amp;lt;/li&amp;gt;
                    &amp;lt;/ul&amp;gt;
                &amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;
                    &amp;lt;div style="text-align: right"&amp;gt;
                        &amp;lt;div style="text-align: left"&amp;gt;
                            &amp;lt;table border="2" cellpadding="0" cellspacing="0" style="border-right: darkkhaki thick solid; border-top: darkkhaki thick solid; border-left: darkkhaki thick solid; border-bottom: darkkhaki thick solid" id="TABLE1" onclick="return TABLE1_onclick()"&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td align="center" colspan="3" style="border-left-color: white; border-bottom-color: white; border-top-style: solid; border-top-color: white; border-right-style: solid; border-left-style: solid; height: 21px; border-right-color: white; border-bottom-style: solid"&amp;gt;
                                        &amp;lt;asp:Label ID="Label1" runat="server" Text="LOGIN" Font-Bold="True" Font-Names="Verdana" Font-Size="Small"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td align="center" colspan="3" style="border-left-color: white; border-bottom-color: white;
                                        border-top-style: solid; border-top-color: white; border-right-style: solid;
                                        border-left-style: solid; height: 21px; border-right-color: white; border-bottom-style: solid"&amp;gt;
                                        &amp;lt;asp:Label ID="Label4" runat="server" Font-Names="Verdana" Font-Size="XX-Small" ForeColor="Red"
                                            Width="140px"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td align="center" style="width: 100px; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid;"&amp;gt;
                                        &amp;lt;asp:Label ID="Label2" runat="server" Text="User ID" Font-Bold="True" Font-Names="Verdana" Font-Size="X-Small"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;
                                    &amp;lt;td align="center" colspan="" style="width: 100px; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid;"&amp;gt;
                                        &amp;lt;asp:Label ID="Label3" runat="server" Text="Password" Font-Bold="True" Font-Names="Verdana" Font-Size="X-Small"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;
                                    &amp;lt;td align="center" rowspan="2" style="width: 96px; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid;"&amp;gt;
                                        &amp;lt;asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="Bottom" ImageUrl="~/images/go.gif" OnClick="ImageButton1_Click1" /&amp;gt;&amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td align="left" style="width: 100px; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid;"&amp;gt;
                                        &amp;lt;asp:TextBox ID="txt_uid" runat="server" Font-Names="Verdana" Font-Size="Small" Width="100px"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;
                                    &amp;lt;td align="left" style="width: 100px; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid;"&amp;gt;
                                        &amp;lt;asp:TextBox ID="txt_pass" runat="server" Font-Names="Verdana" Font-Size="Small" Width="100px"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td align="right" colspan="3" style="border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid"&amp;gt;
                                        &amp;lt;asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" Font-Names="Verdana"
                                            Font-Size="X-Small"&amp;gt;Forgot Password...?&amp;lt;/asp:LinkButton&amp;gt;&amp;lt;br /&amp;gt;
                                        &amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td align="right" colspan="3" style="border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-style: solid; border-top-color: #ffffff; border-right-style: solid; border-left-style: solid; border-right-color: #ffffff; border-bottom-style: solid"&amp;gt;
                                        &amp;lt;asp:LinkButton ID="LinkButton2" runat="server" Font-Bold="True" Font-Names="Verdana"
                                            Font-Size="X-Small"&amp;gt;Register Now...!&amp;lt;/asp:LinkButton&amp;gt;&amp;lt;br /&amp;gt;
                                        &amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                            &amp;lt;/table&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td style="width: 100px; height: 145px;"&amp;gt;
                    &amp;lt;img src="images/security800.jpg" style="width: 258px; height: 133px" /&amp;gt;&amp;lt;/td&amp;gt;
                &amp;lt;td style="width: 237px; height: 145px;"&amp;gt;
                &amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
        &amp;lt;hr style="border-right: #cccc99 thick solid; border-top: #cccc99 thick solid; border-left: #cccc99 thick solid; border-bottom: #cccc99 thick solid; height: 11px;" /&amp;gt;
        &amp;lt;br /&amp;gt;
       &amp;lt;/div&amp;gt;
       
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
index.aspx.cs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Logic;

public partial class index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["exp"] == "y")
        {
            Label4.Text = "Session expired";
            Session["exp"] = "";
        }
    }



    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        Response.Redirect("RegUser.aspx");

    }
    protected void LinkButton2_Click1(object sender, EventArgs e)
    {

    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        Includes obj = new Includes();
        string user = txt_uid.Text.ToString().Trim();
        string pass = txt_pass.Text.ToString().Trim();
        //string str = "select user_id,user_pass from user_master where user_id='" + user + "' ";

        string str = "select user_status,user_id,user_pass from user_master where user_id='" + user + "' and user_pass='" + pass + "'";
        DataSet ds = obj.getDataSet(str);
        //  int row_cnt = ds.Tables[0].Rows.Count;  ********///this is also correct. instead of using datatabl****///
        DataTable dt = ds.Tables[0];
        int count = dt.Rows.Count;
        //int row_cnt = dt.Rows.Find("user_status='y'");
        DataRow[] foundRows;

        //int foundRow = dt.DefaultView.Find("Y");
        foundRows = ds.Tables[0].Select("user_status = 'Y'");
        int noRows = foundRows.Length;
        //dataSet1.Tables["Customers"].Select("CompanyName Like 'A%'");

        // string statt=dt.Rows[row_cnt]["status"].ToString().Trim()
;
        if (count &amp;gt; 0)
        //for (int i=0; i&amp;lt;count ; i++)
        {
            if (noRows == 1)
            {
                //    string pass = dt.Rows[i]["user_pass"].ToString().Trim();
                //  if ( txt_pass.Text      == pass )
                //{
                //    Session["user_id"]=dt.Rows[i]["user_id"].ToString(
).Trim();
                Session["user_id"] = txt_uid.Text.ToString().Trim();
                Response.Redirect("main.aspx");
            }//
            else
            {
                Label4.Text = "Your account is under activation. ";
                // Response.Redirect("home.aspx");
            }
        }
        else
        {

            Label4.Text = "Invalid User ID/Password";
            // Response.Redirect("home.aspx");
        }

    }



    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Response.Redirect("forget_pass.aspx");
    }
    protected void ImageButton1_Click1(object sender, ImageClickEventArgs e)
    {
        Includes obj = new Includes();
        string user = txt_uid.Text.ToString().Trim();
        string pass = txt_pass.Text.ToString().Trim();
        //string str = "select user_id,user_pass from user_master where user_id='" + user + "' ";

        string str = "select user_status,user_id,user_pass from user_master where user_id='" + user + "' and user_pass='" + pass + "'";
        DataSet ds = obj.getDataSet(str);
        //  int row_cnt = ds.Tables[0].Rows.Count;  ********///this is also correct. instead of using datatabl****///
        DataTable dt = ds.Tables[0];
        int count = dt.Rows.Count;
        //int row_cnt = dt.Rows.Find("user_status='y'");
        DataRow[] foundRows;

        //int foundRow = dt.DefaultView.Find("Y");
        foundRows = ds.Tables[0].Select("user_status = 'Y'");
        int noRows = foundRows.Length;
        //dataSet1.Tables["Customers"].Select("CompanyName Like 'A%'");

        // string statt=dt.Rows[row_cnt]["status"].ToString().Trim()
;
        if (count &amp;gt; 0)
        //for (int i=0; i&amp;lt;count ; i++)
        {
            if (noRows == 1)
            {
                //    string pass = dt.Rows[i]["user_pass"].ToString().Trim();
                //  if ( txt_pass.Text      == pass )
                //{
                //    Session["user_id"]=dt.Rows[i]["user_id"].ToString(
).Trim();
                Session["user_id"] = txt_uid.Text.ToString().Trim();
                Response.Redirect("main.aspx");
            }//
            else
            {
                Label4.Text = "Your account is under activation. ";
                // Response.Redirect("home.aspx");
            }
        }
        else
        {

            Label4.Text = "Invalid User ID/Password";
            // Response.Redirect("home.aspx");
        }

    }
}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
the include file (to create Logic namespace) is placed under App_code folder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
namespace Logic
{

 public class Includes
 {
        public void executeQuery(string strsql)
        {
            string conn = ConfigurationManager.ConnectionStrings["conn"].Con
nectionString;

            SqlConnection con = new SqlConnection(conn);
            SqlCommand cmd = new SqlCommand(strsql, con);

            try
            {
                con.Open();
                cmd.ExecuteNonQuery();

            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                con.Close();
                con.Dispose();
                cmd.Dispose();
            }

        }

        public DataSet getDataSet(string strsql)
        {

            string conn = ConfigurationManager.ConnectionStrings["conn"].Con
nectionString;
            SqlConnection con = new SqlConnection(conn);
            SqlCommand cmd = new SqlCommand(strsql, con);
            try
            {
                con.Open();
                SqlDataAdapter ad = new SqlDataAdapter(cmd);
                DataSet ds = new DataSet();
                ad.Fill(ds);
                return ds;

            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                con.Close();
                con.Dispose();
                cmd.Dispose();
            }
        }
    }

    
}&lt;/pre&gt;&lt;br /&gt;
at last web.config file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;connectionStrings&amp;gt;
&amp;lt;add name="conn" connectionString=" Server=xxx.db.xxxx.hostedresource.com; Database=xxx; User ID=xxx; Password=xxx; Trusted_Connection=False" providerName="System.Data.SqlClient" /&amp;gt; &amp;lt;remove name="LocalSqlServer"/&amp;gt; &amp;lt;add name="LocalSqlServer" connectionString=" Server=xxx.db.xxxx.hostedresource.com; Database=xxx; User ID=xxx; Password=xxx; Trusted_Connection=False" providerName="System.Data.SqlClient" /&amp;gt;
&amp;lt;/connectionStrings&amp;gt; 
&amp;lt;configuration&amp;gt;
&amp;lt;system.webServer&amp;gt;
&amp;lt;httpErrors errorMode="Detailed" /&amp;gt;
&amp;lt;asp scriptErrorSentToBrowser="true"/&amp;gt;
&amp;lt;/system.webServer&amp;gt;
&amp;lt;system.web&amp;gt;
&amp;lt;customErrors mode="Off"/&amp;gt;
&amp;lt;compilation debug="true"/&amp;gt;
&amp;lt;/system.web&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426401/426401/aspnet-deployment-issue/</guid>
      <pubDate>Thu, 15 Dec 2011 20:48:56 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426400/426400/this-post-has-been-deleted/</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426400/426400/this-post-has-been-deleted/</guid>
      <pubDate>Thu, 15 Dec 2011 20:47:06 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Christmas gift in passcert</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426046/426046/christmas-gift-in-passcert/</link>
      <description>Some questions had been available in passcert , And 20% discount for all IT exams , here a gift from Passcert as Christmas Day is coming . Perfect Your Xmas plan, UP TO 80% OFF (Coupon “xmas”)+ New members 100 points (equal to 10USD) . &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426046/426046/christmas-gift-in-passcert/</guid>
      <pubDate>Fri, 02 Dec 2011 21:54:37 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Uploading Csv and inserting to Database</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426017/426017/uploading-csv-and-inserting-to-database/</link>
      <description>Im new to this and Im creating a asp.net website that will allow you to upload a csv file to a specified folder in the site and the contents of the csv file will be inserted into a table called product_backlog on sql server. Below is the following names and data types that are in the product_backlog table: &lt;br /&gt;
&lt;br /&gt;
UserStoryID int &lt;br /&gt;
UserStoryPriority int &lt;br /&gt;
UserStory varchar(MAX) &lt;br /&gt;
UserStoryEstimate varchar(50)&lt;br /&gt;
ProjectName varchar(50)&lt;br /&gt;
&lt;br /&gt;
The file must only be .csv format and the contents of the file must be inserted into the product_backlog table, also the filename of the csv file may be different each time it is uploaded.&lt;br /&gt;
&lt;br /&gt;
UserStoryID is auto incremented so each new userstory inserted it will go up by 1, and also UserStoryID and ProjectName are primary keys.&lt;br /&gt;
&lt;br /&gt;
I have no idea at all how to attempt this, i need the code for the .VB part of the page and dont know how to start or what to write. Does anybody have any code that would do this for me, or that would help me????&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426017/426017/uploading-csv-and-inserting-to-database/</guid>
      <pubDate>Thu, 01 Dec 2011 06:27:47 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Uploading Csv and inserting to Database</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/426016/426016/uploading-csv-and-inserting-to-database/</link>
      <description>Im new to this and Im creating a asp.net website that will allow you to upload a csv file to a specified folder in the site and the contents of the csv file will be inserted into a table called product_backlog on sql server. Below is the following names and data types that are in the product_backlog table: &lt;br /&gt;
&lt;br /&gt;
UserStoryID int &lt;br /&gt;
UserStoryPriority int &lt;br /&gt;
UserStory varchar(MAX) &lt;br /&gt;
UserStoryEstimate varchar(50)&lt;br /&gt;
ProjectName varchar(50)&lt;br /&gt;
&lt;br /&gt;
The file must only be .csv format and the contents of the file must be inserted into the product_backlog table, also the filename of the csv file may be different each time it is uploaded.&lt;br /&gt;
&lt;br /&gt;
UserStoryID is auto incremented so each new userstory inserted it will go up by 1, and also UserStoryID and ProjectName are primary keys.&lt;br /&gt;
&lt;br /&gt;
I have no idea at all how to attempt this, i need the code for the .VB part of the page and dont know how to start or what to write. Does anybody have any code that would do this for me, or that would help me????&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/426016/426016/uploading-csv-and-inserting-to-database/</guid>
      <pubDate>Thu, 01 Dec 2011 06:25:57 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>login page Client Side validation with javascript in asp.net</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425941/425941/login-page-client-side-validation-with-javascript-in-aspnet/</link>
      <description>can anyone post me the code for login page having fields username and passsword and clientside validation with javascript in asp.net&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425941/425941/login-page-client-side-validation-with-javascript-in-aspnet/</guid>
      <pubDate>Wed, 23 Nov 2011 20:51:59 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Page Loads?</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425880/425880/page-loads/</link>
      <description>How do other websites make so that when you click a &amp;lt;a href&amp;gt;, it appears if the page is scrolling to the side and then you arrive on the page you clicked. For example, check out http://aleksfaure.com/, and then click the menu item WORK. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425880/425880/page-loads/</guid>
      <pubDate>Thu, 17 Nov 2011 18:09:42 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>importing from excel</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425856/425856/importing-from-excel/</link>
      <description>i am imorting excel data to sql db uisng asp.net&lt;br /&gt;
i have 2 issue regrading the same&lt;br /&gt;
&lt;br /&gt;
1) suppose i import a A.xls when the .net application is executed&lt;br /&gt;
it gets imported correctly for the first time&lt;br /&gt;
but if i try to import the same file again i get error as this file is used by some process...&lt;br /&gt;
&lt;br /&gt;
i have &lt;br /&gt;
 private void KillUnusedExcel()&lt;br /&gt;
        {&lt;br /&gt;
            System.Diagnostics.Process[] killUnused = System.Diagnostics.Process.GetProcessesByName("Exc
el");&lt;br /&gt;
            foreach (System.Diagnostics.Process open in killUnused)&lt;br /&gt;
            {&lt;br /&gt;
                if (open.MainWindowTitle.Length == 0)&lt;br /&gt;
                {&lt;br /&gt;
                    open.Kill();&lt;br /&gt;
                    &lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        } &lt;br /&gt;
&lt;br /&gt;
i closed the connection string also but still the excel doesnot quit from memory&lt;br /&gt;
so how to relase the excel from memory once the importing of one file is done&lt;br /&gt;
&lt;br /&gt;
2) Al l records not getting imported in production server but works fine in development server&lt;br /&gt;
i am having 50 records in my excel sheet&lt;br /&gt;
in my developemnt server all 50 recods gets imported&lt;br /&gt;
i published the same code in my production server &amp;amp; using the same exxel files&lt;br /&gt;
so all 50 records shld be imported&lt;br /&gt;
but only one record is imported &amp;amp; no error msg is thrown&lt;br /&gt;
so asked abyt the remaining records&lt;br /&gt;
as the code is same ,database is same &amp;amp; excel sheet is aslo same&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425856/425856/importing-from-excel/</guid>
      <pubDate>Thu, 17 Nov 2011 00:33:08 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Help on button.click</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425819/425819/help-on-buttonclick/</link>
      <description>I'm trying to make it on my website so that if I click a button or image button , another div will load that image. What is the best way to do this?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425819/425819/help-on-buttonclick/</guid>
      <pubDate>Tue, 15 Nov 2011 18:23:07 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Help on button.click</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425818/425818/help-on-buttonclick/</link>
      <description>I'm trying to make it on my website so that if I click a button or image button , another div will load that image. What is the best way to do this?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425818/425818/help-on-buttonclick/</guid>
      <pubDate>Tue, 15 Nov 2011 18:21:15 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>nested update panel</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425781/425781/nested-update-panel/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
I used 2 update panels, nested with each other&lt;br /&gt;
1st update panel contains GridView1&lt;br /&gt;
2nd update panel contains GridView2. Gridview2 contains GridView3. But GridView3 just displays data. It has no rowcommand or any events.&lt;br /&gt;
&lt;br /&gt;
My problem is when a button in GridView2 is clicked. both GridView1 and GridView2's rowcommand event are fired. But, i do not want the GridView1's Rowcommand event to fire.&lt;br /&gt;
&lt;br /&gt;
How do i achieve it. Please do help me asap.&lt;br /&gt;
&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 -&amp;gt; did'nt work.&lt;br /&gt;
I set updatemode to conditional, and childrenAsTriggers for both up1 &amp;amp; up2 -&amp;gt; did'nt work.&lt;br /&gt;
&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 and defined the trigger for up1 alone -&amp;gt; did'nt work&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 and defined the trigger for up2 alone -&amp;gt; did'nt work&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 and defined the triggers for both -&amp;gt; did'nt work.&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These are the triggers i tried&lt;br /&gt;
&lt;br /&gt;
                1) Inner update panel's trigger&lt;br /&gt;
                    &amp;lt;Triggers&amp;gt;&lt;br /&gt;
                        &amp;lt;asp:AsyncPostBackTrigger ControlID="GridView2" EventName="RowCommand" /&amp;gt;&lt;br /&gt;
                    &amp;lt;/Triggers&amp;gt;&lt;br /&gt;
                2) Outer update panel's trigger&lt;br /&gt;
&lt;br /&gt;
          &amp;lt;Triggers&amp;gt;&lt;br /&gt;
            &amp;lt;asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCommand" /&amp;gt;&lt;br /&gt;
        &amp;lt;/Triggers&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional"&amp;gt;&lt;br /&gt;
    &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;
     &amp;lt;asp:GridView ID="GridView1" ....  OnRowCreated="GridView1_RowCreated" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                     ....&lt;br /&gt;
                          ..&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                             &amp;lt;asp:UpdatePanel ID="up2" runat="server" UpdateMode="Conditional"&amp;gt;&lt;br /&gt;
                             &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;
                              &amp;lt;asp:GridView ID="GridView2" .... OnRowCreated="GridView2_RowCreated" OnRowDataBound="GridView2_RowDataBound" OnRowCommand="GridView2_RowCommand"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                              &amp;lt;asp:GridView ID="GridView3" ....&amp;gt;&lt;br /&gt;
                              &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
                              &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
                             &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;
                             &amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
.....&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Please someone help&lt;br /&gt;
&lt;br /&gt;
thanks in advance.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425781/425781/nested-update-panel/</guid>
      <pubDate>Mon, 14 Nov 2011 03:24:07 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>nested update panel</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425779/425779/nested-update-panel/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
I used 2 update panels, nested with each other&lt;br /&gt;
1st update panel contains GridView1&lt;br /&gt;
2nd update panel contains GridView2. Gridview2 contains GridView3. But GridView3 just displays data. It has no rowcommand or any events.&lt;br /&gt;
&lt;br /&gt;
My problem is when a button in GridView2 is clicked. both GridView1 and GridView2's rowcommand event are fired. But, i do not want the GridView1's Rowcommand event to fire.&lt;br /&gt;
&lt;br /&gt;
How do i achieve it. Please do help me asap.&lt;br /&gt;
&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 -&amp;gt; did'nt work.&lt;br /&gt;
I set updatemode to conditional, and childrenAsTriggers for both up1 &amp;amp; up2 -&amp;gt; did'nt work.&lt;br /&gt;
&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 and defined the trigger for up1 alone -&amp;gt; did'nt work&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 and defined the trigger for up2 alone -&amp;gt; did'nt work&lt;br /&gt;
I set updatemode to conditional for both up1 &amp;amp; up2 and defined the triggers for both -&amp;gt; did'nt work.&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These are the triggers i tried&lt;br /&gt;
&lt;br /&gt;
                1) Inner update panel's trigger&lt;br /&gt;
                    &amp;lt;Triggers&amp;gt;&lt;br /&gt;
                        &amp;lt;asp:AsyncPostBackTrigger ControlID="GridView2" EventName="RowCommand" /&amp;gt;&lt;br /&gt;
                    &amp;lt;/Triggers&amp;gt;&lt;br /&gt;
                2) Outer update panel's trigger&lt;br /&gt;
&lt;br /&gt;
          &amp;lt;Triggers&amp;gt;&lt;br /&gt;
            &amp;lt;asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCommand" /&amp;gt;&lt;br /&gt;
        &amp;lt;/Triggers&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional"&amp;gt;&lt;br /&gt;
    &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;
     &amp;lt;asp:GridView ID="GridView1" ....  OnRowCreated="GridView1_RowCreated" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                     ....&lt;br /&gt;
                          ..&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                             &amp;lt;asp:UpdatePanel ID="up2" runat="server" UpdateMode="Conditional"&amp;gt;&lt;br /&gt;
                             &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;
                              &amp;lt;asp:GridView ID="GridView2" .... OnRowCreated="GridView2_RowCreated" OnRowDataBound="GridView2_RowDataBound" OnRowCommand="GridView2_RowCommand"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                              &amp;lt;asp:GridView ID="GridView3" ....&amp;gt;&lt;br /&gt;
                              &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
                              &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
                             &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;
                             &amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
.....&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Please someone help&lt;br /&gt;
&lt;br /&gt;
thanks in advance.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425779/425779/nested-update-panel/</guid>
      <pubDate>Mon, 14 Nov 2011 02:05:59 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Pivot table in asp.net GridView</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425735/425735/pivot-table-in-aspnet-gridview/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have 4 tables in my database. i want to create pivot table using them in a gridview.&lt;br /&gt;
&lt;br /&gt;
1) Category&lt;br /&gt;
CategoryID	CategoryName&lt;br /&gt;
1	Milk&lt;br /&gt;
2	Nuts&lt;br /&gt;
3	Fruits&lt;br /&gt;
4	Vegetables&lt;br /&gt;
5	Cakes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) SubCategory&lt;br /&gt;
SubCategoryID	CategoryID	SubCategoryName&lt;br /&gt;
1	1	Soya&lt;br /&gt;
2	2	Almonds&lt;br /&gt;
3	2	Cashew&lt;br /&gt;
4	3	Apple&lt;br /&gt;
5	3	Orange&lt;br /&gt;
6	3	Grapes&lt;br /&gt;
7	3	Cherry&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Product&lt;br /&gt;
ProductID	ProductCode	ProductName	SubCategoryID	Price&lt;br /&gt;
1000	A1	Cashew1	3	5&lt;br /&gt;
2000	B1	Cashew2	3	5&lt;br /&gt;
3000	C1	Cashew3	3	5&lt;br /&gt;
4000	D1	BlackGrapes	6	10&lt;br /&gt;
5000	E1	GreenGrapes	6	10&lt;br /&gt;
6000	F1	RoseGrapes	6	10&lt;br /&gt;
				&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) Sales&lt;br /&gt;
ID	Date	ProductID	Qty	Cost&lt;br /&gt;
1	25-Oct-11	1000	1	5&lt;br /&gt;
2	25-Oct-11	2000	1	5&lt;br /&gt;
3	25-Oct-11	3000	1	5&lt;br /&gt;
4	26-Oct-11	1000	2	10&lt;br /&gt;
5	26-Oct-11	2000	2	10&lt;br /&gt;
6	26-Oct-11	3000	2	10&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These are the tables in my DB.&lt;br /&gt;
&lt;br /&gt;
I use the following query to display a pivot table &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DECLARE @var nvarchar(500)&lt;br /&gt;
DECLARE @str nvarchar(2000)&lt;br /&gt;
SELECT @var =&lt;br /&gt;
  STUFF(&lt;br /&gt;
  (&lt;br /&gt;
    select distinct ',[' + ltrim(rtrim(cast(CategoryName as char(10))))+ ']'&lt;br /&gt;
    from Category&lt;br /&gt;
    For XML Path('')&lt;br /&gt;
  ),&lt;br /&gt;
  1,1,'')&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
SELECT @str = N'&lt;br /&gt;
select  *&lt;br /&gt;
from (&lt;br /&gt;
select S.Date, S.Cost, C.CategoryName &lt;br /&gt;
from Sales S&lt;br /&gt;
left join Product P on S.ProductID = P.ProductID&lt;br /&gt;
left join Subcategory SC on SC.SubCategoryID = P.SubCategoryID&lt;br /&gt;
left join Category C on C.CategoryID = SC.CategoryID&lt;br /&gt;
) DataTable&lt;br /&gt;
PIVOT (&lt;br /&gt;
  Sum(DataTable.Cost)&lt;br /&gt;
  FOR DataTable.CategoryName IN (' + @var + ')&lt;br /&gt;
) PivotTable'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
exec sp_executesql @str&lt;br /&gt;
&lt;br /&gt;
It works fine.&lt;br /&gt;
&lt;br /&gt;
It produces the following output.&lt;br /&gt;
&lt;br /&gt;
Date	   | Cakes | Fruits  | Milk  | Nuts	|Vegetables&lt;br /&gt;
2011-10-25 |  NULL | 	NULL | 	NULL | 	15.0000 | 	NULL&lt;br /&gt;
2011-10-26 |  NULL | 	NULL | 	NULL | 	30.0000 | 	NULL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But, i want to display this in my web page in a GridView as hierarchial data, just like how it will be displayed in a excel pivot table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
25-Oct-11	15&lt;br /&gt;
----Nuts	15&lt;br /&gt;
---------Cashew3	15&lt;br /&gt;
---------1000	5&lt;br /&gt;
---------2000	5&lt;br /&gt;
---------3000	5&lt;br /&gt;
&lt;br /&gt;
26-Oct-11	30&lt;br /&gt;
----Nuts	30&lt;br /&gt;
---------Cashew3	30&lt;br /&gt;
---------1000	10&lt;br /&gt;
---------2000	10&lt;br /&gt;
---------3000	10&lt;br /&gt;
Grand Total	45&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------&lt;br /&gt;
I checked this link to display a treeview inside a gridview. &lt;br /&gt;
&lt;a href="http://www.codeproject.com/KB/aspnet/GridViewTreeView.aspx?msg=2484303"&gt;http://www.codeproject.com/KB/aspnet/GridViewTreeView.aspx?msg=2484303&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Can anyone please suggest me how to do this to produce a pivot table in a gridview-like control, that will be exactly like how pivot table looks in excel spreadsheet.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425735/425735/pivot-table-in-aspnet-gridview/</guid>
      <pubDate>Fri, 11 Nov 2011 22:52:22 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Pivot table in asp.net GridView</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425734/425734/pivot-table-in-aspnet-gridview/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have 4 tables in my database. i want to create pivot table using them in a gridview.&lt;br /&gt;
&lt;br /&gt;
1) Category&lt;br /&gt;
CategoryID	CategoryName&lt;br /&gt;
1	Milk&lt;br /&gt;
2	Nuts&lt;br /&gt;
3	Fruits&lt;br /&gt;
4	Vegetables&lt;br /&gt;
5	Cakes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) SubCategory&lt;br /&gt;
SubCategoryID	CategoryID	SubCategoryName&lt;br /&gt;
1	1	Soya&lt;br /&gt;
2	2	Almonds&lt;br /&gt;
3	2	Cashew&lt;br /&gt;
4	3	Apple&lt;br /&gt;
5	3	Orange&lt;br /&gt;
6	3	Grapes&lt;br /&gt;
7	3	Cherry&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Product&lt;br /&gt;
ProductID	ProductCode	ProductName	SubCategoryID	Price&lt;br /&gt;
1000	A1	Cashew1	3	5&lt;br /&gt;
2000	B1	Cashew2	3	5&lt;br /&gt;
3000	C1	Cashew3	3	5&lt;br /&gt;
4000	D1	BlackGrapes	6	10&lt;br /&gt;
5000	E1	GreenGrapes	6	10&lt;br /&gt;
6000	F1	RoseGrapes	6	10&lt;br /&gt;
				&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) Sales&lt;br /&gt;
ID	Date	ProductID	Qty	Cost&lt;br /&gt;
1	25-Oct-11	1000	1	5&lt;br /&gt;
2	25-Oct-11	2000	1	5&lt;br /&gt;
3	25-Oct-11	3000	1	5&lt;br /&gt;
4	26-Oct-11	1000	2	10&lt;br /&gt;
5	26-Oct-11	2000	2	10&lt;br /&gt;
6	26-Oct-11	3000	2	10&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These are the tables in my DB.&lt;br /&gt;
&lt;br /&gt;
I use the following query to display a pivot table &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DECLARE @var nvarchar(500)&lt;br /&gt;
DECLARE @str nvarchar(2000)&lt;br /&gt;
SELECT @var =&lt;br /&gt;
  STUFF(&lt;br /&gt;
  (&lt;br /&gt;
    select distinct ',[' + ltrim(rtrim(cast(CategoryName as char(10))))+ ']'&lt;br /&gt;
    from Category&lt;br /&gt;
    For XML Path('')&lt;br /&gt;
  ),&lt;br /&gt;
  1,1,'')&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
SELECT @str = N'&lt;br /&gt;
select  *&lt;br /&gt;
from (&lt;br /&gt;
select S.Date, S.Cost, C.CategoryName &lt;br /&gt;
from Sales S&lt;br /&gt;
left join Product P on S.ProductID = P.ProductID&lt;br /&gt;
left join Subcategory SC on SC.SubCategoryID = P.SubCategoryID&lt;br /&gt;
left join Category C on C.CategoryID = SC.CategoryID&lt;br /&gt;
) DataTable&lt;br /&gt;
PIVOT (&lt;br /&gt;
  Sum(DataTable.Cost)&lt;br /&gt;
  FOR DataTable.CategoryName IN (' + @var + ')&lt;br /&gt;
) PivotTable'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
exec sp_executesql @str&lt;br /&gt;
&lt;br /&gt;
It works fine.&lt;br /&gt;
&lt;br /&gt;
It produces the following output.&lt;br /&gt;
&lt;br /&gt;
Date	   | Cakes | Fruits  | Milk  | Nuts	|Vegetables&lt;br /&gt;
2011-10-25 |  NULL | 	NULL | 	NULL | 	15.0000 | 	NULL&lt;br /&gt;
2011-10-26 |  NULL | 	NULL | 	NULL | 	30.0000 | 	NULL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But, i want to display this in my web page in a GridView as hierarchial data, just like how it will be displayed in a excel pivot table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
25-Oct-11	15&lt;br /&gt;
----Nuts	15&lt;br /&gt;
---------Cashew3	15&lt;br /&gt;
---------1000	5&lt;br /&gt;
---------2000	5&lt;br /&gt;
---------3000	5&lt;br /&gt;
&lt;br /&gt;
26-Oct-11	30&lt;br /&gt;
----Nuts	30&lt;br /&gt;
---------Cashew3	30&lt;br /&gt;
---------1000	10&lt;br /&gt;
---------2000	10&lt;br /&gt;
---------3000	10&lt;br /&gt;
Grand Total	45&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------&lt;br /&gt;
I checked this link to display a treeview inside a gridview. &lt;br /&gt;
&lt;a href="http://www.codeproject.com/KB/aspnet/GridViewTreeView.aspx?msg=2484303"&gt;http://www.codeproject.com/KB/aspnet/GridViewTreeView.aspx?msg=2484303&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Can anyone please suggest me how to do this to produce a pivot table in a gridview-like control, that will be exactly like how pivot table looks in excel spreadsheet.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425734/425734/pivot-table-in-aspnet-gridview/</guid>
      <pubDate>Fri, 11 Nov 2011 22:48:40 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Uploading values from  excel to DB</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/425624/425624/uploading-values-from--excel-to-db/</link>
      <description>Hi Members,&lt;br /&gt;
 &lt;br /&gt;
   Help me with this logic..&lt;br /&gt;
&lt;br /&gt;
 I have an excel sheet as specified below i need to upload values from this sheet to DB ( sql 20008). G1 is net value,sometimes net value can also be Null&lt;br /&gt;
 &lt;br /&gt;
Code	Label&lt;br /&gt;
G1	Nokia&lt;br /&gt;
1	Nokia N series&lt;br /&gt;
2	Nokia C series&lt;br /&gt;
3	Nokia E series&lt;br /&gt;
4	Nokia Base Model&lt;br /&gt;
G2	NULL&lt;br /&gt;
5	Sony Ericsson&lt;br /&gt;
G3	Samsung &lt;br /&gt;
6	Samsung Galaxy&lt;br /&gt;
7	Samsung Galaxy Tab&lt;br /&gt;
8	Samsung Windows&lt;br /&gt;
9	Samsung Base Model&lt;br /&gt;
G4	Null&lt;br /&gt;
10	BLACKBERRY&lt;br /&gt;
11	MOTOROLA&lt;br /&gt;
12	LG&lt;br /&gt;
13	APPLE&lt;br /&gt;
14	Intex&lt;br /&gt;
15	ASUS&lt;br /&gt;
16	ACER&lt;br /&gt;
17	HTC&lt;br /&gt;
18	SPICE&lt;br /&gt;
19	Other&lt;br /&gt;
&lt;br /&gt;
My values must be displayed in table as shown below: &lt;br /&gt;
&lt;br /&gt;
Net	code	Label&lt;br /&gt;
G1	0	Nokia&lt;br /&gt;
G1	1	NokiaNseries&lt;br /&gt;
G1	2	NokiaEseries&lt;br /&gt;
G2	0	&lt;br /&gt;
	5	sony Erricson&lt;br /&gt;
G3	6	Samsung&lt;br /&gt;
G3	7	Samsung Galaxy Tab&lt;br /&gt;
G3	8	Samsung Windows&lt;br /&gt;
G4	0	&lt;br /&gt;
	10	BLACKBERRY&lt;br /&gt;
	11	MOTOROLA&lt;br /&gt;
&lt;br /&gt;
 The code column should not accept any duplicate numbers other than 0(zero). &lt;br /&gt;
  Please help me in writing logic for this  &lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sreemanth&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/425624/425624/uploading-values-from--excel-to-db/</guid>
      <pubDate>Mon, 07 Nov 2011 03:57:28 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
  </channel>
</rss>
