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.
Saturday, November 17, 2012
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
Tuesday, October 09, 2012
Optimization Of Stored Procedure In SQL Server
This article describes that how we can optimize the Stored Procedures so that we can get better performance while our application is talking to database. I am enlisting some of the points from my personal experience.
1) Always Use Fully Qualified Name For All Database Objects:
While working with stored procedure we need to pass name of database objects (table, view, function, other stored procedure(s) etc.) several times. I recommend every developer to use fully qualified object names instead of using only object name. There is a very strong reason behind this recommendation.
SQL server always has to find supplied database object name from sys object that took some millisecond of processing time and consumption of CPU resources. And if, we pass fully qualified name then that processing time and CPU resource consumption to search the object from sys objects get reduced to significant amount.
Another reason behind the scene is it helps SQL Server to directly finding the Complied Cache Plan if available instead of searching the objects in other possible schema. This process of searching and deciding a schema for a database object leads to COMPILE lock on stored procedure which decreases the performance of a stored procedure.
Labels:
Microsoft SQL Server,
Optimization,
SQL,
SQL SERVER,
Stored procedure
Subscribe to:
Posts (Atom)
