Category: ASP.NET

.NET Framework

Definition: Microsoft’s programming framework for developers. An environment that provides a new interface to Windows services and the Windows API. Consists of two main components: The CLR (Common Language Runtime) and the .NET Framework Class Library. It is composed from a set of programming languages (C#, VB .NET…) that are completely object oriented. The .NET […]

Building Cascading DropDownList in ASP.Net Using jQuery and JSON

Cascading DropDownList is a technique where we populate a child DropDownList based on the parent DropDownList selection. For example, when we select a state in States DropDownList, it will populate the City DropDownList based on the state selected for a personal information input form. In .Net world, we can achieve this by populating the child DropDownList from the SelectedIndex changed event of parent.

How do I get the values when submitting a form (either using GET or POST)?

This is a popular question among ASP.NET beginners, because this is done fairly different with .NET. While in PHP you would use $HTTP_POST_VARS[‘field1’] and $HTTP_GET_VARS[‘field1’] to get the value passed from a form (either using POST or GET method), in ASP.NET there is a big difference.First, if you pass the value using the GET method […]

Using showModalDialog() with an ASP.NET page that does PostBack opens another window

If you have an ASP.NET page (.aspx) opened with the JavaScript showModalDialog() function and inside that page there is a form doing PostBack, when the PostBack is being done the page loads in another (popup) window. The easiest way to prevent this is to add the following tag inside the <HEAD></HEAD> tags of the ASP.NET page: <base target=”_self”>

Back To Top