Designing Master/detail Forms On A Single Page?

Sep 22, 2010

I have a single web page with master detail form/input layout. Currently the form works in a way like

User opens the page containing both master/detail data entry controls and enters the master information (The details save button is disabled)When he saves the master information, the save master button gets disabled and save details is enabled User continues to enter multiple details which get populated in a gridview at the bottom of page All works well Problem is that, the master part contains a lot of data entry controls (drop down lists gridviews etc)

How do I facilitate the user much more then the current layout? Should he be redirected to a new page after he enters the master record ? How can I improve on this?

View 2 Replies


Similar Messages:

Forms Data Controls :: Master / Detail Page - Updating Detail Records - Need Access To Master ID (key)

Jul 30, 2010

I have an "Edit" page that uses a FormView bound to an EntityDataSource. The page is called with the ID field of the record to edit in the query string: "EditEmployee.aspx?ID=10". The EDS the FormView is bound to is using: AutoGenerateWhereClause=true and a QueryStringParameter. Below the FormView I have a ListView that contains some child records of the FormView. The ListView is bound to a seperate EDS and also uses the (same) QueryStringParameter.

The problem I am having is when this ListView attempts to Insert or Edt a column I receive an error because I don't have the ID field (EmployeeID) of the parent bound anywhere in the ListView (and obviously, it is setup as a ForeignKey so it fails, like it should). Any advice on the best way to get this ID (EmployeeID) column bound in the ListView? There are many things I can do in code behind, but I would like to solve this in the markup if possible. I can move the ListView so that it is inside of the FormView if necessary.

View 1 Replies

Web Forms :: Save One Master And Multiple Detail Records On Single Button Click

Feb 18, 2013

i am working on project  where i have one master table "PURCHASE_ORDER" with fields

order_no  as primary key
vendor_id
order_date

and i have a detail table called "PURCHASE_ORDER_DETIALS" with fields 

sno,order_no,item,qty,rate.

i am supposed to create a master detail form 

where i am supposed to accept an order from an vendor with multiple items.

i.e the form shoud accept one master record and multiple detail records and then either save all  of them or discard all of them(both master and multiple detail records).

View 1 Replies

AJAX :: Master - Detail Page Reloading The Detail Page With Update Panel

Jul 27, 2010

I have a Page with a FileUpload control on the top with the "Insert" button, in order to insert pictures Below that, i have a Listview showing all the pics. THis is the way i am placing my Update Panel:

[Code]....

How can i, press the INSERT button and reloads only the Content Template after INSERTING?

View 3 Replies

Forms Data Controls :: Master / Detail With Additional Detail Paging

Aug 6, 2010

I'm trying to setup is a News module with article listing paging and article detail paging. I have a GridView with paging that lists my articles just fine. In that list, some article titles have links that direct to an article detail page by passing in the articleID to the details page. I was able to setup my details page, which uses a DetailsView control, to use paging by using an ObjectDataSource with pageIndex and pageSize parameters from the querystring. Once on my detail page, I can use my navigation arrows to move through Next and Previous articles just fine.

No matter which article I click in my article list, my detail page always starts with pageIndex 0 and thus not the article I clicked on. I understand why that is because it's going by pageIndex value instead of articleID. What I need it to do is, set the detail to whatever articleID i pass in, then allow me to navigate Next and Previous to THAT particular article instead of starting me off from pageIndex 0.

[Code]....

View 2 Replies

MVC :: 3 Master / Detail View Inserts New Detail Records Instead Of Updating Existing

Feb 6, 2011

article on binding to a list and I've got that working fine on one view. But what I'm stuck when doing it off a master record. Everything seems to work except that when I look in the database the detail records previous associated with the current master have their Foriegn key to master set to Null and a new set of detail records have been inserted. I've got a really simple form for this object

[Code]....

The form collection comes back with the expected prefixes:

[Code]....

And the Controller.UpdateModel(master) binds all the properties correctly. But when I call dbContext.SaveChanges it issues the follow sql from sql profiler (psuedo code)

[Code]....

I've got a work around that works but it's pretty hackish and I'm currently not matching up the keys so it's dependent on everything coming back in the right order. Plus I've got to include all the fields that I want updated.

[Code]....

I thought that entity framework's code first was the culprite but I've unit test that and it works fine. I've got a feeling that UpdateModel is somehow removing and re-adding the children. Has anyone else got this to work? Of course, I could throw in the towel and parse the indexed field names myself, but I'm so close!

View 2 Replies

DataSource Controls :: Master Detail Using EF Model Where Condition For Detail - 3.5 Sp1?

Jan 26, 2010

I've been experimenting with using EF (asp.net 3.5 sp1) with a master detail page. Using northwind as the database, I'm simply trying to have categories as master and products as detail. I have read everything I could find on the net about the where condition and it still fails with this error as soon as I click the select link in the master grid:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: A property with name 'CategoryID' does not exist in metadata for entity type 'WebAppEF01.Products'.

What strikes me is that the CategoryID column is not exposed by the EF model. That's been rolled up into the navigation element 'Categories' I suppose...but on the surface this seems to create the problem I've running in to. I've tried turning off the autogeneratewhere clause but didn't have success. The code for this page follows below.

[Code]....

View 2 Replies

Forms Data Controls :: Master - Detail View - Get ONLY One Item From The LinqDataSource On The Page

Feb 22, 2010

Im making a Master details web page ASP.NET. I have one aspx page with all the items in a listview, then a link to another page to show the details view, but I dont want to use a asp:detailsview control becasue it generates a table, and I want a more complex layout. I want work each property of the item, but I dont know how. I want to do in LINQ. This is my very bad aprox: I need an orientation of how to get ONLY one item from the LinqDataSource on the page load and not to query the database everytime I need a column. I dont need biding because I only need to show data, not insert, not update, not delete...

View 2 Replies

C# - MVC Routing For Master / Detail Views With "Detail Children"

Jul 27, 2010

I have the basic Master / Detail Views working great with the default ASP.NET MVC Route; however I would like to build some URLs like this: /Class/Details/5 -- General Detail view [Working] What I'm not sure about (and I'm not tied to this URL format, just something roughly equalivent.)

/Class/5/Details/Logs -- Detail View with Logs
/Class/5/Details/Status -- Detail View with current Status

Another way to put this, is like this: /{controller}/{id}/{controllerSpecificMaster}/{action}/ What I'm trying to avoid, is cluttering up my ViewsClass directory with a bunch of Views, which are all basically derivatives of the Details view. I'm on ASP.NET MVC 1 and .NET 3.5 SP1.

View 1 Replies

Web Forms :: How Many Master Pages Can Be There For A Single Content Page

Mar 10, 2011

Can any one tell me :- How many Master Pages can be there for a Single content page at max?Describe with details why is so also .

View 1 Replies

Web Forms :: Single Master Page Shared In Two Web Application?

Oct 20, 2010

Is it possible to have a single master page used in two web app?

Or would it be possible to get the virtual path pointing to different app though I don't think so?

View 1 Replies

Web Forms :: Use A Single Master Page For Numerous Web Applications?

Jan 14, 2011

I maintain a local government website and we have 3 developers and each one develops various web applications. Each web application has it's own directory structure under a folder called "Apps". There may also be another level of folders under the Apps folder. My trial approach at the moment is to have a folder called "Apps/Common/Master" which contain the MyMaster.master page. I have another folder called "Apps/Test/MasterTest" which I have setup a project to use the Master file in the Apps/Common/Master folder. I looked at some information about sharing Master Pages in the MSDN documentation and it mentioned creating a virtual directory and I tried creating a virtual directory "Apps/Test/Master" which points to "Apps/Common/Master" but from Visual Studio it doesn't show up and so when I try to reference the Master Page it can't find it.

My goal is to have a single Master page that we all use that we maintain in a single place and any changes to the single Master Page will be reflected in all of the applications that reference that master page. I don't want to copy the Master page to each project because then modifying the original master page won't update the copies.

View 4 Replies

Web Forms :: Linkbutton Not Working In Master Page In Single Click?

Jan 10, 2010

my Master page placed textbox & link button. Linkbutton event raise only if clicked twice, is there anyway solution for raise the event in single click

[Code]....

View 3 Replies

Web Forms :: Can Use Multiple CSS Or Style Sheet With A Single Master Page

Jan 11, 2010

Can i use multiple CSS or Style Sheet with a single Master Page

View 1 Replies

Forms Data Controls :: How To Bind Detail View To A Single Record Custom Class

Jun 17, 2010

so how to bind detail view to a single record custom class?

[Code]....

Apparently I can do it this way.

[Code]....

But I don't think my way is a proper way..

View 3 Replies

Web Forms :: Master-Detail From A DropDown List?

Aug 3, 2010

I have a master - detail query that I'm trying to run and I've run into a road block... I have a table with 'County' as one of the fields. I'd like to display the county name in the drop down list, and then display the details of that record in a 'details view/grid' below the drop down list. Here is what I have so far:

[Code]....

I'm getting the error: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'DropDownList1_SelectedIndexChanged' and no extension ethod 'DropDownList1_SelectedIndexChanged' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)Source Error:

[Code]....

View 4 Replies

Web Forms :: Master/Detail Filtering With A DropDownList?

