Introduction: In this article i will demonstrate how we can show watermark effect in asp.net textbox controls using jQuery.
Procedure: Follow these steps.
1. Download the java script that i have created for jquery by clicking this link.
2. Pass the reference of this java script in the head section as follows.
<script src="../Scripts/WaterMark.min.js" type="text/javascript"></script>
Monday, November 19, 2012
Saturday, November 17, 2012
How to display an image gallery using Repeater in ASP.NET
Introduction: Hey guys in this article i am going to demonstrate that how we can display an image gallery using repeater in ASP.NET. Its very simple and just follow following steps.
Procedure:
1. Either create a new page or project.
2. Drag and drop a FileUploader and a Button control in your ASPX page.
3. To display a gallery put a Repeater control in the page.
4. In the <ItemTemplate > section of repeater put an image control to display images. Set height and width of this image control.
Procedure:
1. Either create a new page or project.
2. Drag and drop a FileUploader and a Button control in your ASPX page.
3. To display a gallery put a Repeater control in the page.
4. In the <ItemTemplate > section of repeater put an image control to display images. Set height and width of this image control.
Labels:
ASP.NET
Thursday, November 15, 2012
Display Tooltip On Mouse Hover Using jQuery UI
Introduction: In this article i am going to explain that how we can show tolltip at mouse hover event on any html control using jquery UI.
Description: Its very simple and just follow these steps.
1. Add reference of jQuery1.9 UI in the aspx page or master page in between <Script> tag
2. Set Title attribute to those html controls for whom you want to show tooltip.
3. Add following method to display tooltip for all control in the html page in between <Script> tag.
This method will display tooltip for all the controls in html page whose title attribute is set.
$(function () {
However if you want to display tooltip only for selected controls then instead of (doument) you will have to use id (#'txtname') eg of that specific controls.
4. Run your page in the browser to see the effect.
Example:
Description: Its very simple and just follow these steps.
1. Add reference of jQuery1.9 UI in the aspx page or master page in between <Script> tag
2. Set Title attribute to those html controls for whom you want to show tooltip.
3. Add following method to display tooltip for all control in the html page in between <Script> tag.
$(function () {
$(document).tooltip();
})
This method will display tooltip for all the controls in html page whose title attribute is set.
$(function () {
$('#'txtName).tooltip();
})
However if you want to display tooltip only for selected controls then instead of (doument) you will have to use id (#'txtname') eg of that specific controls.
4. Run your page in the browser to see the effect.
Example:
Thursday, October 11, 2012
An Overview About Generics In C#.NET
History:
The approach of generic programming has been started in 1983 by Ada programming language to reduce the duplication of code by writing a common set of methods and types that differ only by types or environment they are being used.
Introduction:
The term generic programming was originally coined by two guys named David Musser and Alexander Stepanov to describe an approach for software decomposition. In this approach fundamental requirements on types are abstracted from across concrete examples of algorithms and data structures.
So in general terms generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are instantiated when needed for specific types provided as parameters.
The approach of generic programming has been started in 1983 by Ada programming language to reduce the duplication of code by writing a common set of methods and types that differ only by types or environment they are being used.
Introduction:
The term generic programming was originally coined by two guys named David Musser and Alexander Stepanov to describe an approach for software decomposition. In this approach fundamental requirements on types are abstracted from across concrete examples of algorithms and data structures.
So in general terms generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are instantiated when needed for specific types provided as parameters.
Labels:
C#.NET,
Type safety
An Overview Of Dictionary In C#.NET
Dictionary in C# :
- Dictionary is a generic class that belongs to System.Collection namespace in .NET.
- The dictionary type in C# allow user to retrieve corresponding value very fast with key value.
- A dictionary can store Keys and Values of any data type in .NET.
- It provides a mapping from a set of keys to a set of values .
- Represented as Dictionary<TKey, TValue> pair where TKey represents Key and TValue represents the value associated with the key.
Labels:
C#.NET
Subscribe to:
Posts (Atom)