Browser back button triggers previous post action in .NET webform application – solved

Recently while working on one of my .NET application I was stuck in a strange problem. I created a button and its click event to insert some entry in database and at the end of this action I used below statement to redirect the page for next step.

Response.Write("<script>top.location="next step page url";</script>");

Note: I used this method to redirect the page because I was doing it in an iframe and wanted to redirect parent page after this step is completed and next step is started. Keep on reading

Bootstrap Multiselect Dropdown in ASP.NET Web Forms

Today I was working on one of my project and I noticed the need of selecting multiple values in a DropDownList. Being a .NET guy my first thought was to us ListBox because is gives same feature, we can selected multiple values by holding ctrl (control) key. But the reason for not using it was that it is not user friendly and its view is not good.

After searching for few minutes I found this Bootstrap Multiselect plugin. I was using bootstrap in my project as well so that was best fit for me. For other also it is very good tool and very easy to use with any platform. I used it with ASP.NET web forms so showing the same here. Keep on reading