views:

59

answers:

5

I've been tasked with a project that requires me to convert a quote for a set of products that is displayed online into a particular file format for import into a third party application. All of the information I need is stored in a database that I can easily access.

Unfortunately, I absolutely have to offer this as a web interface and they want it to be a natural extension of their current ASP.NET product.

Even more unfortunate is that I've had no prior experience in ASP.NET and, as a result, I can't seem to phrase my question in a way that gets the desire result in search engines. I guess I'm behind on the proper terminology.

What I'd like to do is to take the data in the database and read it into objects that I've created in C# that hold their particular necessary attributes. For instance:

The QUOTE class contains a list of ITEM attributes. The ITEM class contains a list of MODIFICATIONs.

I could then just loop over all the line items and output the necessary information to perform the task.

I'm familiar with Ruby on Rails and how I can set up objects, work on them, and then reference them in the view, but I'm completely lost in ASP.NET.

So, the short version is this:

What am I trying to do in terms of ASP.NET terminology so that I can research how to do it?

Is it even possible?

A: 

If you are familiar with Rails, then you will want to look at ASP.Net MVC

Josh
A: 

You need an object-relational mapper, or ORM. The most popular one is NHibernate, and some folks have created a framework called ActiveRecord that sits atop it and acts sort of like the activerecord you're probably familiar with in Rails. Start your Googling there, with NHibernate.

Matt Hinze
while I agree that ORM tool is powerful, but the OP only have very limited experiences in .Net, and the page he wants to put together seems pretty simple, I won't go that far to introduce the extra complexity.
J.W.
Linq, datasource, grid.
Murph
A: 

they want it to be a natural extension of their current ASP.NET product.

Depending what platform they are in right now, if it's asp.net webform, then I suggest you look into GridView control since it's very powerful to display the grid Data.

If you go for Asp.Net mvc which is closer to Rails, then you may look into something like jqGrid.

J.W.
+1  A: 

You will need two things that will help you out tremendously, for this project and for the next ones:

  1. Learn a bit of LINQ, specifically Linq to SQL. The best book is "Linq in Action" by Manning. LINQ will open up a whole new horizon on data access and will make your like easier.
  2. Follow the ASP .NET MVC tutorial at NerdDinner.com. It will get you familiarized with MVC in a few hours.

You need less than a week to get you up to speed, and then the project will suddenly look a lot more approachable.

vbocan
Upvote for 1 - two is rather more questionable since we don't know whether the existing code is MVC or Forms (and its almost certainly forms.
Murph
A: 

First thing to do is define more clearly what you need to do.

It sounds like you need to add functionality to an existing web app that "displays a quote for a set of products" (like a shopping cart page), that is already saved in a database.

The functionality you need to add (I think), is a feature to convert the information for the quote from the database - into a particular file format (specified by the third party app that will import the information).

Is that correct, or is the scope of your task larger / smaller?

Ron

Ron Savage
That's pretty much it exactly.
Anthony Compton