Solved

Details View Identity Field

Posted on 2013-01-10
3
316 Views
Last Modified: 2013-03-05
Hi!

I have created a form that has a gridview (readonly) for customers and a details view that for customer contacts.

When the user selects a gridview row, the contacts for that customer are in the details view which has paging.

When our user add a new customer, I want to autopopulate the Details view ID field with the selected Customer ID.  

How do I do this?
0
Comment
Question by:Annette Wilson, MSIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:deepu chandran
ID: 38766253
Hi,

You can use AJAX ModalPopup to populate the Details

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx

-- Deepu
0
 

Accepted Solution

by:
Annette Wilson, MSIS earned 0 total points
ID: 38940381
I had to change the property of the field in the Entity Model to read only persistent.  In the details view, to add a new contact, the users must enter the correct customer/vendor ID.
0
 

Author Closing Comment

by:Annette Wilson, MSIS
ID: 38953039
I was able to find a workable solution.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question