Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 7th, 2006, 09:28 AM
Friend of Wrox
 
Join Date: May 2006
Location: Northampton, United Kingdom.
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
  #2 (permalink)  
Old August 11th, 2006, 10:22 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:59 AM.


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