Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2006, 02:19 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shahzadgodil
Default Inserting in two formview


I have two formview both are bind to two different data source. My AddNew
button is placed outside of both formview.

Now on button click, I want to run both insert like

1. FormView1.Insert
2. GetIdenttity of first datasource table and set this in
formview2.foreignfield
3. FormView2.Insert

Thanks
Shahzad Godil


 
Old August 15th, 2006, 05:33 PM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Shahzad,

I would like to know if you ever found a solution to this problem. I am having a similar problem, and I think we are not the only ones.


Cheers!

JF
 
Old October 18th, 2006, 11:33 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think this will do it.

http://msdn2.microsoft.com/en-us/lib...nsertitem.aspx






Similar Threads
Thread Thread Starter Forum Replies Last Post
FormView Question mikener ASP.NET 2.0 Professional 9 September 24th, 2008 05:39 PM
formview mcarol44 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 January 5th, 2008 06:44 AM
FormView Control lokraj ASP.NET 2.0 Basics 0 September 11th, 2007 08:51 AM
Formview with ObjectDataSource rturner003 ASP.NET 2.0 Professional 3 November 1st, 2006 06:17 AM
formview please urgent help jameee ASP.NET 2.0 Professional 2 September 15th, 2006 05:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.