24 posts. Showing page 1 of 3.
by John Avis | February 9, 2018
On an ASP.NET Web Forms page with multiple UpdatePanels it’s nice to give the user some feedback when one of the panels is being updated.
by John Avis | April 12, 2017
If you have an ASP.NET Web Forms page with multiple UpdatePanels and multiple UpdateProgress controls, sometimes you may want one or more UpdateProgress controls associated with a specific UpdatePanel, and one or more UpdateProgress controls that have no association with an UpdatePanel so are shown when any UpdatePanel is updated.
by John Avis | June 8, 2016
I came across an issue where I was setting Page.Title in my ASPX page's Page_Load event, but it was appearing blank when I was attempting to retrieve the value in the MasterPage's Page_PreRender event.
by John Avis | May 20, 2015
I have wanted to add protection from vavigating away from some of my web forms but most of the solutions I have seen do not work well with ASP.NET with it's many possible ways of posting back and AJAX using Update Panels.
by John Avis | April 4, 2015
My latest web project is Ghost Tour Bookings, a website where ghost tours are advertised and people can make enquiries or book the tour.
by John Avis | March 23, 2015
If you come across a problem where you set the Visible property of an ASP.NET control to true in a code behind file, but even when you debug it still shows the value as being false then the problem is most likely to be that the control is inside another control such as a Panel or PlaceHolder that has its Visible property set to false.
by John Avis | January 27, 2015
I recently experienced an issue with an ASP.NET Web Forms page with various UpdatePanels. The page has two DropDownLists, the selection of one results in populating of possible values in the other, and the selection of the other results in enabling of a Button. Then if the Button is clicked the user is redirected to another website, based on their selection.
by John Avis | January 21, 2015
Web forms makes it really easy to create a simple website, but it is also really difficult to crate a complicated website. These are some of the things you will need to know sooner or later.
by John Avis | August 8, 2014
Personally I can never remember which of the Request object properties I need to use to get the requested URL or certain parts of the requested URL.
by John Avis | July 31, 2014
On database-driven websites it is commonplace to execute multiple database queries to generate just one page. For example, on the home page of an ecommerce website you might get a list of categories, a list of banner advertisements to display, a list of featured products, and a list of top selling products. I investigate whether it was more efficient to put these multiple queries into one stored procedure and use the SqlDataReader's Next Result method to get the data all in one go.