Suppressing and Handling Errors from the Update Panel(geekswithblogs.net)

submitted by wisemxwisemx(8074) 3 years, 11 months ago

Today, I was working on an application that required some Ajax magic. I had a very basic scenario set up in which I was simply inserting the database into the database using a simple form. I had some validation rules setup for my domain objects. If the validation rule was broken an exception was thrown and Global.asax Application_Error event caught the exception and uses Response.Write to write the exception on the screen. The problem occurred with the Response.Write method. Since, Response.Write simply writes the stream on the UI the UpdatePanel was getting messed up when rendering. If you want to try out this scenario take a look at the following code:

add a comment |category: |Views: 6

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story