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 […]
Group validation in ASP.NET 2.0
This tutorial will teach you how to use the ValidationGroup property introduced in ASP.NET 2.0, which allows you to link validators to buttons, so that certain buttons in a form can only trigger certain validators.
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.
A potentially dangerous Request.Form value was detected from the client
If you are receiving the A potentially dangerous Request.Form value was detected from the client error while a PostBack occurs (submitting a form, for instance) it is most likely because in the PostBack content, there are HTML or HTML-like tags. This is ASP.NET’s defense mechanism that prevents the users of a website to try and […]
Get the path of the ASP.NET web application that is currently running
You can easily retrieve the path to the running ASP.NET application, using Request.PhysicalApplicationPath: If the web application is located in C:\Inetpub\wwwroot\WebApplication1, the string AppPath will contain C:\Inetpub\wwwroot\WebApplication1
How to bind a DataGrid to an array
It simply shows how to bind a DataGrid to an array using C# code.
Initiate Download Using ASP.NET and VB.NET
This function initiates a download of a file fetched from the server’s local system, all through ASP.NET and VB.NET.
Do I need the PDB (.pdb) file when I deploy my ASP.NET application?
Program Debug Database (PDB) is not normally required for your ASP.NET web application to run, however they are required for debugging. PDB files are used to store debugging information and they are created when you compile the application. In ASP.NET, as well as other .NET applications, PDB files serve a crucial role in the debugging process. […]
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”>