May 29, 2010

I was looking tutorial for Master/Detail and I have one question. If I populate DropDowList with some data from database and run application, DropDownList show the first record from database. And if I choose some Item from DropDownList DataList show result of filtering. How when I run application to populate DataList as Detail using parametar of first Item in DropDownList populated from database?

View 5 Replies

Web Forms :: Build Treeview From Master Detail Table?

Jan 20, 2010

I am building treeview using asp.net 2.0/3.5 from master detail table.

ParentTable Value ---ChildTable Value ---GrandChildTable1 Node ---GrandChildTable1 Value ---GrandChildTable2 Node ---GrandChildTable1 Value

I have created something like this to populate node values. But I am not sure how to display GrandChildNode and values.

[Code]....

View 1 Replies

Forms Data Controls :: GridView And DetailsView Master To Detail

Apr 7, 2010

I am using a GridView and a DetailsView to establish a master to detail form, the idea is to let user select a record on Gridview and Detailsview will load selected record for editing. Here is declaration for the ODS and Detailsview.

[Code]....

this is working fine when I select a record from GridView and edit/update it in DetailsView. But it's not working so well when I insert a new record using DetailsView, because after insertion the selected record remains as the record selected in GridView.

View 4 Replies

Forms Data Controls :: How To Create Hierarchical-master / Detail UI

Aug 11, 2010

So here is the situation - there is data on master records - its a hierarhical view - something like (ID, IDParent, Title) and detail data - (ID, IDMaster, Details)

And like to build UI using an TreeView - binded with master data - and an GridView - binded with detail data.

Question is witch property to use to create the master/detail chain between Datasources - oh, I've forgot to tell I'm using an ObjectDataSource?

View 3 Replies

Forms Data Controls :: Creating Master/detail Pages?

Mar 14, 2010

I have a gridview that displays some records....i have added a new column to it called Edit....now when i click the edit link it should take me to a new page where i can edit that particular record only.....how do i go about it? I am using forms and no inbuilt ASP.NET controls except gridview....so i need to write queries for the same.....plz post code if possible

View 14 Replies

Web Forms :: How To Create An Master / Detail Form To Insert Data Into A DataBase

Apr 22, 2010

I need to create a Master Detail detail form to insert data into Access. The form i have to create is very similar to the typical Order/Detail form.

View 3 Replies

Forms Data Controls :: Datalist And A Listview In A Master/Detail Relationship?

Jul 2, 2010

I am using a Datalist and a Listview in a Master/Detail relationship. Each time a DataList item is bound, a Listview is loaded dynamically. I have provided the relevant Layout and Item templates. It is worked fine for one item. But for more than one item, it will raise the following error: "An item placeholder must be specified on ListView 'ItemListView'. Specify an item placeholder by setting a control's ID property to "MyLayout$itemPlaceholder". The item placeholder control must also specify runat="server".
Despite having set up the item placeholder.

Here is the code-behind:

protected void NodeDataList_ItemDataBound(object sender, DataListItemEventArgs e)

{

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)[code].....


The Layout template:<asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>

View 3 Replies

Forms Data Controls :: Listview Master Detail On Separate Pages?

Nov 14, 2010

I made my own master-detail pages using a listview. Rather than url, I use a listview event to set a session variable and response.redirect to the detail page, which on Page Load, loads the data from the database using the session variable, where it can then be edited. The details page is basically just text boxes and dropdownlists, but I used some third party controls and it all looks really sharp.

Here is the corner I pained myself into. Several dependent dropdowns on the master page filter the main listview. If I go back to the master page using response.redirect, the user would have to use the dropdowns again just to get back to where they were before they went to the details page. This is just not going to work.

To further complicate things, I wanted the master page to have paging on it. So if a back button reloads the page, they would have to set the dropdowns again, and page through the data again if needed. Egads.

The closest I have come to working is using a javascript back back button, but this fails after some postbacks on the details page (that are needed). And of course, the master page isn't refreshed when you go back to it (but I could probably live with that).

View 5 Replies

How To Make Single Master Page That Can Use To Hold All .css And Javascript Code

Mar 8, 2011

<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link type="text/css" href="~/Content/Main.css" rel="stylesheet" />
<link type="text/css" href="~/Content/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />
<script type="text/javascript" src="~/Scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="~/Scripts/jquery-ui-1.8.10.custom.min.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
</head>
<body>
[code]...

However I'm not seeing center aligned text. What am I doing wrong? Also, will I need to make whatever changes to the JQuery .css files as well? Basically what I'm aiming for here is a single master page that I can use to hold all .css and javascript code so I don't have to reference it everywhere else.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved