Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to write a SQL Insert statement
Message
From
05/05/2004 19:55:41
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Trying to write a SQL Insert statement
Miscellaneous
Thread ID:
00901418
Message ID:
00901418
Views:
63
HELP!!!!
I am attempting to write a SQL insert statement, but not having too much luck. I am attempting to write it as a business object, and modeling it based on the code below. I am capturing the data from a web page, from lookups and data entered into text boxes. I do not want to write the record into the main table until all data is validated on the web page, and insert it all ay once to create the master record. I intend passing the data to the business object as parameters, returning the new dataset. This is holding up my whole project.

Please see the cide I am using for the lookup tables below.
_________________________________________________________________________
using System;
using System.Data;

using OakLeaf.MM.Main.Business;
using OakLeaf.MM.Main.Data;
using PMR.Business;


namespace PMR.Business
{
///
/// Summary description for Employee.
///

public class Program : ABusinessObject
{
public Program()
{
this.TableName = "Program";
this.PrimaryKey = "Program_ID";
}

///
/// Returns all Programs
///

/// DataSet containing all employees
public DataSet GetPrograms()
{
return this.GetDataSet("SELECT * From Program ORDER by Srt_Order");
}

}
}
____________________________________________________________________

I would greatly appreciate any advice you can offer.


TIA.
Bill Benton
Senior Systems Analyst
Nuvell Financial Services
Next
Reply
Map
View

Click here to load this message in the networking platform