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

<channel>
	<title>IT Answers &#187; ASPX</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/aspx/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 13:32:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Problem with downloaded attachments in outlook 2007</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problem-with-downloaded-atachments-in-outlook-2007/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/problem-with-downloaded-atachments-in-outlook-2007/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 14:39:14 +0000</pubDate>
		<dc:creator>Umbralwarrior</dc:creator>
				<category><![CDATA[ASPX]]></category>
		<category><![CDATA[Outlook 2007]]></category>
		<category><![CDATA[Outlook attachments]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a friend who is having problems with attachments in outlook 2007. He is sending JPG files from outlook but an ASPX file is being received at the other end. I have tried looking at this myself and have found that if I select open at the download prompt, It runs some script that [...]]]></description>
				<content:encoded><![CDATA[<p>I have a friend who is having problems with attachments in outlook 2007.  He is sending JPG files from outlook but an ASPX file is being received at the other end.  I have tried looking at this myself and have found that if I select open at the download prompt, It runs some script that has been attached to the pictures which continuously opens up window after window, whereas if I select save, II can open the zip file normally.<br />
I would normally suggest that this is the behaviour of a virus but neither his McAffee or my AVG pick anything up.  I believe there may be a piece of malware on his system but am concerned that his McAffee is not picking it up.<br />
I can view the e-mails with the attachments fine in his sent items so it appears to be something in the send process that is altering the attachment.<br />
Any suggestions on what I can do to help my friend?  I&#8217;m at a loss.  I thought about trying spybot but if McAffee and AVG don&#8217;t find anything, I&#8217;m not sure where to go from there other than a complete format of his PC.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/problem-with-downloaded-atachments-in-outlook-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aspx popup doesnt work</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/aspx-popup-doesnt-work/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/aspx-popup-doesnt-work/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:37:03 +0000</pubDate>
		<dc:creator>Nsharma</dc:creator>
				<category><![CDATA[ASPX]]></category>
		<category><![CDATA[Windows Forms]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[In my web application which is a ASP.Net site using Framework 3.5 at few places i need a popup to appear for user to fill out information. The problem is at majority of the IE it runs fine but at few IEs it takes the user back to login page. I am also sending the [...]]]></description>
				<content:encoded><![CDATA[<p>In my web application which is a ASP.Net site using Framework 3.5 at few places i need a popup to appear for user to fill out information.  The problem is at majority of the IE it runs fine but at few IEs it takes the user back to login page. I am also sending the windows properties as argument in the showModalDialog function so as to retain the cookies and session information.  Also i am using windows authentication &#8220;forms&#8221; type.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/aspx-popup-doesnt-work/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Generating ASPX pages from a MYSQL table</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/generating-aspx-pages-from-a-mysql-table/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/generating-aspx-pages-from-a-mysql-table/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 15:04:02 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[ASPX]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a series of MYSQl Tables that I want to inspect via a web page, generating the logic to simply display the data is straightforward, however, it&#8217;s tedious to create each page then write the logic to make the data editable. Since it&#8217;s largely repetition it should be fairly easy for someone to have [...]]]></description>
				<content:encoded><![CDATA[<p>I have a series of MYSQl Tables that I want to inspect via a web page, generating the logic to simply display the data is straightforward, however, it&#8217;s tedious to create each page then write the logic to make the data editable.</p>
<p>Since it&#8217;s largely repetition it should be fairly easy for someone to have built a application that generates the ASPX page to view and edit this data. No need for anything fancy&#8230; just display and edit thedata.</p>
<p>I&#8217;ve found applications (Visual Studio is one) that does this for a MS SQL database&#8230; but does anyone know of an application that generates ASPX pages that interface with a MYSQL database?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/generating-aspx-pages-from-a-mysql-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Button must be selected twice to display hidden controls</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/button-must-be-selected-twice-to-display-hidden-controls/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/button-must-be-selected-twice-to-display-hidden-controls/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 21:53:53 +0000</pubDate>
		<dc:creator>Jenise</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[ASPX]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello, I have this issue with ASP.Net where i have to click my link button twice to get my controls to display. Can anyone take a look at my code to tell me why? This is a somewhat urgent request. My goal is to only show the footer row when one of the linkbuttons are [...]]]></description>
				<content:encoded><![CDATA[<p>Hello,</p>
<p>I have this issue with ASP.Net where i have to click my link button twice to get my controls to display.  Can anyone take a look at my code to tell me why?  This is a somewhat urgent request.</p>
<p>My goal is to only show the footer row when one of the linkbuttons are clicked.  In the code below, when the Insert_T link button is clicked the entire footer row with drop downs and textboxes (not labels) should display.  The footer row displays and I know the data is there, but the controls don&#8217;t display until the second click. </p>
<p>I just posted a portion of the vb code since all the buttons work the same way.</p>
<p>thanks!!<br />
Jenise</p>
<p>ASPX code:<br />
&lt;asp:GridView ID=&#8221;gv_CurrentPlan&#8221;<br />
    runat=&#8221;server&#8221;<br />
    AutoGenerateColumns=&#8221;false&#8221;<br />
    DataSourceID=&#8221;SqlDataSource&#8221;<br />
    DataKeyNames=&#8221;DID,TID,BU_PK,PL_PK&#8221;<br />
    CellPadding=&#8221;5&#8243;<br />
    OnRowDataBound=&#8221;gv_CurrentPlan_RowDataBound&#8221;<br />
    OnRowUpdating=&#8221;gv_CurrentPlan_RowUpdating&#8221;<br />
    ShowFooter=&#8221;false&#8221;<br />
    showHeader=&#8221;true&#8221;<br />
    HorizontalAlign=&#8221;Left&#8221;&gt;<br />
    &lt;Columns&gt;<br />
        &lt;asp:TemplateField HeaderText=&#8221;Technology&#8221;&gt;<br />
            &lt;EditItemTemplate&gt;<br />
                &lt;asp:DropDownList ID=&#8221;ddlTech&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    AutoPostBack=&#8221;true&#8221;<br />
                    DataSourceID=&#8221;SqlDS_Tech&#8221;<br />
                    DataTextField=&#8221;Technology&#8221;<br />
                    DataValueField=&#8221;TID&#8221;<br />
                    OnSelectedIndexChanged=&#8221;ddlTech_SelectedIndexChanged&#8221; /&gt;<br />
                &lt;asp:SqlDataSource ID=&#8221;SqlDS_Tech&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    ConnectionString=&#8221;&lt;%$ ConnectionStrings:AnnualPlan %&gt;&#8221;<br />
                    SelectCommand=&#8221;Select dbo.tblTechnology.TID, dbo.tblTechnology.Technology FROM dbo.tblTechnology ORDER BY dbo.tblTechnology.Technology&#8221; &gt;<br />
                &lt;/asp:SqlDataSource&gt;<br />
            &lt;/EditItemTemplate&gt;</p>
<p>            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblTech&#8221; runat=&#8221;server&#8221; text=&#8217;&lt;%# Eval(&#8220;Technology&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblTech_f&#8221; runat=&#8221;server&#8221; Visible=&#8221;false&#8221; /&gt;<br />
                &lt;asp:DropDownList ID=&#8221;ddlTech_f&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    AutoPostBack=&#8221;true&#8221;<br />
                    DataSourceID=&#8221;SqlDS_Tech_f&#8221;<br />
                    DataTextField=&#8221;Technology&#8221;<br />
                    DataValueField=&#8221;TID&#8221;<br />
                    AppendDataBoundItems=&#8221;true&#8221;<br />
                    Visible=&#8221;false&#8221;<br />
                    OnSelectedIndexChanged=&#8221;ddlTech_f_SelectedIndexChanged&#8221;&gt;<br />
                    &lt;asp:ListItem Value=&#8221;0&#8243;&gt;Select Technology&lt;/asp:ListItem&gt;<br />
                &lt;/asp:DropDownList&gt;<br />
                &lt;asp:SqlDataSource ID=&#8221;SqlDS_Tech_f&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    ConnectionString=&#8221;&lt;%$ ConnectionStrings:AnnualPlan %&gt;&#8221;<br />
                    SelectCommand=&#8221;Select dbo.tblTechnology.TID, dbo.tblTechnology.Technology FROM dbo.tblTechnology ORDER BY dbo.tblTechnology.Technology&#8221; &gt;<br />
                &lt;/asp:SqlDataSource&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;  </p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;FY Target$&#8221;&gt;<br />
            &lt;EditItemTemplate&gt;<br />
                &lt;asp:TextBox ID=&#8221;txtTechTarget&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Bind(&#8220;Target&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/EditItemTemplate&gt;<br />
            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblTechTarget&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;Target&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblTechTarget_f&#8221; runat=&#8221;server&#8221; visible=&#8221;false&#8221; /&gt;<br />
                &lt;asp:TextBox ID=&#8221;txtTechTarget_f&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Bind(&#8220;Target&#8221;) %&gt;&#8217; Visible=&#8221;false&#8221; /&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;</p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;Business Unit&#8221;&gt;<br />
            &lt;EditItemTemplate&gt;<br />
                &lt;asp:DropDownList ID=&#8221;ddlBU&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    AutoPostBack=&#8221;true&#8221;<br />
                    DataTextField=&#8221;BU&#8221;<br />
                    DataValueField=&#8221;BID&#8221;<br />
                    DataSourceID=&#8221;SqlDS_BU&#8221;<br />
                    AppendDataBoundItems=&#8221;true&#8221;<br />
                    OnSelectedIndexChanged=&#8221;ddlBU_SelectedIndexChanged&#8221;&gt;<br />
                    &lt;asp:ListItem Value=&#8221;0&#8243;&gt;Select Business Unit&lt;/asp:ListItem&gt;<br />
                &lt;/asp:DropDownList&gt;<br />
                &lt;asp:SqlDataSource ID=&#8221;SqlDS_BU&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    ConnectionString=&#8221;&lt;%$ ConnectionStrings:AnnualPlan %&gt;&#8221;<br />
                    SelectCommand=&#8221;SELECT dbo.tblBusinessUnit.BID, dbo.tblBusinessUnit.BU FROM dbo.tblBUH_Hierarchy INNER JOIN dbo.tblBusinessUnit ON dbo.tblBUH_Hierarchy.BID = dbo.tblBusinessUnit.BID WHERE (dbo.tblBUH_Hierarchy.TID = @TID) GROUP BY dbo.tblBusinessUnit.BID, dbo.tblBusinessUnit.BU ORDER BY dbo.tblBusinessUnit.BU&#8221;&gt;<br />
                    &lt;SelectParameters&gt;<br />
                        &lt;asp:Parameter Name=&#8221;TID&#8221; Type=&#8221;Int32&#8243; /&gt;<br />
                    &lt;/SelectParameters&gt;<br />
                &lt;/asp:SqlDataSource&gt;<br />
            &lt;/EditItemTemplate&gt;</p>
<p>            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblBU&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;BU&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblBU_f&#8221; runat=&#8221;server&#8221; Visible=&#8221;false&#8221; /&gt;<br />
                &lt;asp:DropDownList ID=&#8221;ddlBU_f&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    AutoPostBack=&#8221;true&#8221;<br />
                    DataTextField=&#8221;BU&#8221;<br />
                    DataValueField=&#8221;BID&#8221;<br />
                    AppendDataBoundItems=&#8221;true&#8221;<br />
                    DataSourceID=&#8221;SqlDS_BU_f&#8221;<br />
                    Visible=&#8221;false&#8221;<br />
                    OnSelectedIndexChanged=&#8221;ddlBU_f_SelectedIndexChanged&#8221;&gt;<br />
                    &lt;asp:ListItem Value=&#8221;0&#8243;&gt;Select Business Unit&lt;/asp:ListItem&gt;<br />
                &lt;/asp:DropDownList&gt;<br />
                &lt;asp:SqlDataSource ID=&#8221;SqlDS_BU_f&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    ConnectionString=&#8221;&lt;%$ ConnectionStrings:AnnualPlan %&gt;&#8221;<br />
                    SelectCommand=&#8221;SELECT dbo.tblBusinessUnit.BID, dbo.tblBusinessUnit.BU FROM dbo.tblBUH_Hierarchy INNER JOIN dbo.tblBusinessUnit ON dbo.tblBUH_Hierarchy.BID = dbo.tblBusinessUnit.BID WHERE (dbo.tblBUH_Hierarchy.TID = @TID) GROUP BY dbo.tblBusinessUnit.BID, dbo.tblBusinessUnit.BU ORDER BY dbo.tblBusinessUnit.BU&#8221;&gt;<br />
                    &lt;SelectParameters&gt;<br />
                        &lt;asp:Parameter Name=&#8221;TID&#8221; Type=&#8221;Int32&#8243; /&gt;<br />
                    &lt;/SelectParameters&gt;<br />
                 &lt;/asp:SqlDataSource&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;</p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;BU Percentage&#8221;&gt;<br />
            &lt;EditItemTemplate&gt;<br />
                &lt;asp:TextBox ID=&#8221;txtBUPerc&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Bind(&#8220;BUPer&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/EditItemTemplate&gt;<br />
            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblBUPerc&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;BUPer&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblBUPerc_f&#8221; runat=&#8221;server&#8221; Visible=&#8221;false&#8221; /&gt;<br />
                &lt;asp:TextBox ID=&#8221;txtBUPerc_f&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Bind(&#8220;BUPer&#8221;) %&gt;&#8217; Visible=&#8221;false&#8221; /&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;</p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;BU Value$&#8221;&gt;<br />
            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblBUValue&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;BUValue&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblBUValue_f&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;BUValue&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;</p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;Product Line&#8221;&gt;<br />
            &lt;EditItemTemplate&gt;<br />
                &lt;asp:DropDownList ID=&#8221;ddlPL&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    AutoPostBack=&#8221;true&#8221;<br />
                    DataTextField=&#8221;ProductLine&#8221;<br />
                    DataValueField=&#8221;PLID&#8221;<br />
                    DataSourceID=&#8221;SqlDS_PL&#8221;<br />
                    AppendDataBoundItems=&#8221;true&#8221;&gt;<br />
                    &lt;asp:ListItem Value=&#8221;0&#8243;&gt;Select Product Line&lt;/asp:ListItem&gt;<br />
                &lt;/asp:DropDownList&gt;<br />
                &lt;asp:SqlDataSource ID=&#8221;SqlDS_PL&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    ConnectionString=&#8221;&lt;%$ ConnectionStrings:AnnualPlan %&gt;&#8221;<br />
                    SelectCommand=&#8221;SELECT dbo.tblProductLine.PLID, dbo.tblProductLine.ProductLine FROM dbo.tblBUH_Hierarchy INNER JOIN dbo.tblProductLine ON dbo.tblBUH_Hierarchy.TID = dbo.tblProductLine.TID WHERE (dbo.tblBUH_Hierarchy.BID = @BID) GROUP BY dbo.tblProductLine.PLID, dbo.tblProductLine.ProductLine ORDER BY dbo.tblProductLine.ProductLine&#8221;&gt;<br />
                    &lt;SelectParameters&gt;<br />
                        &lt;asp:Parameter Name=&#8221;BID&#8221; Type=&#8221;Int32&#8243; /&gt;<br />
                    &lt;/SelectParameters&gt;<br />
                 &lt;/asp:SqlDataSource&gt;<br />
            &lt;/EditItemTemplate&gt;<br />
            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblPL&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;ProductLine&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:DropDownList ID=&#8221;ddlPL_f&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    AutoPostBack=&#8221;true&#8221;<br />
                    DataTextField=&#8221;ProductLine&#8221;<br />
                    DataValueField=&#8221;PLID&#8221;<br />
                    AppendDataBoundItems=&#8221;true&#8221;<br />
                    DataSourceID=&#8221;SqlDS_PL_f&#8221; &gt;<br />
                    &lt;asp:ListItem Value=&#8221;0&#8243;&gt;Select Product Line&lt;/asp:ListItem&gt;<br />
                &lt;/asp:DropDownList&gt;<br />
                &lt;asp:SqlDataSource ID=&#8221;SqlDS_PL_f&#8221;<br />
                    runat=&#8221;server&#8221;<br />
                    ConnectionString=&#8221;&lt;%$ ConnectionStrings:AnnualPlan %&gt;&#8221;<br />
                    SelectCommand=&#8221;SELECT dbo.tblProductLine.PLID, dbo.tblProductLine.ProductLine FROM dbo.tblBUH_Hierarchy INNER JOIN dbo.tblProductLine ON dbo.tblBUH_Hierarchy.TID = dbo.tblProductLine.TID WHERE (dbo.tblBUH_Hierarchy.BID = @BID) GROUP BY dbo.tblProductLine.PLID, dbo.tblProductLine.ProductLine ORDER BY dbo.tblProductLine.ProductLine&#8221;&gt;<br />
                    &lt;SelectParameters&gt;<br />
                        &lt;asp:Parameter Name=&#8221;BID&#8221; Type=&#8221;Int32&#8243; /&gt;<br />
                    &lt;/SelectParameters&gt;<br />
                 &lt;/asp:SqlDataSource&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;</p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;PL Percentage&#8221;&gt;<br />
            &lt;EditItemTemplate&gt;<br />
                &lt;asp:TextBox ID=&#8221;txtPLPerc&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Bind(&#8220;PLPer&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/EditItemTemplate&gt;<br />
            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblPLPerc&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;PLPer&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
            &lt;FooterTemplate&gt;<br />
                &lt;asp:TextBox ID=&#8221;txtPLPerc_f&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Bind(&#8220;PLPer&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/FooterTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;</p>
<p>        &lt;asp:TemplateField HeaderText=&#8221;PL Value$&#8221;&gt;<br />
            &lt;ItemTemplate&gt;<br />
                &lt;asp:Label ID=&#8221;lblPLValue&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# Eval(&#8220;PLValue&#8221;) %&gt;&#8217; /&gt;<br />
            &lt;/ItemTemplate&gt;<br />
        &lt;/asp:TemplateField&gt;<br />
      &lt;asp:TemplateField&gt;<br />
        &lt;ItemTemplate&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnEdit&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Edit&#8221; Text=&#8221;Edit&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnInsert_T&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Insert_T&#8221; Text=&#8221;Add Tech&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnInsert_BU&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Insert_BU&#8221; Text=&#8221;Add BU&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnInsert_PL&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Insert_PL&#8221; Text=&#8221;Add PL&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnDelete&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Delete&#8221; Text=&#8221;Delete&#8221; OnClientClick=&#8221;return confirm(&#8216;Are you sure you want to delete this record?&#8217;);&#8221; /&gt;<br />
        &lt;/ItemTemplate&gt;<br />
        &lt;EditItemTemplate&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnUpdate&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;False&#8221; CommandName=&#8221;Update&#8221; Text=&#8221;Update&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnCancel&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;False&#8221; CommandName=&#8221;Cancel&#8221; Text=&#8221;Cancel&#8221; /&gt;<br />
        &lt;/EditItemTemplate&gt;<br />
        &lt;FooterTemplate&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnInsert_T_f&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Insert&#8221; Text=&#8221;Insert&#8221; Visible=&#8221;false&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnInsert_PL_f&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Insert_PL2&#8243; Text=&#8221;Insert&#8221; Visible=&#8221;false&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnInsert_BU_f&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Insert_BU2&#8243; Text=&#8221;Insert&#8221; Visible=&#8221;false&#8221; /&gt;<br />
            &lt;asp:LinkButton ID=&#8221;btnCancelInsert_f&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;true&#8221; CommandName=&#8221;Cancel&#8221; Text=&#8221;Cancel&#8221; Visible=&#8221;false&#8221; /&gt;<br />
        &lt;/FooterTemplate&gt;<br />
    &lt;/asp:TemplateField&gt;<br />
    &lt;asp:TemplateField&gt;<br />
        &lt;ItemTemplate&gt;<br />
            &lt;asp:Label ID=&#8221;lblErrorFlag&#8221; runat=&#8221;server&#8221; ForeColor=&#8221;Red&#8221; Font-Italic=&#8221;true&#8221; Font-Bold=&#8221;true&#8221; Text=&#8217;&lt;%# Eval(&#8220;complete_calc&#8221;)%&gt;&#8217; /&gt;<br />
        &lt;/ItemTemplate&gt;<br />
    &lt;/asp:TemplateField&gt;<br />
    &lt;/Columns&gt;<br />
&lt;/asp:GridView&gt;</p>
<p>Protected Sub gv_CurrentPlan_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gv_CurrentPlan.RowCommand<br />
ElseIf e.CommandName = &#8220;Insert_T&#8221; AndAlso Page.IsValid Then</p>
<p>            Dim ddlTech_f As DropDownList = CType(gv_CurrentPlan.FooterRow.FindControl(&#8220;ddlTech_f&#8221;), DropDownList)<br />
            Dim txtTechTarget_f As TextBox = CType(gv_CurrentPlan.FooterRow.FindControl(&#8220;txtTechTarget_f&#8221;), TextBox)<br />
            Dim ddlBU_f As DropDownList = CType(gv_CurrentPlan.FooterRow.FindControl(&#8220;ddlBU_f&#8221;), DropDownList)<br />
            Dim txtBUPerc_f As TextBox = CType(gv_CurrentPlan.FooterRow.FindControl(&#8220;txtBUPerc_f&#8221;), TextBox)<br />
            Dim btnIns_BU As LinkButton = CType(gv_CurrentPlan.Rows(gvRow.RowIndex).FindControl(&#8220;btnInsert_BU&#8221;), LinkButton)<br />
            Dim btnIns_T As LinkButton = CType(gv_CurrentPlan.Rows(gvRow.RowIndex).FindControl(&#8220;btnInsert_T&#8221;), LinkButton)<br />
            Dim btnIns_PL As LinkButton = CType(gv_CurrentPlan.Rows(gvRow.RowIndex).FindControl(&#8220;btnInsert_PL&#8221;), LinkButton)<br />
            Dim btn_Edit As LinkButton = CType(gv_CurrentPlan.Rows(gvRow.RowIndex).FindControl(&#8220;btnEdit&#8221;), LinkButton)<br />
            Dim btnIns_T_f As LinkButton = CType(gv_CurrentPlan.FooterRow.FindControl(&#8220;btnInsert_T_f&#8221;), LinkButton)<br />
            Dim btnCancelIns_f As LinkButton = CType(gv_CurrentPlan.FooterRow.FindControl(&#8220;btnCancelInsert_f&#8221;), LinkButton)</p>
<p>            gv_CurrentPlan.ShowFooter = True</p>
<p>            ddlTech_f.Visible = True<br />
            txtTechTarget_f.Visible = True<br />
            ddlBU_f.Visible = True<br />
            txtBUPerc_f.Visible = True</p>
<p>            btn_Edit.Visible = False<br />
            btnIns_T.Visible = False<br />
            btnIns_BU.Visible = False<br />
            btnIns_PL.Visible = False<br />
            btnIns_T_f.Visible = True<br />
            btnCancelIns_f.Visible = True</p>
<p>            ViewState.Add(&#8220;strCmdButton&#8221;, &#8220;Insert&#8221;)<br />
            ViewState.Add(&#8220;iDIDKey&#8221;, gv_CurrentPlan.DataKeys(gvRow.RowIndex).Values(0))<br />
VB-Code Behind:</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/button-must-be-selected-twice-to-display-hidden-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why isn&#8217;t my data displaying in the next page of Gridview?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/why-isnt-my-data-displaying-in-the-next-page-of-gridview/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/why-isnt-my-data-displaying-in-the-next-page-of-gridview/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 17:25:28 +0000</pubDate>
		<dc:creator>Ilfoprog</dc:creator>
				<category><![CDATA[ASPX]]></category>
		<category><![CDATA[GridView]]></category>
		<category><![CDATA[SQL data source]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I added a sqldatasource from my toolbox to my aspx page. I then configured the sqldatasource to connect to a table. I then added a gridview to the same aspx page and selected the sqldatasource as it&#8217;s data source. In addition to other column formatting etc., I set paging to true. I then opened the [...]]]></description>
				<content:encoded><![CDATA[<p>I added a sqldatasource from my toolbox to my aspx page.  I then configured the sqldatasource to connect to a table.  I then added a gridview to the same aspx page and selected the sqldatasource as it&#8217;s data source.  In addition to other column formatting etc., I set paging to true.  I then opened the page in my browser, clicked the button I have on the page to display the gridview&#8217;s data.  However, when I click page 2 the gridview dissapears.  </p>
<p>I then tried another approach, I added the table directly from the Server Explorer, configured the defaulted SQLDataSource connection, I set paging to true.  I then opened the page in my browser, clicked the button I have on the page to display the gridview&#8217;s data(see new code snippet).  However, when I click page 2 the gridview dissapears.</p>
<p>That is the problem I&#8217;m having.  The gridview keeps disappearing when I click a page number.  There’s definitely more data to see.  I&#8217;m sure there&#8217;s a solution.  I thought I just set the paging to true.  But obviously it&#8217;s not that simple.  (see code snippet below).  </p>
<p> Thanks for anyone&#8217;s suppout.</p>
<p>BUTTON CODE:<br />
Protected Sub btn_All_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_All.Click</p>
<p>        Dim objConn As Data.SqlClient.SqlConnection<br />
        Dim objComm As Data.SqlClient.SqlCommand</p>
<p>        objConn = New SqlClient.SqlConnection<br />
        objConn.ConnectionString = &#8220;Data Source=CODA2K;Persist Security Info=True;password=codaprod; USER ID=codaprod;Initial Catalog=CODAPROD;&#8221;</p>
<p>        objConn.Open()<br />
        objComm = New SqlCommand(&#8220;pr_HolidaySales&#8221;, objConn)<br />
        objComm.CommandType = CommandType.StoredProcedure<br />
objComm.CommandTimeout = 500</p>
<p>        objComm.ExecuteNonQuery()</p>
<p>        GVHoliday.DataBind()</p>
<p>        GVHoliday.Visible = True</p>
<p>    End Sub</p>
<p>Open in New Window Select All</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/why-isnt-my-data-displaying-in-the-next-page-of-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is it possible to load aspx directly in wpf grid canvas</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-to-load-aspx-directly-in-wpf-grid-canvas/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-to-load-aspx-directly-in-wpf-grid-canvas/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 13:16:13 +0000</pubDate>
		<dc:creator>Ravishankarb</dc:creator>
				<category><![CDATA[ASPX]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[WPF Grid Canvas]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Is it possible to load aspx directly in wpf grid canvas]]></description>
				<content:encoded><![CDATA[<p>Is it possible to load aspx directly in wpf grid canvas</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-to-load-aspx-directly-in-wpf-grid-canvas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/22 queries in 0.035 seconds using memcached
Object Caching 645/742 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 14:12:35 -->