>>>>When adding a new record via a Formview control, the formview returns to the previous record rather than the new record. Is there a way to change this behavior so the formview will display the new record after saving a new record?
>>>>
>>>>Thanks
>>>
>>>Just guessing right now, because I usually just hide the info after I add it, but may be you can return the new ID as an output parameter if you're using SP?
>>
>>Well at the moment I'm just using the built in functionality of the FormView Update button. So far I don't know how to hook into the code that runs it.
>
>I think we were talking about Insert, not Update.
>
>Are you using SQLDataSource for your FormView? Are you using direct commands or SP?
Yes, INSERT, sorry. :(
I am using an SQLDataSource. There are no stored procedures. Just the built in buttons for INSERT, UPDATE etc. This is my first .NET experience.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only