<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Time Tracker Starter Kit</title><link>http://forums.asp.net/1005.aspx</link><description>Discussions about the Time Tracker Starter Kit for ASP.NET 2.0.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Updating Gridview, Business Object, hide identity column</title><link>http://forums.asp.net/thread/1617077.aspx</link><pubDate>Mon, 12 Mar 2007 21:40:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1617077</guid><dc:creator>BasketballMike</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1617077.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1617077</wfw:commentRss><description>&lt;font color=#ff0000 size=2&gt;
&lt;p&gt;I changed the gridviews HTML code to this&lt;/p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#a31515 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#a31515 size=2&gt;GridView&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="GridView1"&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AutoGenerateColumns&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="False"&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataSourceID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="WeeklyTimeApprovalData"&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataKeyNames&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="SummaryId"&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;the &lt;font color=#ff0000&gt;DataKeyNames&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="SummaryId"&amp;gt; did the trick&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;Mike&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Updating Gridview, Business Object, hide identity column</title><link>http://forums.asp.net/thread/1615563.aspx</link><pubDate>Sun, 11 Mar 2007 23:10:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1615563</guid><dc:creator>vvsharma</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1615563.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1615563</wfw:commentRss><description>&lt;p&gt;Visible =false shouldnt matter.You should still be able to access it.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Are you&amp;nbsp; using SqlDataSource for the Update method?if yes,make sure you have the Update parameters specified correctly.&lt;/p&gt;&lt;p&gt;i.e&amp;nbsp;&lt;/p&gt;&lt;pre class="code" id="ctl00_LibFrame_ctl29CSharp"&gt;&lt;br /&gt;&amp;lt;asp:GridView ID="VanListGridView" runat="server"&lt;br /&gt;AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"&lt;br /&gt;CellPadding="3" GridLines="Horizontal"&lt;br /&gt;DataSourceID="SqlDataSource1" &amp;nbsp;... ................................&lt;/pre&gt;&lt;pre class="code" id="ctl00_LibFrame_ctl29CSharp"&gt;    &amp;lt;asp:SqlDataSource&lt;br /&gt;          id="SqlDataSource1"&lt;br /&gt;          runat="server"&lt;br /&gt;          ConnectionString="&amp;lt;%$ ConnectionStrings:MyNorthwind%&amp;gt;"&lt;br /&gt;             UpdateCommand="UPDATE Employees SET Address=@&lt;b&gt;Address &lt;/b&gt;WHERE EmployeeID=@&lt;b&gt;EmployeeID&lt;/b&gt;"&amp;gt;&lt;br /&gt;          &amp;lt;UpdateParameters&amp;gt;&lt;br /&gt;              &amp;lt;asp:ControlParameter Name="&lt;b&gt;Address&lt;/b&gt;" ControlId="TextBox1" PropertyName="Text"/&amp;gt;&lt;br /&gt;              &amp;lt;asp:ControlParameter Name="&lt;b&gt;EmployeeID&lt;/b&gt;" ControlId="DropDownList1" PropertyName="SelectedValue"/&amp;gt;&lt;br /&gt;          &amp;lt;/UpdateParameters&amp;gt;&lt;br /&gt;      &amp;lt;/asp:SqlDataSource&amp;gt;&lt;/pre&gt;&lt;p&gt;Info Source:http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.update(VS.80).aspx &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Updating Gridview, Business Object, hide identity column</title><link>http://forums.asp.net/thread/1611910.aspx</link><pubDate>Thu, 08 Mar 2007 19:28:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1611910</guid><dc:creator>BasketballMike</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1611910.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1611910</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I created a BLL Class&amp;nbsp; "SubmitTime.cs" &amp;amp; BusObjDataSource control very similar to the TimeEntry class and&amp;nbsp;ProjectListDataSource found on TimeEntry.aspx.&amp;nbsp; The select and update functions are very similar to the timeEntry select and update functions.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I wired up a gridview, my SubmitTime class and my select and update methods.&amp;nbsp; Everything works fine until I try hide the identity column (Which I use in my Update stored procedure in the DAL).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;When I edit the column, and set&amp;nbsp; read only&amp;nbsp; = &lt;strong&gt;true&lt;/strong&gt; or visible = &lt;strong&gt;false&lt;/strong&gt;, the updates don't work.&amp;nbsp; My id column is not getting passed to the BusObjDataSource when it's hidden or read only.&lt;/p&gt;
&lt;p&gt;How can I hide this column and still pass the parameter?&amp;nbsp; Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item></channel></rss>