.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Any good primer on CustomPages for DD 4 EF?

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :ASP.Net

Hi I'm using DD 4 with a EF web application and I'm really struggling to get into CustomPages.

I read http://csharpbits.notaclue.net/2008/07/dynamic-data-and-custom-pages.html by Steve Naughton (what a rockstar btw) and I can't seem to figure out how what he's written gels with what I've got.  I have created a custom page by copying the Details.aspx page, and I've got DD properly routing to that Custom page, but now I want to actually change the way it displays.  For one of my database fields, I want to have a hyperlink display that links to a separate asp.net web forms page, and passes the original record ID to that new aspx page.  So I'm viewing the details page for record A, and I want there to be a link to a new page, passing the ID for record A in a session variable or a querystring parameter to the new page.  I can't seem to make head or tails of the standard details.aspx markup though... the only line in the markup that seems to do any work is <asp:DynamicEntity runat="server">.  That displays the whole entity, which is fine, but I want to get inside that and have more granular control. 


Here is the markup of my Details.aspx page

View Complete Post

More Related Resource Links

Good way to do a Many-to-Many relationship?


I've used the automatic  Many-to-Many generation as described here: http://msdn.microsoft.com/en-us/library/dd742359.aspx

But that doesn't seem to allow a quantity to be attached to orders (in the example it would be courses). I have many customers and many products, I would like a customer to be able to order more than one product. Right now I get a grid of checkboxes. I would like instead a field where I could enter a number. 

Is this possible?

{ End Bracket }: What Makes A Good Software Tester?


In this month's installment, James McCaffrey talks about the qualities and skills he looks for when searching for great software testers.

Dr. James McCaffrey

MSDN Magazine December 2008

F# Primer: Use Functional Programming Techniques in the .NET Framework


Here we introduce you to some of the concepts behind the new F# language, which combines elements of functional and object-oriented .NET languages. We then help you get started writing some simple programs.

Ted Neward

MSDN Magazine Launch 2008

{ End Bracket }: What Makes Good Code Good?


When MSDN Magazine asked me to write a page on something I care about, I said, "You mean, like abolishing taxes, car phones, and SUVs?" Alas, they meant something to do with programming. Well! After pondering, I realized that something I care about is writing good code.

Paul DiLascia

MSDN Magazine July 2004

GDI+: A Primer on Building a Color Picker User Control with GDI+ in Visual Basic .NET or C#


Although most developers and APIs use the RGB scheme when working with colors, it's not the only available way to represent or select colors. For instance, the standard Windows color-selection dialog box allows you to work with the HSL color scheme in an indirect way. In this article, the author describes several color selection schemes, and uses GDI+ (via the System.Drawing namespace) to create a component that makes it possible for your own applications to provide a simpler, friendlier color chooser. Along the way, you'll get tips to help you use GDI+ in your own apps.

Ken Getz

MSDN Magazine July 2003

Delegates in .NET: A Primer on Creating Type-Safe References to Methods in Visual Basic .NET


Delegates, new in Visual Basic .NET, are type-safe, object-oriented references to methods. By using delegates, you make your methods accessible to others and therefore more extensible. This article provides an introduction to delegates, their benefits, and how they are used.Here the author shows you how to declare, create, and use delegates to invoke instance and shared methods at run time, and how to implement delegates as properties. He then goes on to provide examples of how delegates are used for callback functionality and explains the relationship between delegates and events. Finally, the article provides a glimpse at how delegates are implemented in intermediate language code by the Visual Basic .NET compiler.

Jesse Liberty

MSDN Magazine February 2003

Is DD as good as it looks?



I only just came across DD, and am impressed with what I see at first glance.

However, having been stung in the past by new MS technologies that look like they will save time, I am interested to know if DD is really as good as it looks. Sure, I had a working site up in minutes, and I can see how to do some configuration, but are there any issues people have found further down the road?

Basically, is it as good as it looks? Thanks for any comments.

What is a good example Dynamic Data application?


I'm giving a demonstration of Dynamic Data to a bunch of geeks in two weeks time. I'm looking for a simpe, but comprehensive data model to build the application on. I basically just want to register the model and demonstrate the application, as built (scaffolded) without any customisation, to start with, demonstrating list and detail/edit/insert views, and how table relations are handled.

I'd like to avoid one of the standards, i.e. the Customer->Order-OrderItem models, and try something that would be of interest to geeks. Maybe a Srum project tracker, an or a bug tracker, something like that.

Any suggestions please?

This was originally asked by myself on StackOverflow at: http://stackoverflow.com/questions/3536803/what-is-a-good-example-dynamic-data-application

Good html design software



I've been using visual studio for ages and find it quite cumbersome to produce snappy aspx pages.

I'm wondering if anyone recommends from a developers perspective a nice product to handle the graphical html generation?


Good news for those of you who get "Unable to make the session state request to the session state se


Dear all,

Due to the known problem of session variables getting lost if using InProc-server during frequent changes in development, I had to choose between SQL and ASP.NET State server, so I opted for the second. Initially, all fine, but after using it for a few days, I started to get this error:

 Server Error in '/cv2' Application.
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '' as the server name.
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: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the clie

Video: SharePoint 2010 Development Primer

This video will get you up to speed quickly with the new SharePoint 2010 application development environment using Visual Studio 2010. (Length: 9:41)

Video: SharePoint 2010 Business Connectivity Services (BCS) Primer

Learn how Business Connectivity Services help people perform their tasks within the familiar user interface of the Office and SharePoint Server systems and then make decisions within the context of the problem at hand. (Length: 14:21)

Video: SharePoint 2010 Business Intelligence (BI) Primer

If you are new to BI, this video will get you up to speed quickly. You will learn about some of the new BI features in SharePoint 2010, such as Excel Service and PerformancePoint Services. (Length: 11:51)

Download the "Good, Better, Best" White Paper for SharePoint 2010

This paper shows how two products, Microsoft Office and Microsoft SharePoint, contribute to the powerful architectural design of the Microsoft Business Productivity Infrastructure (BPI).

Is CTP4 good enough to be used in production code



Can we use CTP4 in production code?

When will it be included in .net framework 4.0?

i need a good function that will validate an email adress

i need a function that will check whether a string input is a valid email adress or not thnx a lot
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend