Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using BulkEditGridView, need to Save and Navigate with single "Continue" click

Posted on 2008-06-12
2
Medium Priority
?
559 Views
Last Modified: 2013-11-26
I am using BulkEditGridView in a multi-page data-entry site. I set SaveButtonID = Button1 where Button1 is a WebControls.Button labeled SAVE.  It works as it is supposed to. After saving the data, the user must click a WebControls.HyperLink control with NavigateUrl=~/MyNextPage.aspx to get to the next page to enter more data. I tried to combine the process of saving data and moving to the next page by placing VB statement Response.Redirect(~/MyNextPage.aspx) in the click event of Button1. This sends the user to the next page but does not save the data.

If it is possible to combine the two tasks into a Continue operation triggered by a single click, I would prefer that it be done in the HyperLink, although using the Button would still be an improvement. Any ideas? Thanks!

(Clearly this type of operation is possible, since I have seen it used on a number of sites - like asking this question right now on this site! - but it seems likely that it is being accomplished with something other than BulkEditGridView.  Should I be looking at a different language/technique to make this easier??)

0
Comment
Question by:AutomateMyOffice
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Expert Comment

by:prairiedog
ID: 21770434
Interestingly, you asked this question at another site, and the author just answered your question:
http://dotnetdiscussion.net/2008/04/06/aspnet-how-to-use-bulkeditgridview-to-save-hours-in-database-editing/
0
 

Accepted Solution

by:
AutomateMyOffice earned 0 total points
ID: 21781640
I did, in fact, ask the question elsewhere.  While the answer provided by the author was not everything I needed, it pointed me in the right direction.  
The way I ended up going was to use the RowUpdated event and increment a counter for each row that got updated every time the event fired.  I compared this to a total count of dirty rows obtained within the click event of the SaveButton from the value of GridView1.DirtyRows.Count.  When the rows updated matched the total dirty rows, I knew I was done updating and could then redirect to the next page.  Works great!
Also found that while the HyperLink control is not appropriate to use as a SaveButton, the LinkButton control acts like a HyperLink and initiates the save process just like a Button control.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question