DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 1 of 1
  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 01: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, 11:48 AM
  2. Replies: 4
    Last Post: 09-02-2005, 08:22 PM
  3. Are Comments a Waste of Time?
    By Glen Kunene in forum Java
    Replies: 25
    Last Post: 04-22-2002, 05:45 PM
  4. send email
    By marina in forum Java
    Replies: 1
    Last Post: 03-12-2001, 11:37 AM
  5. Good Editorial by Russell Jones
    By Robert G in forum .NET
    Replies: 84
    Last Post: 02-08-2001, 02:38 PM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links