Quantcast
Channel: www.codedisplay.com » C#
Browsing index pages (173 articles)

Why C# or VB.net Generics perform better than Collections – a case study with...

Generics are the most powerful feature of .NET 2.0. Generics not only allow us to define type-safe data structures but also gives us a significant performance boost and higher quality code. Collections...

View Article


JQuery Click Event to Highlight a Row of an HTML table with Even Odd CSS

Highlighting a row is very essential when the table is very wide & need to scroll horizontally to read whole row. Using CSS and JQuery it’s very easy to implement, but a bit complex while the table...

View Article


CSS to Conditionally set Asp.Net Repeater Row Background Colour using C# VB.Net

Asp.Net Repeater Control is used to represent data repeatedly. Sometimes we can use this control to represent data in tabular format. Since more often we use this control, we need to represent data...

View Article

Getting last ID value of identity column from SQL Server for the most...

For the relational database like SQL Server, Oracle, and Microsoft Access/Jet we have to maintain a primary key to establish relation among entities. To do that we can use business code if applicable,...

View Article

Jquery to Merge HTML Table Row for same group of data using rowsapn attribute

When we need to represent data in an HTML Table, more often we need to merge same cell value or row td value. Here in this article I will show you “How one can easily merge same group of data…Read more ›

View Article


How to get set server side DIV of a Content page from Master page Code behind...

In my previous post I have described how we can Get & Set value of a Master page DIV control. It’s also equally important to know “how we can Get & Set value of a Content page or Child...

View Article

How to get set server side DIV of a Master page from Content page Code behind...

In most of the projects we need get and set Master page DIV tag from our code behind. We knew that we can do it by using Asp.Net FindControl() method. But after that we need to cast to get the…Read more ›

View Article

Get Asp.Net Original Unhandled Exception Error Message in JQuery AJAX error...

In my previous articles I have explained how we can invoke or call server side method using JQuery AJAX. Here in this article I will explain “How we can handle ASP.Net WebMethod Unhandled Exception...

View Article


JQuery AJAX Example Code in Asp.net to Insert or Save Data into SQL Server...

In almost each and every web application we need to save or insert data into database. To save or insert data into database we need to postback into the server. Using AJAX we can provide the...

View Article


Efficient way to Save or Insert TextBox Value into MS Access DataBase Table...

We can use MS Access Database for small scale applications. Asp.net Ado.Net provides us an easy, efficient way to develop Database driven application using MS Access as back end. To start an...

View Article

Runtime Bind Data from SQL Server Table to Datagridview in Windows...

DataGridView is an essential control for windows applications. This control can be used in both C#.Net windows applications as well as VB.Net Applications. Specially we use this control for tabular...

View Article

How to Create RDLC Report Step by Step Example in ASP.net using C# and VB.net

Now a days for reporting purposes we have a lots of choice. RDLC report is one of the most popular reporting engine for Asp.net developers. Using RDLC report you can easily represent data to the end...

View Article

How to Create and Use a GUID in Asp.net C# VB.Net Application

What is a GUID: If you don’t know about GUID, a GUID (Globally unique identifier) is a 128-bit integer that can be used to uniquely identify a record or data. Specially we use GUID as a prefix or...

View Article


Efficient way to Save or Insert TextBox Value into SQL Server DataBase Table...

In every cases we need to Save or Insert data into Database. For beginner’s here i will describe how we can “Save or Insert TextBox Value into SQL Server DataBase Table using Asp.net C#.Net VB.Net”....

View Article

How to Replace Null Value in Asp.Net GridView BoundField Column in C# VB.Net

If the datasource of a GridView control contains NULL value then the GridView Cell render blank text. To make the information more meaningful we need to replace the NULL value with a meaningful word or...

View Article


How to Replace Null Value in Asp.Net GridView Template Field or Template...

Null means nothing or meaningless. To make it meaningful we need to replace null value by an understandable word or a line. In C# and VB.Net we do it easily. But in GridView it’s a bit different. We...

View Article

How to Get DataKeyNames from Asp.Net Gridview selected Row in C# VB.Net

Sometimes we need to work on Asp.Net GridView Selected Row. When you click on Select link then SelectedIndexChanged method will fire. Within this method to uniquely identify a record we need to get the...

View Article


Bulk Insert CSV File into SQL Server Table using C# VB.Net

In many cases we need to insert CSV file into SQL Server Database table. Here in this article I will explain how one can “Insert CSV File Data into Sql Server Table using Bulk Insert“. But you can use...

View Article

SQLBulkCopy to Insert DataTable Rows at a Time into SQL Server Table using C#...

DataTable is a memory representation of SQL Server DataBase Table. We can direct Insert all records or rows of a DataTable into Sql Server Database Table at a time using SQL Bulk Copy. SQL Bulk Copy is...

View Article

JQuery to Call Asp.Net Ajax Page Methods with Parameter from Client Side in...

Calling server side method to server side is an easy job for developers. But sometimes we need to call server side methods from client side. Here in this article I will explain “How to Call Asp.Net...

View Article
Browsing index pages (173 articles)


Latest Images