Developer forum

Forum » Development » Custom page redirect in DB Publishing

Custom page redirect in DB Publishing


Reply

Hey




I have a DB publishing which makes it possible to add new records. After adding a new record you will normally be returned to the list of records published by the DB publishing. But I would like the user to be return to a confirmation page telling the user that the just entered record has been saved. How can that be done? I have tried to put in a response.redirect just after the Pageview.Load() statement in the Page_Load method in Default.aspx.cs. But that does not work! I do get redirected to the confirmation page, but the newly added record is not saved!!




 




Regards




Lars Larsen, DIS


Replies

 
Nicolai Høeg Pedersen
Reply
lal@dkis.dk wrote:


Hey








I have a DB publishing which makes it possible to add new records. After adding a new record you will normally be returned to the list of records published by the DB publishing. But I would like the user to be return to a confirmation page telling the user that the just entered record has been saved. How can that be done? I have tried to put in a response.redirect just after the Pageview.Load() statement in the Page_Load method in Default.aspx.cs. But that does not work! I do get redirected to the confirmation page, but the newly added record is not saved!!








 








Regards








Lars Larsen, DIS





Hi Lars


 


The solution that you have come up with does not work because the actual saving of the record is not performed until pageview.output is called.


 


Therefore you can make your redirect after output.value = pageview.output is performed.

 

You must be logged in to post in the forum