Hide a column in GridView and still access its value

In ASP.NET, you can hide a column in a GridView control while still accessing its value programmatically. You can achieve this by setting the column's visibility to false, which will hide it from the user interface but still allow you to access its data in the code-behind.

Display Multiple Tables In A Single View In ASP.NET MVC

Learn how to display multiple tables in a single view in ASP.NET MVC using view models. Follow our step-by-step tutorial

How to Maintain Scroll Position After Postback in ASP.NET WebForms

In ASP.NET WebForms, when a postback occurs, the page typically reloads, causing the browser to reset the scroll position to the top of the page by default. However, there are scenarios where you might want to maintain or set a specific scroll position after a postback. In this blog post, we'll explore two methods to achieve this: using JavaScript and the MaintainScrollPositionOnPostBack property.

Binding Arrays to GridView in ASP.Net With Code Examples

Learn how to bind arrays, including 2D arrays and multi-dimensional arrays, to a GridView in ASP.NET using DataTables, lists, and more.

Nested GridView Example in ASP.Net

Learn how to create a nested GridView in ASP.NET to display hierarchical data efficiently. Follow our step-by-step guide for seamless implementation.

If a folder does not exist create it using C#

Learn how to create a folder in C# programmatically. Follow these simple steps to check if a folder exists and create it if not, using C# code.

How to disable all controls in ASP.NET page

You can disable all controls on an ASP.NET page using server-side code in the code-behind file and using client side JavaScript.

Multiple ways to retrieve Id of inserted entity using Entity framework

In Entity Framework, after inserting an entity into the database, you can retrieve its ID in a few different ways depending on your scenario and preferences.

If Else statement in webforms aspx page

In an ASP.NET Web Forms application, you can use server-side code to implement conditional logic using if and else statements directly within your ASPX page.

How to Read a Text File in ASP.NET MVC

Reading text files in ASP.NET MVC is a fundamental operation. By utilizing the System.IO.File class, you can easily access and manipulate text files on the server. Remember to handle file existence and permissions appropriately for robust file operations.


About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2024 CodingFusion
50+ C# Programs for beginners to practice