Solved

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

Posted on 2008-06-12
2
554 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

734 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