Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Pass new ID through controls

Thread Tools

Pass new ID through controls

Mr.Bill Mr.Bill is offline
Junior Member
Join Date: Jun 2008
Posts: 1
I am using, Visual Web Developer 2005 Express Edition, ASP.NET 2.0 and SQL Server 2005 Express Edition.

This is what I'm trying to do:

On DetailsView1 Insert:
- return DetailsView1 pageIndex to the newly inserted ID (or equvilant)
- return to DetailsView1 in EditMode
- pass the ID of the newly inserted record to DetailsView2
- pass the ID of the newly inserted record to Label1.Text

My Insert Method (InsertCompanyReturnOrderID) business object returns the new ID.

in Visual Web Developer I'm using:
- c# language
- Label (Label1)
- 2 DetailsView controls (DetailsView1, DetailsView2)
- TableAdapter: (DetailsView1)
- ds_Orders_3TableAdapters.Orders_TableTableAdapter
- GetData()
- InsertCompanyReturnOrderID(Int32 company)

- TableAdapter: (DetailsView2)
- ds_Orders_3TableAdapters.tblCustomers1TableAdapter
- GetData()
- Insert()
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski ASP .Net 4 09-05-2007 03:27 AM
difference between pass by address and pass by reference!! blufox C Programming 2 04-03-2006 02:53 PM
Pass by reference / pass by value Jerry Java 20 09-09-2005 06:08 PM
pass by ref vs pass by pointer Radde C++ 38 08-23-2005 06:29 PM
Pass-by-reference instead of pass-by-pointer = a bad idea? Mr A C++ 111 07-14-2005 03:04 AM