Tuesday, October 9, 2007

How to insert a item in databound dropdownlist at nth position

Hello guys,

Sorry for not posting anything for long time. Actually i was busy about changing my job.

We have use the dropdownlist with millians of time some developer still does not know that how to insert the listitem at particular level.

Suppose your dropdownlist is having 5 items and it isbound with some datasource and you want to insert "--Select---" on the top of the order. You can do it easily with following code.

DropDownList1.Items.Insert(0, new ListItem("--Select---", "0"));

So "--Select--" will be added at the top of the dropdownlist box. You can add it at any index as you want via specifing index as first argument.

If you are using the asp.net 2.0 then it is having one property
AppendDataBoundItems set it to true and write directly a new list item in html code. It will work.

Happy Programing...


Share:
Friday, August 31, 2007

What is Xaml? XAML-Overview

XAML means Extensible Markup Language is a language to write user interfaces in Windows Presentation Foundation applications. XAML simplifies the creating user interfaces with windows presentation foundation and .net framework 3.0. We can create visible user interface controls and component via XAML.

I have found a great article that articles describes whole aspects of XAML with starting from what is XAML? to next level of programming in .net framework 3.0 and windows presentation foundation.

here is the link for that:
http://msdn2.microsoft.com/en-us/library/ms752059.aspx
Share:

ADO.NET Entity Framework Beta 2 & the 1st Entity Framework Tools CTP Released

Microsoft has recently release ADO.NET Entity Framework Beta 2 and the accompanying Entity Framework Tools CTP have been released!

Following are the added features of latest release:

-Events to customize code generation
-Abstract types in EDM models
-Complex types
- support in metadata files
-Entity key serialization
-Increased persistence ignorance in entity data classes
-Improved connection management in ObjectContext
-Improved DataBinding usability
-Metadata annotations
-Better support for span over LINQ to Entities queries
-Improvements to LINQ queries: additional canonical functions and automatic mapping from CLR functions to server functions
-A new event for extensibility of SaveChanges
-Usability and consistency improvements
-Polymorphic results from stored procedures

You can download it form here:

http://www.microsoft.com/downloads/details.aspx?FamilyId=09A36081-5ED1-4648-B995-6239D0B77CB5&displaylang=en

For more details visit following ado.net team blog post:

http://blogs.msdn.com/adonet/archive/2007/08/27/entity-framework-beta-2-the-1st-entity-framework-tools-ctp-released.aspx

Another link related to ADO.NET Entity framework is following:

http://channel9.msdn.com/ShowPost.aspx?PostID=217633

To know what is ado.net entity framework. Please visit following link:

http://blogs.msdn.com/adonet/archive/2006/07/11/662447.aspx

http://blogs.msdn.com/data/

Share:
Thursday, August 30, 2007

ASP.NET White Papers

In new version of Microsoft asp.net site Microsoft has launched the asp.net white papers which will help us to install and configure asp.net in our computers.

It contains white papers with following different categories..

ASP.NET Security White papers

Forms Authentication

User Input Data Validation

Code Access Security

Communications Security

Cryptography

Installation and Setup White papers

Configuration

SQL Server Whitepapers

General Whitepapers

On this page you will find whitepapers to help you install and configure ASP.NET, and to assist you to write secure, fast and flexible ASP.NET applications

here is the link for asp.net whitepaper page:

http://www.asp.net/learn/whitepapers/


Share:

Component one studio enterprise of WPF

Windows presentation foundation is next generation technology launched by Microsoft. We can create great applications with wpf and Microsoft.net technology.



Component one studio has launched studio enterprise tool set for the wpf. It contains the scheduler controls like calendar,multi month calendar and other controls like grid for wpf.



The Studio Enterprise WPF Toolset is a suite of next-generation Scheduling, Charting and Grid components developed specifically for the Windows Presentation Foundation platform. The Studio Enterprise WPF Toolset Beta launches by unveiling the world's first suite of Scheduling components for WPF including Schedule, Month Calendar, and Multi-month Calendar components.
Share:

New design of my blog.

From last couple of days i am trying to change my blog design. I search a lot and then i got the template from http://www.templatepanic.com/. I am thankful to guys from template panic team who have created blog templates for user like me.



I have done few experiments with my blogs. I have change my blog name to "Dotnetworld"

because this is blog around the Microsoft.net and it's related technology. Also I have put the a category navigation bar at the top which will directly redirect to the post related to that category. It will look like following.





I am also planning to put a addto dig button with each post and a complete "Add To"bar at bottom of each post.



At present my blog looks like following.


Please put your valuable comments how you like the blog. Suggestions are also welcome. I am here for my valuable readers and i want to provide valuable content to my readers.

Share:
Monday, August 27, 2007

Collection of WCF (Indigo) links and material

One of my blogging frined Nilang Shah has post our WCF links materials on his blog.

It is a very good collection of WCF. You will have almost all things related to here.

here is the link:
http://nilangshah.wordpress.com/2007/07/16/collection-of-wcf-indigo-links-and-material/
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews