Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Processing Master/Detail Using Datagrid in Web Form

Reply
Thread Tools

Processing Master/Detail Using Datagrid in Web Form

 
 
Bruce LeMond
Guest
Posts: n/a
 
      09-25-2003
I'm working on a web form and I have a list box of rooms
in the building and a datagrid containing the items within
the rooms. I'm wanting to program it so the datagrid will
display only those items within whatever room is selected
from the list box. In window forms, I could get this to
work ok by putting in the datagrid member name property
the relationship name HousekeepingRoomsHousekeepingItems,
but when I do this in the web form and start the browse,
it will give me an error page. You will find the info
from the error page below. I have the
HousekeepingRoomsHousekeepingItems defined as the
relationship name in DSHousekeeping.xsd. What will I need
to do to get this to work in web form?

Thanks in advance for your help.

Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.Web.HttpException: The
IListSource does not contain a data source
named 'housekeepingRoomsHousekeepingItems'.

Source Error:


Line 266: If Not IsPostBack Then
Line 267: RoomListBox.DataBind()
Line 268: DataGrid1.DataBind()
Line 269: End If
Line 270:


Source File: F:\housekeeping\Housekeeping.aspx.vb Line:
268

Stack Trace:


[HttpException (0x80004005): The IListSource does not
contain a data source
named 'housekeepingRoomsHousekeepingItems'.]
System.Web.UI.DataSourceHelper.GetResolvedDataSour ce
(Object dataSource, String dataMember) +325

System.Web.UI.WebControls.DataGrid.CreateControlHi erarchy
(Boolean useDataSource) +472
System.Web.UI.WebControls.BaseDataList.OnDataBindi ng
(EventArgs e) +48
System.Web.UI.WebControls.BaseDataList.DataBind() +23
housekeeping.WebForm1.Page_Load(Object sender,
EventArgs e) in F:\housekeeping\Housekeeping.aspx.vb:268
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724

----------------------------------------------------------
------------------
Version Information: Microsoft .NET Framework
Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Valid form element names? How to use ID instead of name? Processing form data Michael Winter HTML 4 03-06-2004 10:21 PM
Re: Valid form element names? How to use ID instead of name? Processing form data Robert HTML 0 03-06-2004 07:31 PM
Re: Valid form element names? How to use ID instead of name? Processing form data Jukka K. Korpela HTML 3 03-06-2004 04:30 PM
Document Object Model - table instead of form?? - slow processing in large form! Edward Javascript 0 02-05-2004 11:26 AM
Document Object Model - table instead of form?? - slow processing in large form! Edward Javascript 1 01-04-2004 03:25 AM



Advertisments