DAY Communications LLC Design & Function for Web & Print

Retaining Asp.net DropDownList selection on return from linked page

I spent numerous hours researching if a view resulting from a selection in a DropDownList could be retained after clicking to a new page. This was needed for a school website in order to select the list of classes of a particular discipline, then click on a class, go to a new page, and return to the selected class list.

I explored lots of options, but finally implemented a simple solution----

Add a javascript: function goBack() with window.history.back() as the definition of the function. Then put a button on the visited razor view page to go back to the page that has the DropDownList with onclick="goBack()" within the button tag. This is a client solution that uses the browser's cache functionality.

Previously there was a Html.ActionLink to return to the Index page. This resulted in a view of all content, not the previously selected course list.

Please comment if you like this solution, or feel it will eventually cause a dilemma.

Mobile view of site popup

Popups are great to capture attention and present important content on desktop and tablet sites, but on the smartphone view, they can get in the way.

Various solutions to hide the popup from the mobile view have been shared. For example, Conditional CSS, and Temporary Solution to Hide Popup on Mobile Devices, and Create a Simple Responsive Popup Window with jQuery.

I recently solved my problem with this dilemma by adjusting the css on the popup.css file by adding a media call for a mobile view, and changing the selectors to hide or revise those of the divs in the main css. Though I was not able to simply wrap the code for the popup in a display:none css div, I could isolate my display:none div to wrap only the image, and without the 1. Overlay, 2. Popup and 3. Image css definitions showing on the mobile view, it is now clean and user-friendly.

Chatbot developers in the catbird seat?

Chatbots are in the news. Should you invest in this prospect? What is a chatbot?

“Chatbots have the power to personalize a business, give customers a more intimate experience and build consumer loyalty by giving a phone menu or website store a pleasant, responsive, human personality. They may eventually take the place of customer-service people, store clerks and even psychotherapists as computer speeds and artificial intelligence evolve.”

Find out more here and here.