Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old July 31st, 2006, 10:19 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Extra conditional update click event in FormView

I have a form view that is being used to view and update data, after the update, I need a second update event which will submit the data to a different access level ( i.e. from a submit code 1 to submit code 2) So basically after all the fields in the form are updated and the user is satisfied, the record will be updated to the next level, I added a second sqlserver datasource and then added a click even with a sql statement to update only the record in the present page to submit code =2, but the form is not recognizing the second sqldatasource. Can someone please help me with this, thanks...
PAM
  #2 (permalink)  
Old July 31st, 2006, 08:00 PM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I solved this myself by adding the sqldatasource on the page and referring to it in an extra click event in the formview item template, the update event will refer to the unique id as @parameter =formview1.selected value.


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does Update Link in FormView work? URGENT shaly ASP.NET 2.0 Professional 0 December 7th, 2006 04:10 PM
FormView Event Question melbsurfer ASP.NET 2.0 Basics 1 May 10th, 2006 12:46 PM
Click event on a subform cesather Access 3 December 14th, 2005 05:41 PM
Click Event dkr72 C# 3 December 8th, 2004 06:23 PM





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