<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</title>
		<link>http://p2p.wrox.com</link>
		<description>This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640 Read more about ASP.NET 2.0 Website Programming: Problem - Design - Solution or buy the book from your favorite retailer Download the code for ASP.NET 2.0 Website Programming: Problem - Design - Solution</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 19:56:18 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title>Master Page</title>
			<link>http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/77085-master-page.html</link>
			<pubDate>Thu, 19 Nov 2009 10:59:35 GMT</pubDate>
			<description>I am Using VS 2005 Professional Edition - 
I am using ContentPlaceHolder to show the aspx pages in master page.
Then what will be the form name in...</description>
			<content:encoded><![CDATA[<div>I am Using VS 2005 Professional Edition - <br />
I am using ContentPlaceHolder to show the aspx pages in master page.<br />
Then what will be the form name in order to trigger keypress event in all forms.<br />
<br />
Please Help Me.<br />
<br />
with Regards,<br />
S. Dinesh Kumar</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/">BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</category>
			<dc:creator>Dinesh Kumar S</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/77085-master-page.html</guid>
		</item>
		<item>
			<title>objects and events</title>
			<link>http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/77083-objects-events.html</link>
			<pubDate>Thu, 19 Nov 2009 10:41:22 GMT</pubDate>
			<description>I am using visual studio 2005 professional edition - 
while opening the code behind or designing source view i am not able to view objects and events...</description>
			<content:encoded><![CDATA[<div>I am using visual studio 2005 professional edition - <br />
while opening the code behind or designing source view i am not able to view objects and events tool at the top of the same window.<br />
<br />
please help me.<br />
<br />
with Regards,<br />
S. Dinesh Kumar</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/">BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</category>
			<dc:creator>Dinesh Kumar S</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/77083-objects-events.html</guid>
		</item>
		<item>
			<title>Updating Page Title when SelectedIndexChanged</title>
			<link>http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/77040-updating-page-title-when-selectedindexchanged.html</link>
			<pubDate>Sun, 15 Nov 2009 04:18:16 GMT</pubDate>
			<description><![CDATA[Hi all, 

I'm trying to make it so that the title of my page updates when the selected choice from either the BrowseProducts or BrowseArticles page...]]></description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
I'm trying to make it so that the title of my page updates when the selected choice from either the BrowseProducts or BrowseArticles page changes, and I'm having a lot of trouble figuring this out. The ddlDepartments_SelectedIndexChanged only binds data with gvw.Products.DataBind();   however I'm trying to edit the code for BrowseProducts.aspx.cs to update the title in the following way: <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Collections;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Web.UI.HtmlControls;<br />
using MB.TestingMachines;<br />
using MB.TestingMachines.BLL.Store;<br />
<br />
namespace MB.TestingMachines.UI<br />
{<br />
&nbsp;  public partial class BrowseProducts : BasePage<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; int _departmentID = 0;<br />
&nbsp; &nbsp; &nbsp;  protected void Page_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (!string.IsNullOrEmpty(this.Request.QueryString[&quot;DepID&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _departmentID = int.Parse(this.Request.QueryString[&quot;DepID&quot;]);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (!this.IsPostBack)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // try to load the product with the specified ID, and raise an exception if it doesn't exist<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Department department = Department.GetDepartmentByID(_departmentID);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (department == null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this.Title = String.Format(this.Title, (&quot;All Products&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this.Title = String.Format(this.Title, (department.Title));<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &lt;!-- THIS IS WHERE I'D ASSUME SOME CODE WOULD GO? --&gt;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
}</code><hr />
</div>And the code for the ASPX page is:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;%@ Page Language=&quot;C#&quot; MasterPageFile=&quot;~/page.master&quot; EnableEventValidation=&quot;false&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;BrowseProducts.aspx.cs&quot; Inherits=&quot;MB.TestingMachines.UI.BrowseProducts&quot; Title=&quot;Lako Tool | {0}&quot; %&gt;<br />
&lt;%@ MasterType VirtualPath=&quot;~/page.master&quot; %&gt;<br />
&lt;%@ Register Src=&quot;./Controls/ProductListing.ascx&quot; TagName=&quot;ProductListing&quot; TagPrefix=&quot;mb&quot; %&gt;<br />
<br />
&lt;asp:Content ID=&quot;Content&quot; ContentPlaceHolderID=&quot;pagecol1&quot; Runat=&quot;Server&quot;&gt;<br />
&lt;p class=&quot;header&quot;&gt;Product Catalog&lt;/p&gt;<br />
&lt;div class=&quot;colText&quot;&gt;<br />
<br />
&nbsp;  &lt;mb:ProductListing id=&quot;ProductListing1&quot; runat=&quot;server&quot; /&gt;<br />
&nbsp;  <br />
&lt;/div&gt;<br />
&lt;/asp:Content&gt;</code><hr />
</div>I've tried a few things so far, but nothing has worked. Any tips?</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/">BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</category>
			<dc:creator>sully7</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/77040-updating-page-title-when-selectedindexchanged.html</guid>
		</item>
		<item>
			<title>Site deployment - Welcome box vanishes</title>
			<link>http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/76990-site-deployment-welcome-box-vanishes.html</link>
			<pubDate>Wed, 11 Nov 2009 09:46:28 GMT</pubDate>
			<description>Hi, I have developed an application based on the principles in the book. I have successfully implemented the deployment process. However, the details...</description>
			<content:encoded><![CDATA[<div>Hi, I have developed an application based on the principles in the book. I have successfully implemented the deployment process. However, the details pertaining to the WelcomeBox disappear on the deployed version. They are still present when I work and test in VS2008 but not in the server version. <br />
<br />
It seems that deployment processing does not include the \controls\WelcomeBox.ascx file in neither the pre-compiled and 'copy web site' versions .  I am using IIS to test the site before going into production.<br />
<br />
Can you assist on this one.<br />
<br />
My congratulations to the author for an excellent book. I have ordered the 3.5 version and await it's delivery in eager anticipation.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/">BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</category>
			<dc:creator>leswilton</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/76990-site-deployment-welcome-box-vanishes.html</guid>
		</item>
		<item>
			<title>INSERT Article fails also category fails too</title>
			<link>http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/76850-insert-article-fails-also-category-fails-too.html</link>
			<pubDate>Mon, 02 Nov 2009 01:12:00 GMT</pubDate>
			<description>Hi guys:

I open AddEditArticle.aspx for adding a new article. but when i click the insert,
the error came out.  If insert category, the same...</description>
			<content:encoded><![CDATA[<div>Hi guys:<br />
<br />
I open AddEditArticle.aspx for adding a new article. but when i click the insert,<br />
the error came out.  If insert category, the same problem.<br />
<br />
Server Error in '/' Application.<br />
Cannot insert the value NULL into column 'ArticleID', table 'aspnetdb.dbo.tbh_Articles'; column does not allow nulls. INSERT fails.<br />
The statement has been terminated.<br />
<br />
and SQL server profiler said that:<br />
declare @p16 int<br />
set @p16=NULL<br />
exec tbh_Articles_InsertArticle @AddedDate=''2009-11-02 <br />
09:15:27:140'',@AddedBy=N'wxt',@CategoryID=1,@Titl  e=N'jl;',@Abstract=N'jl;',@Body=N'&lt;p&gt;&amp;nbsp;jkl;&lt;/p&gt;',@Country=N'Albania',@State=N'jkll;',@City=N'kl  jl',@ReleaseDate=''2009-11-02 <br />
09:15:27:140'',@ExpireDate=''9999-12-31 23:59:59:997'',@Approved=0,@Listed=1,@CommentsEnab  led=1,@OnlyForMembers=0,@ArticleID=@p16 output<br />
select @p16<br />
<br />
i am confused  the BLL and DAL insert function and store procedure are right,  I just copy them from the code download here(  insert without error).  any help would be appreciate.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/">BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</category>
			<dc:creator>f117f117f117677</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/76850-insert-article-fails-also-category-fails-too.html</guid>
		</item>
		<item>
			<title>Questions regarding PollBox control.</title>
			<link>http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/76803-questions-regarding-pollbox-control.html</link>
			<pubDate>Wed, 28 Oct 2009 21:30:35 GMT</pubDate>
			<description>I have  questions regarding PollBox control.

In PollBox.ascx.cs:

I am not sure I  understood why there is a need to override...</description>
			<content:encoded><![CDATA[<div>I have  questions regarding PollBox control.<br />
<br />
In PollBox.ascx.cs:<br />
<br />
I am not sure I  understood why there is a need to override DataBind()<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">public override void DataBind()<br />
{<br />
&nbsp; &nbsp; &nbsp;  base.DataBind();<br />
&nbsp; &nbsp; &nbsp;  // with the PollID set, do the actual binding<br />
&nbsp; &nbsp; &nbsp;  DoBinding();<br />
&nbsp;}</code><hr />
</div>We can Set PollID by getting it from appropriate store procedure (via BLL).<br />
<br />
So what I need to understand:<br />
1)Why we need to override DataBind()<br />
2)What is the problem with PollID</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/">BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0</category>
			<dc:creator>daniel_d</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/76803-questions-regarding-pollbox-control.html</guid>
		</item>
	</channel>
</rss>
