Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6030327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:01:14+00:00 2026-05-23T05:01:14+00:00

Once the databind is completed, I fire off the databound event. I wanted to

  • 0

Once the databind is completed, I fire off the databound event.
I wanted to catch any error that might have occurred so I dont run the StoredProc “sp_UpdatePrintQueueToPrinted”.

How do I Catch errors on/before DataBound event?

        protected void ListView1_DataBound(object sender, EventArgs e)
    {
        using (GPEntities gpe = new GPEntities())
        {
            gpe.sp_UpdatePrintQueueToPrinted();              
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:01:15+00:00Added an answer on May 23, 2026 at 5:01 am

    Note that OnDataBound occurs when databinding ends. OnDataBinding occurs as soon as data binding begins.

    Are you trying to catch errors relating to the actual databinding itself? If so, wrap your .DataBind() event with a try catch statement. Or is there some other incidental error that you are tracking as a result of the databinding?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once again, I have a problem for which I would like to shave off
I have a data class that implements INotifyPropertyChanged and two WPF controls that DataBind
I have a GridView with dynamically created image buttons that should fire command events
Once I have all the files I require in a particular folder, I would
In the code behind I have a function that returns a List(Of SomeClass): rptRepeater.DataSource
I have a problem with Gridview sorting that is similar to others but I'm
I am working in C#.Net and have a page with five gridviews. Once I
Once again I have a question about Eclipselink/MOXy with external metadata mapping file. I
Once again with the charset issues when talking to DB's :) I have two
I have an application that uses an aps:GridView. The GridView is populated using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.