In my previous post I shown how to find no of nodes in left and right of a binary tree. Now in this article I will show you how to design the binary tree in ASP.NET C#. We had retrieve the data from database in the previous post. I remain the database structure same in this example as previous.
Database...
Thursday, July 31, 2014
Prevent back button click after Logout the session in ASP.NET C#
Some time its happen after logging out when you are clicking on the back button its redirect to the previous page which one should open if the browser is holding the session. To prevent this a simple solution I found. Three lines of code that can solve your problem in a minute.
Code:
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier,...
How to find no of Sundays in a month in ASP.NET C#
Today I was asked how to find no of Sundays in a month by one of my colleague. To make him happy I found the code and now sharing this with all of you to make you all happy.
A simple code to find the no of Sundays in a months using List.
.csharpcode, .csharpcode pre
{
font-size: small;
color:...
Thursday, July 24, 2014
Count left right node of a MLM(Multi Lavel marketing) binary tree with database in ASP.NET C# - double recursion
Arka
asp.net, binary tree, C#, mlm
Here I will show how to count the number of left right node of a parent node or some node.
Here I am sueing MS. SQL Database and structure is some thing like this.
-------------------------------------------------------
Id(int) | Parent_Id (int) | Placement (NVarChar(10))
-------------------------------------------------------
1 0 ...
Monday, July 21, 2014
Bind two data columns as DataTextField in a DropDownList with SQLDataSource in ASP.NET C#
Hello! To day i will show you how to bind two data fields into one DataTextField or DataValueField in a DropDownList in ASP.NET.
Table structure :
Id Name
1 Arkadeep De2 Pradeep Das3 Praphul Kumar
Now in your DropDownList your data...
Saturday, July 19, 2014
How to run JavaScript function from code behind in ASP.NET C#
Every time we access JavaScript or Jquery from the aspx page or html page. But some times its really necessary to access the javascript function from the code behind. So today in this example I will show you all how to call a javascript function or e\write your javascript code in code behind.
To show an alert pop up box the simplest code is..
Response.Write("<script type="text/javascript">alert('Your...
Wednesday, July 16, 2014
Unable to copy from obj\debug to bin\debug
Visual studio locked the files some time due to some reason. And you will get this error in your project.
Could not copy "obj\Debug\<Project name>.dll" to "bin\<project name>.dll". Exceeded retry count of 10. Failed. <Project name>
Unable to copy from obj\debug to bin\debug
To get rid of this problem a simple solution I found and sharing here to run the project without error.
Go...
Monday, July 14, 2014
Bind an image slider with a folder(Without database) in ASP.NET C#
Hello every one, today in this tutorial I will show you how to bind your image slider with a folder, where all the images will come from that folder without any database. Just dump your photos into that folder and the slider will automatically get the images to show with all the animations.
So...
Saturday, July 12, 2014
Add row after in DropDownList binding with SQLDataSource in ASP.NET C#
After binding a DropDownList in C# using SQLDataSource its showing data all time what ever its bind from the database's table. But if you an one need to add any additional data into the DropDownList then how to do.
In this article I will show you how to add a row in a DropDownList after binding with a SQLDataSource.
First bind a DropDownList with a SQLDataSource...
Thursday, July 10, 2014
Get all folder name within a folder and bind into a repeater
Sometimes its necessary to get the all folder name within a folder or directory. So in this tutorial I will show you how to get all the folder name and put those into an array and then bind the array to a repeater.
So first get the all folder name.
Add a new namespace into the cs file.
using System.IO;
The code is
DirectoryInfo dir = new DirectoryInfo(Server.MapPath("~/FolderName"));
DirectoryInfo[]...
Add MySQL Database with .NET Application in C#

In this article I will show you how to add a MySQL database with your .NET application in C#.
For this you need to add MySql.Data.dll as a reference in your project. You can download the dll from here. After downloading the dll select your project and right click on the project, click on the add...
Monday, July 7, 2014
Difference between two DataTables in C#
Few days ago I stuck into a problem. I need to update an online database with an offline database. The problem I faced is about to get the difference between two tables of two different databases. After googling I found this code, which helped me a lot. I am sharing the code with you all for your benefits.
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas,...
Subscribe to:
Posts (Atom)