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 August 7th, 2006, 09:28 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default FormView and PostBackURL

I have a FormView on a page attached to a SQLDataSource

When the user 'updates' the values in the FormView I want to send then to another page, after saving the data.

I have used the Standard Update Command on the SQLData Source. The update worked.

I then added a PostBackUrl to the existing Update button (hyperlink)
The postbackurl works but the update command doesn't!

Can I Save the record and move onto a new page in this way or do I need to code everthing manually?

Look forward to your answers.

__________________
Try our latest project www.nobanx.com Currency Exchange for members
 
Old August 11th, 2006, 10:22 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jcrabtreesla
Default

I haven't specifically tried this process, but some related info. I know there is a problem with the update command when using a form view. Sometimes, inexplicably the update command just stops working. I created a formview with an update command, the same as 20 other pages in my application. When clicking the update button there are no errors or application failures, but the database was not updated. It seems the update command fired properly, but for some reason the new data was not sent to the database. I have had this problem occasionally and I have found others that do too. The only way that I know to fix this problem is to delete the datasource and add it back. Sometimes I have also had to delete the formview itself and add a new one back. I know this is strange, but I have found no reason when or why this happens. Check out the ASP.NET Forums too for some more info.

Like I said, I haven't tried the postback url command with the update. The postback url may fire before the update command. Although that's not logical, Microsoft has a way of not being logical. But if you are experiencing the mysterious no update data problem, give that a try.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PostBackUrl + OnClick JessyEzzy ASP.NET 2.0 Professional 9 September 21st, 2008 09:13 PM
formview mcarol44 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 January 5th, 2008 06:44 AM
Question For Button.PostBackUrl potato ASP.NET 2.0 Basics 2 March 19th, 2007 10:24 AM
PostBackUrl to a new window? binici ASP.NET 2.0 Basics 0 January 8th, 2007 07:11 PM
Inserting in two formview shahzadgodil ASP.NET 2.0 Professional 2 October 18th, 2006 11:33 AM





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