SyntaxHighlighter.all();
We have used pointers in C, delegates are something like pointers in C but type safe. Previously we send data as parameter but today we send methods as parameter through objects. In C# 2.0 delegates are introduced. It used to send methods to pass through its object. Its like a reference variable to the reference of the method which you have to execute.It is derived ...
Monday, August 25, 2014
Saturday, August 23, 2014
How to deploy a site in local IIS with database

Here I will show you how to deploy your site in your local IIS with your database, so that your site can be access from any other computers connected in your LAN.
The very first thing you have to know what IIS is? Full form of IIS is Internet Information Services. According to Wikipedia IIS is
Internet...
Sunday, August 17, 2014
Checkbox in Gridview header to select all rows using JavaScript in ASP.NET
SyntaxHighlighter.all();
In many sites you may watch in a table there are check boxes to select or deselects. And above all these check boxes there is one check box which controls all other text boxes to select and deselect. To day in this example I will show you how to design a check box into a GridView to design and work like the above statement in ASP.NET.
So, first of all create...
Monday, August 11, 2014
Hide URL on mouse hover of a Hyper Link in HTML

SyntaxHighlighter.all();
Generally on a mouse hover on a Hyper Link of HTML the URL is showing in the left down corner of the browser. So if you want to hide this waht yoou have to do?
To hide the URL create a new HTML page and add to anchor tags.
Page hide URl
Page show URl
Here in this...
Saturday, August 9, 2014
TextBox characters limitation using Regular Expression and JavaScript JQuery
SyntaxHighlighter.all();
Some times its important to restrict the characters limit of any text box in your ASP.NET site to prevent some of your action or any thing others. But how to do that. Generally we can do this in 3 ways.
Check in code behind
Use regular expression
JavaScript or jQuery
Before checking all these methods first create a new project and add 3 pages for 3 methods.
Check...
Create instant search of Grid View in ASP.NET using C#
SyntaxHighlighter.all();
To day I will show you how to create a search in GridView in ASP.NET using C#. You can do it normally getting a ASP command button and run a query to get the value in a GridView. It will refresh the page every time. You can stop this by adding an UpdatePanel but the time taking will be more or less same. But here I will use quickseacrch.js to search within a...
Friday, August 8, 2014
Encoding URL in ASP.NET using C#
SyntaxHighlighter.all();
Some time in the URL we get some spacial characters like plus(+) is not getting in code behind. As example in an encrypted URL like
http://localhost:1033/page.aspx?Value=1+E4Hccj9hE=
Here the value of l is "1+E4Hccj9hE=" but when you will get the value by Request.QueryString() it will get the value "1 E4Hccj9hE=". So it will occur an error in your project.
So...
Tuesday, August 5, 2014
Open a page in a new tab on button click from code behind
To open a new page in a new tab from a hyperlink is an easy thing but from a code behind is not a easy one to do. In this example I will show you how to redirect to a new page from code behind in C#.
First create a new project and add two new pages. page1.aspx and page2.aspx
Now in page1.aspx add two new buttons. In the code behind of two buttons add bellow codes.
Method 1 :
This is to open a...
Friday, August 1, 2014
Create an ASPX page dynamically in ASP.NET C#
Hi, here in this example I will show you how to create a new ASPX page dynamically or virtually in ASP.NET using C#.
First create a new website and add a new page. In this page we will create a new page. Then take one TextBox and two Buttons, one for generating and another one for redirecting to out new virtual page.
Now on the button click event write down the following code.
.csharpcode,...
Subscribe to:
Posts (Atom)