What would the following code get replaced with in ASP.Net 2.0


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: What would the following code get replaced with in ASP.Net 2.0

  1. #1
    Join Date
    Feb 2006
    Posts
    19

    What would the following code get replaced with in ASP.Net 2.0

    What could i replace the following code with in ASP.Net 2.0, calling a stored proc with parameters and doing an insert of info in the proc

    Database db = DatabaseFactory.CreateDatabase();

    DBCommandWrapper insertCommandWrapper = db.GetStoredProcCommandWrapper("usp_InsertManyRows");

    insertCommandWrapper.AddInParameter("@XMLDOC", DbType.String, sb.ToString());

    try
    {
    db.ExecuteNonQuery(insertCommandWrapper);
    //Label1.Text = "Data Inserted";
    }
    catch (Exception ex)
    {
    //Label1.Text = ex.Message;
    }
    Last edited by clean; 06-02-2006 at 02:01 PM.

Similar Threads

  1. Master Pages in ASP.NET 2.0 ???
    By salsipius in forum ASP.NET
    Replies: 1
    Last Post: 12-31-2008, 12:48 PM
  2. Replies: 4
    Last Post: 09-02-2005, 09:22 PM
  3. Are Comments a Waste of Time?
    By Glen Kunene in forum Java
    Replies: 25
    Last Post: 04-22-2002, 06:45 PM
  4. send email
    By marina in forum Java
    Replies: 1
    Last Post: 03-12-2001, 12:37 PM
  5. Good Editorial by Russell Jones
    By Robert G in forum .NET
    Replies: 84
    Last Post: 02-08-2001, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center