.Net

Dynamically Changing MasterPage

Changing MasterPage Dynamically
In real-time we may come across scenario where depending on the particular group of users we need to show different layout, colors, themes, functionalities and so on. To achieve this there are various ways, maintain the settings for each user in table , maintain the cookies and so on.
 In .net the best [...]

Merging Image and text in a single gridview cell

Neither you can add image in DataGridViewTextBoxColumn nor you can add text in DataGridViewImageColumn so merging text and image in the same cell in datagridview is bit tricky. To achieve this you can create your own control inheriting from “DataGridViewTextBoxColumn” and overriding paint method. Or you can track the grid view’s paint event and write [...]

Dealing with MySQL TIMEDIFF() for hours greater than 838
Let’s have a look at the TIMEDIFF() function in MySQL:
TIMEDIFF(expr1,expr2) – TIMEDIFF() returns expr1 – expr2 expressed as a time value. expr1 and expr2 are time or date-and-time expressions, but both must be of the same type.
It seems that when TimeDiff is performed on 2 dates that [...]

Building Connection string (ADO.NET)

Building Connection string
Introduction:
As we know we use to build the connection strings by copying the existing connection string and renaming the DatsourceName,UserName,Password like that but here we will be discussing about how to build the connection string without copy paste.
Approach:
There is a way to build the connection [...]

Dynamically creation of web controls and binding Validations Using ASP.NET

CreatingDynamicControls_Source
Introduction:-
As we know we can bind the controls to our page (aspx) in 2 ways
1. Statically :- Binding the controls while Designing
2. Dynamically :- Binding the controls at runtime
Everyone know how to bind statically but there may be some cases where we need to bind the control dynamically .One of those cases is when our [...]

UML: Usecase Diagrams and Class Diagrams

Uses Cases and Class Diagrams
The use cases and class diagrams are very useful in order to plan and designing any project. Before understanding use cases and diagrams we need to know regarding UML.
UML can be abbreviated as Unified Modeling Language, which is used in order to provide a common modeling for various
problems/projects which are platform [...]

Identification of IPV4 and IPV6

IPV4 vs IPV6:

Problem Scenario: I was involved in developing an windows application which suppose to work on    windows 2003, windows xp or earlier version. But at the time of deploying the application to the one machine which is using Windows Vista as OS, my application crashes. It is not getting started. But the same [...]

Dynamic Menu Creation In Windows (c#)

Download: dynamicmenuscreation.zip
Introduction

· Menus make it easy to access the functionality and take less space and make your application look more organized.
· Menus contain top – level items and drop – down items.
o Top – level items: all visible items are top-level menus
o Drop – down items: non – visible items are dropdown [...]

Embedding forms inside a form in windows application

Embedding forms inside a form in windows application:
Problem Scenario:
Let me first give a brief introduction of the problem so that we can understand better about the context of the solution.
In one of my project, I need to wrap up an old application with the new features and functionalities. But the problem I faced is, [...]

Velocity Usages and its advantages

Using Velocity and its advantages

It’s a distributed system. Velocity provides highly scalable distributed caching environment for Microsoft .net framework. By using this we can store frequently used data for faster access and also avoids unnecessary calls to the database. Velocity also supports optimistic and pessimistic locking as well as automatic load balancing.
We [...]