Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 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 27th, 2006, 05:38 PM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Bound Object value to another Bound Object

:( Doing this in VS2005. ASPX in VB code.

This image details my problem. http://ebay.philvong.com/help.jpg

I have a simple FormView1 bound to a SQLDataSource1. In edit mode, Label1 is bound to a value.

Under this, I added another textbox (ID=TEXTBOX1) and another SQLDataSource2. Then I added a details view (ID=DetailView1). Textbox1 is just passing a parameter to SQLDataSource2 to return a value in Detailview1.

1). I will hide the Update from FormView1 unless the person passes the right parameter to DetailsView1 to return a result. What is the Event Handler to say when DetailsView1 return any result? (i.e. ItemCreated, ItemChanged, ItemCommand, Load...etc). There are so many I'm not sure which one is right. I just want the Event Handler for giving a result to DetailsView from passing on the right parameter. Then I can make Update in FromView1 visible, which I know how to do.

2) MORE IMPORTANTLY. If someone enters the right parameter and DetailsView1 returns a result, is it possible for me to pass the result from DetailsView1 "abc" to Label1 of FormView1? This way when the user enters the right parameter to return their name in DetailView1 and the Update button appears because of question 1 above, the update will then pass on that user's name to the DB when Update is clicked.

I really hope this makes sense and I hope the picture helps explain my problem.

Thanks in advance.

http://ebay.philvong.com/help.jpg





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting Gridview bound to strongly typed object kulkarnimonica ASP.NET 2.0 Professional 10 September 20th, 2007 03:32 PM
Object Bound DataGrid Update Issue rodmcleay C# 2005 6 February 24th, 2007 10:44 PM
Bound Controls cpanson ADO.NET 0 June 24th, 2006 07:29 PM
Need help with bound data kcrompt2 Classic ASP Professional 0 February 9th, 2005 12:37 AM
Bound Object Frame Property Needed SerranoG Access VBA 0 April 16th, 2004 10:42 AM





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