.Net, ASP.NET, C#, GridView, Programming, VB.NET, Web Development, WebForms

GridView OnRowUpdated how to get the Edited Row

GridView Example
GridView Example

This article deals with the GridView WebForms .NET control; in particular with how to detect and record changes after the user has saved data in the GridView.

Sometimes using WebForms controls is not well documented and unintuitive, which is the case with the onRowUpdated event, where a lot of information available online is incorrect or misleading. I hope my findings in this article help you. If they do (or if they don’t), then please leave a comment.

By the way, if you find the information I’m giving is useful, then have a look at some of the other WebForms related articles I’ve written. Continue reading “GridView OnRowUpdated how to get the Edited Row”

Advertisements
.Net, ASP.NET, C#, Programming, VB.NET, Web Development, WebForms

ASP .NET: Safely Escape Data from your Database to Display in HTML but Still Keep Line Breaks

ASP.NET 4.6
ASP.NET 4.6

In this short article I will show a simple example of how to secure data for presentation but still keep select formatting such as line breaks. For more .NET tips feel free to browse the categories of my site at: https://jwcooney.com/category/net/ Continue reading “ASP .NET: Safely Escape Data from your Database to Display in HTML but Still Keep Line Breaks”

.Net, ASP.NET, C#, Dialog, JavaScript, JQuery, Programming, UpdatePanel, VB.NET, Web Development, WebForms

Problems with jQuery Modal Dialog Inside Partial Postacks (ie: a .NET UpdatePanel)

Problems with jQuery Modal Dialogs problem can happen in a number of ways (see some of my other articles on the subject). This time, it was that I used a jQuery Modal Dialog inside of an ASP.NET UpdatePanel. After some looking around, what seems to be happening is that the dialog invisibly duplicates fields to the end of the document sent to the browser.
Continue reading “Problems with jQuery Modal Dialog Inside Partial Postacks (ie: a .NET UpdatePanel)”