-
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
-
By salsipius in forum ASP.NET
Replies: 1
Last Post: 12-31-2008, 11:48 AM
-
By mycwcgr in forum ASP.NET
Replies: 4
Last Post: 09-02-2005, 08:22 PM
-
By Glen Kunene in forum Java
Replies: 25
Last Post: 04-22-2002, 05:45 PM
-
Replies: 1
Last Post: 03-12-2001, 11:37 AM
-
By Robert G in forum .NET
Replies: 84
Last Post: 02-08-2001, 02: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
Forum Rules
|
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
|
Bookmarks