Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2004, 10:55 PM
Registered User
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default [?][?][?]also ch10 (2 question)

I follow the ch10 instructions and got some errors, you may need chinese support too read those error original massage(character set GB2312 is working well enough). I tried to figure out which english version error it is.

First, I ran the aspx code like this:
<asp:Panel id="pnlFixtureDetails" runat="server" Visible="False">
  <HEADERTEMPLATE>
     <asp:Repeater id="MatchesByDateList" runat="server">
     </asp:Repeater>
     <span style="WIDTH: 110px; HEIGHT: 25px">Date: </span>
     <span style="WIDTH: 135px; HEIGHT: 25px"><%# Calendar1.SelectedDate.ToShortDateString() %>
     </span>
   </HEADERTEMPLATE>
   <ITEMTEMPLATE>
      <span style="WIDTH: 110px">Wrox Team</span>
      <span style="WIDTH: 135px"><%# DataBinder.Eval(Container.DataItem, "TeamName") %></span>
      <span style="WIDTH: 110px">Opposing Team</span>
      <span style="WIDTH: 135px"><%# DataBinder.Eval(Container.DataItem, "OpponentName") %></span>
      <span style="WIDTH: 110px">Venue</span>
      <span style="WIDTH: 135px"><%# Venue((string)DataBinder.Eval(Container.DataItem, "OpponentLocation"), (int)DataBinder.Eval(Container.DataItem, "Location")) %></span>
   </ITEMTEMPLATE>
   <SEPARATORTEMPLATE>

            </SEPARATORTEMPLATE>
</asp:Panel>

and the error report:
˵Ã÷: ÔÚ±àÒëÏò¸ÃÇëÇóÌṩ·þÎñËùÐ è×ÊÔ´µÄ¹ý³ÌÖгöÏÖ´íÎó¡£Çë ¼ì²éÏÂÁÐÌØ¶¨´íÎóÏêϸÐÅÏ¢² ¢Êʵ±µØÐÞ¸ÄÔ´´úÂë¡£
(description: there are error during compiling resource requested. check the error info and correct the source code.)

±àÒëÆ÷´íÎóÐÅÏ¢: CS0117: ¡°System.Web.UI.Control¡±²¢²»°üº¬¶Ô ¡Â°DataItem¡±µÄ¶¨Òå
(compiler error info: CS0117: There is not definiton of "DataItem" in "System.Web.UI.WebControls.Repeater")

Ô´´íÎó:
(source error:)


ÐÐ(line) 148£º </HEADERTEMPLATE>
ÐÐ(line) 149£º <ITEMTEMPLATE>
ÐÐ 150£º <span style="WIDTH: 110px">Wrox Team</span> <span style="WIDTH: 135px"><%# DataBinder.Eval(Container.DataItem, "TeamName") %></span>
ÐÐ 151£º <br />
ÐÐ 152£º <span style="WIDTH: 110px">Opposing Team</span> <span style="WIDTH: 135px"><%# DataBinder.Eval(Container.DataItem, "OpponentName") %></span>

Ô´Îļþ: Default.aspx ÐÐ: 150
(source file:)

Then I turn to the files downloaded from Wrox, but still error:
Microsoft Jet Êý¾Ý¿âÒýÇæ´ò²»¿ªÎļþ'C:\Docume nts and Settings\Administrator.SHANGRI-LA\My Documents\BegASPNET11\data'¡£ ËüÒѾ­±»±ðµÄÓû§ÒÔ¶ÀÕ¼·½Ê ½´ò¿ª£¬»òûÓв鿴Êý¾ÝµÄȨ ÏÞ¡£

˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆÚ¼ä£¬³öÏÖδ´¦ÀíµÄÒì³ £¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔ Á˽âÓйظôíÎóÒÔ¼°´úÂëÖе ¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£

Òì³£ÏêϸÐÅÏ¢: System.Data.OleDb.OleDbException: Microsoft Jet Êý¾Ý¿âÒýÇæ´ò²»¿ªÎļþ'C:\Docume nts and Settings\Administrator.SHANGRI-LA\My Documents\BegASPNET11\data'¡£ ËüÒѾ­±»±ðµÄÓû§ÒÔ¶ÀÕ¼·½Ê ½´ò¿ª£¬»òûÓв鿴Êý¾ÝµÄȨ ÏÞ¡£

   OleDbException (0x80004005): Microsoft Jet Êý¾Ý¿âÒýÇæ´ò²»¿ªÎļþ'C:\Docume nts and Settings\Administrator.SHANGRI-LA\My Documents\BegASPNET11\data'¡£ ËüÒѾ­±»±ðµÄÓû§ÒÔ¶ÀÕ¼·½Ê ½´ò¿ª£¬»òûÓв鿴Êý¾ÝµÄȨ ÏÞ¡£
   System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr) +20
   System.Data.OleDb.OleDbConnection.InitializeProvid er() +51
   System.Data.OleDb.OleDbConnection.Open() +203
   _ASP.Default_aspx.Dates() +155
   _ASP.Default_aspx.Page_Load(Object sender, EventArgs e) +54
   System.Web.UI.Control.OnLoad(EventArgs e) +55
   System.Web.UI.Control.LoadRecursive() +27
   System.Web.UI.Page.ProcessRequestMain() +725


The english version of the first paragraph i think is:
The Microsoft Jet database engine cannot open the file '...'. It is already opened exclusively by another user, or you need permission to view its data.
This error persisted even computer is restarted.


 
Old June 8th, 2004, 10:59 PM
Registered User
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The questions is:
1 Why the compiler don't know "DateItem"
2 What's problem with the Access Jet?

 
Old June 8th, 2004, 11:32 PM
Registered User
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The second problem lead from the wrong connection string:
'C:\Documents and Settings\Administrator.SHANGRI-LA\My Documents\BegASPNET11\data'
after correct the string:
'C:\Documents and Settings\Administrator.SHANGRI-LA\My Documents\BegASPNET11\data\*.mdb'
The code works well.
I think there are some spell mistake in the book for i copied the code from the .pdf file. I will try it
 
Old June 9th, 2004, 12:18 AM
Registered User
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am sorry make such stupid question desturbing everyone
the problem comes from the wrong tags:
<asp:Repeater id="MatchesByDateList" runat="server"></asp:Repeater>
  <headertemplate>
  .......
  </headertemplate>
  <itemtemplate>
  .........
  </itemtemplate>
  ...............








Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Ch10 ObjectDataSource Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 May 16th, 2008 05:40 AM
ch10 action.saveErrors() AlienLoi BOOK: Professional Jakarta Struts 0 May 11th, 2007 04:37 AM
Errors in the book @ ch10 freezotic BOOK: Beginning Java 2 0 March 26th, 2004 04:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.