<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Videos, Photos, Wallpapers, Free Download, Movies, Songs, Sports , Live TV, Entertainment</title><description>Live Videos, Video, Photos, Wallpapers, Free Download, Movies, Songs, Cricket, Hollywood, Bollywood, Sports, Technology, Lifestyle, Business, Health, Fitness, Entertainment, News, Live TV</description><managingEditor>noreply@blogger.com (asp.net C#)</managingEditor><pubDate>Wed, 28 Aug 2024 14:00:48 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">187</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://24x7aspnet.blogspot.com/search/label/Asp.net</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>Live Videos, Video, Photos, Wallpapers, Free Download, Movies, Songs, Cricket, Hollywood, Bollywood, Sports, Technology, Lifestyle, Business, Health, Fitness, Entertainment, News, Live TV</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Differences between Datagrid, Datalist and Repeater?</title><link>http://24x7aspnet.blogspot.com/2013/02/differences-between-datagrid-datalist.html</link><category>Asp.net</category><category>C#</category><category>C# interview questions and answers</category><author>noreply@blogger.com (asp.net C#)</author><pubDate>Thu, 28 Feb 2013 23:14:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-6218104231703703090</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
What is the Difference between Repeater control and Datalist control and which one we should use, if it depends on situation and requirment, &lt;br /&gt;Difference Between GridView and Repeater Control&lt;br /&gt;Diff between DetailsView,FromView,ListView,DataList&lt;br /&gt;Difference between datagrid, repeater and datalist?&lt;br /&gt;Differences between Datagrid, Datalist and Repeater? &lt;br /&gt;&lt;br /&gt;The main similarity between the DataGrid, DataList, and Repeater&amp;nbsp; the only difference being that with a DataList or Repeater a DataListItem&lt;br /&gt;Difference between GridView, Datagrid, DataList and Data Repeater: Please visit here, to get difference between Gridview and DataGrid&lt;br /&gt;difference between datagrid, datalist and repeater?&lt;br /&gt;Differences between Gridview, DataList, ListView etc&lt;br /&gt;The difference between Repeater and DataList?&lt;br /&gt;basic difference between gridview, datalist, repeater&lt;br /&gt;Repeater, ListView, DataList, DataGrid, GridView … Which to choose?&amp;nbsp; I've blogged on the differences between the ASPNET 40 data tools.&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>jQuery Image Slider Image Gallery jQuery</title><link>http://24x7aspnet.blogspot.com/2012/03/jquery-image-slider-image-gallery.html</link><category>Asp.net</category><category>HTML Controls</category><category>JQuery</category><author>noreply@blogger.com (Unknown)</author><pubDate>Mon, 12 Mar 2012 03:32:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-722500833439245063</guid><description>jQuery Image Slider Image Gallery jQuery Plug-in, jQuery image galleries and sliders are very common on portfolio sites and are also useful for any other type of site for displaying images and photos.&lt;br /&gt;
Compatible with Internet Explorer 6+, Firefox 2+, Safari 2+, Google Chrome 3+, Opera 9+.&lt;br /&gt;
&lt;br /&gt;
jQuery slider plug-ins and scripts? &lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="600" height="437" src="http://www.youtube.com/embed/gZ9Km3bPte0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="600" height="437" src="http://www.youtube.com/embed/MhNhElcG-JY" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
jquery image slider free download | jquery image slideshow | jquery image scroller horizontal | jquery image slider with thumbnails | jquery image slider example | jquery image scroller | free jquery image slider | jquery image slider demo</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/gZ9Km3bPte0/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How To Make a Simple Web Design Layout using Photoshop - PSD Photoshop Web Design Layout Tutorials, Web Design Tutorials</title><link>http://24x7aspnet.blogspot.com/2012/02/how-to-make-simple-web-design-layout.html</link><category>Asp.net</category><category>CSS</category><category>JavaScript</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 04:35:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-5416132393385891675</guid><description>A step-by-step Photoshop web design layout tutorial using basic techniques. ... How to Make a Vibrant Portfolio Web Design in Photoshop ..&lt;br /&gt;
&lt;br /&gt;
Tutorial web design with basic steps in designing a business website in Photoshop, a simple layout but elegant design.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="480" height="360" src="http://www.youtube.com/embed/9zY05J587mQ" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Photoshop web design tutorial where you will learn how to create a clean and simple website layout in Photoshop.&lt;br /&gt;
&lt;br /&gt;
How To Make a Simple Web Design Layout using Photoshop - PSD Photoshop Web Design Layout Tutorials, Web Design Tutorials</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/9zY05J587mQ/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Master Pages &amp; Site Navigation Using Visual Studio 2008 Designer HTML JavaScript Dreamweaver Tutorial Working with Master Pages</title><link>http://24x7aspnet.blogspot.com/2012/02/master-pages-site-navigation-using.html</link><category>.Net C# ASP.Net interview questions and answers</category><category>Asp.net</category><category>Master Page</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:33:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-1630800842598285469</guid><description>How to Use Master Pages and Site Navigation? Using Visual Studio 2008 Designer?&lt;br /&gt;
&lt;br /&gt;
Master Pages is a feature coming in ASP.NET 2.0, which enables to create sites with a common appearance driven by a single template. You can create a single template page that can be used as a foundation for any number of ASP.NET content pages in your application.&lt;br /&gt;
&lt;br /&gt;
Create a web site with a consistent layout and design across all its pages using ASP.NET 2.0 MasterPages. See how easy it is to add navigation to a web site using the new TreeView and SiteMapPath controls.&lt;br /&gt;
&lt;br /&gt;
Using Menu and Navigation in visual studio watch more videos at ... MasterPages no Visual Studio 2008&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/ByGgMeQSK8Y" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Using Visual Studio 2008 Designer&lt;br /&gt;
&lt;br /&gt;
The great thing in master pages in Visual Studio 2008 is that you can use the designer and switch to code as any .aspx page. For example for the following master page:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Master="" Language="C#" AutoEventWireup="true" CodeBehind="Site2.master.cs" Inherits="MasterPages.Site2" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;asp:ContentPlaceHolder ID="head" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;/asp:ContentPlaceHolder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;table cellpadding="3" border="1"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;tr bgcolor="yellow"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;td colspan="2"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                            &amp;lt;h1&amp;gt;My Home Page&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                            &amp;lt;asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                            &amp;lt;/asp:ContentPlaceHolder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                            &amp;lt;asp:ContentPlaceHolder ID="ContentPlaceHolder4" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                            &amp;lt;/asp:ContentPlaceHolder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;td colspan="2"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                            Copyright 2009&lt;br /&gt;
&lt;br /&gt;
                        &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                    &amp;lt;/asp:ContentPlaceHolder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lets change the Default.aspx page as follow:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page="" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MasterPages._Default" MasterPageFile="~/Site2.Master" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;asp:content ID="Content1" ContentPlaceHolderID="head" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Default page&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/asp:content&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;asp:content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        This is the content for the default page.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/asp:content&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;asp:content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        ContentPlaceHolder3&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/asp:content&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;asp:content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder4" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        ContentPlaceHolder4&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/asp:content&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Master Pages &amp; Site Navigation Using Visual Studio 2008 Designer HTML JavaScript Dreamweaver Tutorial Working with Master Pages</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/ByGgMeQSK8Y/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How To Make A Professional Website Free CSS HTML JavaScript Dreamweaver Tutorial - Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX</title><link>http://24x7aspnet.blogspot.com/2012/02/how-to-make-professional-website-free.html</link><category>Asp.net</category><category>CSS</category><category>HTML Controls</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:31:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-4123617164422118768</guid><description>Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX ... HTML can be written and edited using many different editors like Dreamweaver and Visual Studio.&lt;br /&gt;
&lt;br /&gt;
Web design showcase, CSS tutorials and web standards ... The Ultimate Guide to Creating a Design and Converting it to HTML and CSS ... elements, then use JavaScript and CSS to make our design backwards-compatible ... Below we'll look at a few of the available Dreamweaver tutorials.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/vcoMuZt8hv4" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
This is the ultimate dreamweaver website tutorial, it will show you how to create ... Learn HTML step-by-step from A to Z or improve your professional skills Home HTML and CSS Tutorials Learn How to Create a Website in .... Free Web Designs ... Also try your hand at JavaScript or check out a search engine ... Master Dreamweaver web development and create mobile sites using the latest technology. ... Learn proper CSS technique with the two included professional layouts.&lt;br /&gt;
&lt;br /&gt;
Free tutorials to create a website using dreamweaver, html tutorials and css ... CSS and HTML ... Designing a website can be a daunting task to the uneducated; at this website we offer free tutorials, information and advice ... Although professional web designers can develop and design a website.&lt;br /&gt;
&lt;br /&gt;
How To Make A Professional Website Free CSS HTML JavaScript Dreamweaver Tutorial - Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/vcoMuZt8hv4/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>HTML CSS Sliding menu, Javascript menu, Html menu, Tree menu, Multi-column menu, Multi-row menu, Drop down menu, Floating menu, Calendar menu</title><link>http://24x7aspnet.blogspot.com/2012/02/html-css-sliding-menu-javascript-menu.html</link><category>Asp.net</category><category>CSS</category><category>JavaScript</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:29:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-6353240748090567854</guid><description>CSS3 Menu. Drop Down CSS Menu. ... The menu is based on HTML list of links (UL/LI structure) and CSS only. ... Slide effect for dropdown appearance.&lt;br /&gt;
&lt;br /&gt;
A very simple and attractive sliding menu cross-browser compatible ... &lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="480" height="360" src="http://www.youtube.com/embed/XIga_l80Bx4" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX ASP .NET PHP SQL ... DHTML HTML DOM · DHTML Events ... HTML DOM. HTML DOM Reference ... Inset borders · Description menu ... Click sliding horizontal ...&lt;br /&gt;
&lt;br /&gt;
HTML CSS Sliding menu, Javascript menu, Html menu, Tree menu, Multi-column menu, Multi-row menu, Drop down menu, Floating menu, Calendar menu</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/XIga_l80Bx4/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>CSS Horizontal Drop Down Menu HTML JavaScript Dreamweaver Tutorial</title><link>http://24x7aspnet.blogspot.com/2012/02/css-horizontal-drop-down-menu-html.html</link><category>Asp.net</category><category>CSS</category><category>JavaScript</category><category>Web Application</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:28:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-4682383215409376296</guid><description>The css menu will be complete with css hover effects whereby the drop down menu is visible only when a user hovers over the main link on the horizontal menu.&lt;br /&gt;
&lt;br /&gt;
Drop down menus are derived from the original sucker fish JavaScript dropdown menus. The drop down menu in css is exactly the same but will load much quicker in a web browser which is not only good for your website visitors but is also good for your Google page rank.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/yz8dZsmLHQo" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
create menu, css dropdown menu, css hover, css menu, drop down menu, drop down menus, dropdown menu in css, horizontal css dropdown menu, horizontal menu, html menu, dreamweaver tutorial&lt;br /&gt;
&lt;br /&gt;
CSS Horizontal menu in Dreamweaver. ... Drop down menus are derived from the original sucker fish JavaScript dropdown menus. ... Copy and Paste this HTML code for the CSS Drop Down Menu into your web ...&lt;br /&gt;
&lt;br /&gt;
CSS Horizontal menu in Dreamweaver. The css ... Drop down menus are derived from the original sucker fish JavaScript dropdown menus. ... Dreamweaver Article Tutorial; jQuery Lightbox Html Tutorial ...&lt;br /&gt;
&lt;br /&gt;
CSS Horizontal Drop Down Menu HTML JavaScript Dreamweaver Tutorial</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/yz8dZsmLHQo/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Example  ASP.NET Data, Login, Validation and Navigation Controls - Navigation Controls, Validation Controls, Database Controls ADO.NET Objects, Introduction to Data-bound Controls</title><link>http://24x7aspnet.blogspot.com/2012/02/examle-aspnet-data-login-validation-and.html</link><category>Asp.net</category><category>C#</category><category>CSS</category><category>JavaScript</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:26:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-5410939400836532535</guid><description>These controls are essential and this is a quick introduction to them. Data, Login, Navigation and Validation Controls.&lt;br /&gt;
&lt;br /&gt;
Data and Navigation controls, the Login controls were introduced in ASP.NET 2.0 and are still strongly present in ASP.NET 4. With very little effort&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="480" height="360" src="http://www.youtube.com/embed/07aQP1s6cLo" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Navigation Controls, Validation Controls, Database Controls ADO.NET Objects, Introduction to Data-bound Controls. ASP.NET 2.0 aims to reduce the amount of code required to accomplish common Web ... New data controls; Membership and roles; Personalization and themes; Coding and compilation options ... Data-Driven Site Navigation.&lt;br /&gt;
&lt;br /&gt;
Introducing ASP.NET Data, Login, Validation and Navigation Controls - Navigation Controls, Validation Controls, Database Controls ADO.NET Objects, Introduction to Data-bound Controls</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/07aQP1s6cLo/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Adding css style to ASP.NET Master Page - Dynamic CSS Styling in ASP.NET Master Page</title><link>http://24x7aspnet.blogspot.com/2012/02/adding-css-style-to-aspnet-master-page.html</link><category>Asp.net</category><category>CSS</category><category>Flash</category><category>JavaScript</category><category>Master Page</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:25:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-4715523048222367469</guid><description>Master page masterpages asp.net 2.0. ... Master pages are a great addition to the ASP.NET 2.0 feature .. Dynamic CSS Styling in ASP.NET Master Page&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="480" height="360" src="http://www.youtube.com/embed/cE4ZddTg0vE" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Master Pages in ... Master Pages allow you to create definitive styles for your web pages, and they have a higher precendence than CSS Stylesheets. ... Create layout table for Master Page, and add Content Placeholder control from toolbox.&lt;br /&gt;
&lt;br /&gt;
Adding css style to ASP.NET Master Page - Dynamic CSS Styling in ASP.NET Master Page</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/cE4ZddTg0vE/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Flash Gallery Tutorials - Flash Tutorial Create an Image Gallery with Next and Previous Buttons Actionscript AS3  AS2 Action Script Photoshop</title><link>http://24x7aspnet.blogspot.com/2012/02/flash-gallery-tutorials-flash-tutorial.html</link><category>Asp.net</category><category>CSS</category><category>Flash</category><category>JavaScript</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:23:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-5044246443766268085</guid><description>Flash  Effect Tutorial Video Voice Tut Image Gallery Simple Display Next Previous Large Thumbnails Thumb Nail Create CS2 CS3 CS4 Elements Creative Suite Premium Photoshop Actionscript AS3  AS2 Action Script HD  Widescreen  Wide Screen  High  Definition How To  Make  Easy Beginner Quick Adobe River City Graphix  Graphics&lt;br /&gt;
&lt;br /&gt;
Creating an XML based image gallery with ActionScript 3.0.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/3e2uUZSyezA" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Create a simple image gallery with thumbnails in Flash CS4. Create a scrolling image gallery in Flash from scratch using ActionScript.&lt;br /&gt;
&lt;br /&gt;
Flash Slideshow Image Gallery This tutorial will show you how to make a simple, yet effective, slideshow-type image gallery using Flash.&lt;br /&gt;
&lt;br /&gt;
Flash Gallery Tutorials - Flash Tutorial Create an Image Gallery with Next and Previous Buttons Actionscript AS3  AS2 Action Script Photoshop</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/3e2uUZSyezA/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Basic Layout - CSS Tutorial, learn css, free css template, create a css website, css website, web design - How to use cascading style sheets</title><link>http://24x7aspnet.blogspot.com/2012/02/basic-layout-css-tutorial-learn-css.html</link><category>Asp.net</category><category>CSS</category><category>JavaScript</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:21:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-3074851588032094247</guid><description>CSS tutorial you will learn how to use CSS to control the style and layout of multiple Web pages all at once. &lt;br /&gt;
&lt;br /&gt;
Free CSS page layouts, including 1, 2 and 3 column layouts - free to use&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/H3KESBQTD8k" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Tutorial is meant for people who want to start using CSS and have never written a CSS ... The resulting HTML page, with colors and layout, all done with CSS. ... For HTML and CSS.&lt;br /&gt;
&lt;br /&gt;
Basic Layout - CSS Tutorial, learn css, free css template, create a css website, css website, web design - How to use cascading style sheets</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/H3KESBQTD8k/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Styling Links and Text - CSS Tutorial, css design, web programming - CSS Layout with Adobe Dreamweaver CS4 - Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX ASP .NET PHP SQL tutorials</title><link>http://24x7aspnet.blogspot.com/2012/02/styling-links-and-text-css-tutorial-css.html</link><category>Asp.net</category><category>CSS</category><category>JavaScript</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 25 Feb 2012 03:19:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-6303100510306984789</guid><description>Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX ASP .NET PHP SQL tutorials, references, examples for web building.&lt;br /&gt;
&lt;br /&gt;
Links be boring, create links that are styled just like the rest of your Web pages. &lt;br /&gt;
&lt;br /&gt;
CSS stands for Cascading Style Sheets; Styles define how to display HTML elements; Styles were added to HTML&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/QMinoCjNBLs" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Styling Links and Text - CSS Tutorial, css design, web programming - CSS Layout with Adobe Dreamweaver CS4 - Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX ASP .NET PHP SQL tutorials</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/QMinoCjNBLs/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.NET 2.0 / 3.5 / 4.0 Interview Questions | C# Interview Questions | Interview Questions with Answers | .NET Interview Questions</title><link>http://24x7aspnet.blogspot.com/2011/12/aspnet-interview-questions-c-interview.html</link><category>Asp.net</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 17 Dec 2011 03:41:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-6023870424982304385</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.NET 2.0 / 3.5 / 4.0 C# Interview Questions and Answer on .Net,C#,ASP.NET,SQL Server. ASP.NET 3.5 Interview Questions &amp;amp; Answers. what are the Difference between ASP.NET 2.0 and ASP.NET 3.5 / 4.0 NET Interview Q &amp;amp; A - Articles on .NET Technologies, Ajax Interview Questions in ASP.NET, C# Interview Questions and Answer.&lt;br /&gt;
Interview Questions in different categories - Technical, HR, Management, Accounting, Finance.Java, C, C++, ASP .Net, Dot Net J2EE, XML, etc.Job Interview Questions In this web you can find all to make a successfull job interview. Type of questions, sample questions, how to negotiate your salary for different jobs, interview tips. &lt;br /&gt;
ASP.NET Interview Questions, ASP.NET Interview Questions and Answers,Asp.Net Interview faqs, Questions &amp;amp; Answers.&lt;br /&gt;
&lt;br /&gt;
ASP.NET interview questions with answers, ASP.NET interview questions for freshers and experienced, ASP.NET online test. A list of all frequently asked ASP.NET Interview Questions.&lt;br /&gt;
&lt;br /&gt;
Visual Basic Interview Questions, C Sharp Interview Questions, ASP.NET Interview Questions.&lt;br /&gt;
&lt;br /&gt;
Collection of ASP.NET interview/exam questions asked in various MNCs. Also useful for MCTS, MCAD, MCSD and other Microsoft certification exams. VB.NET Interview Questions, COM+ Interview Questions.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: red;"&gt;&lt;b&gt;Interview Questions:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
What is a CLR?&lt;br /&gt;
&lt;br /&gt;
What is a CTS?&lt;br /&gt;
&lt;br /&gt;
What is a CLS(Common Language Specification)?&lt;br /&gt;
&lt;br /&gt;
What is a Managed Code?&lt;br /&gt;
&lt;br /&gt;
What is a Assembly?&lt;br /&gt;
&lt;br /&gt;
What are the different types of Assembly?&lt;br /&gt;
&lt;br /&gt;
What is NameSpace?&lt;br /&gt;
&lt;br /&gt;
What is Difference between NameSpace and Assembly?&lt;br /&gt;
&lt;br /&gt;
If you want to view a Assembly how do you go about it ?&lt;br /&gt;
&lt;br /&gt;
Twist : What is ILDASM ?&lt;br /&gt;
&lt;br /&gt;
What is Manifest?&lt;br /&gt;
&lt;br /&gt;
Where is version information stored of an assembly ?&lt;br /&gt;
&lt;br /&gt;
Is versioning applicable to private assemblies?&lt;br /&gt;
&lt;br /&gt;
How to add and remove an assembly from GAC?&lt;br /&gt;
&lt;br /&gt;
What is Delay signing ?&lt;br /&gt;
&lt;br /&gt;
What is garbage collection?&lt;br /&gt;
&lt;br /&gt;
Can we force garbage collector to run ?&lt;br /&gt;
&lt;br /&gt;
What is reflection?&lt;br /&gt;
&lt;br /&gt;
What are different types of JIT ?&lt;br /&gt;
&lt;br /&gt;
What are Value types and Reference types ?&lt;br /&gt;
&lt;br /&gt;
What is concept of Boxing and Unboxing ?&lt;br /&gt;
&lt;br /&gt;
What is the difference between VBNET and C# ?&lt;br /&gt;
&lt;br /&gt;
What is the difference between System exceptions and Application exceptions?&lt;br /&gt;
&lt;br /&gt;
What is CODE Access security?&lt;br /&gt;
&lt;br /&gt;
What is a satellite assembly?&lt;br /&gt;
&lt;br /&gt;
Which class does the remote object has to inherit ?&lt;br /&gt;
&lt;br /&gt;
What are two different types of remote object creation mode in NET ?&lt;br /&gt;
&lt;br /&gt;
Describe in detail Remoting?&lt;br /&gt;
&lt;br /&gt;
What are the situations you will use singleton architecture in remoting ?&lt;br /&gt;
&lt;br /&gt;
What is fundamental of published or precreated objects in Remoting ?&lt;br /&gt;
&lt;br /&gt;
What are the ways in which client can create object on server in CAO model ?&lt;br /&gt;
&lt;br /&gt;
Are CAO stateful in nature ?&lt;br /&gt;
&lt;br /&gt;
In CAO model when we want client objects to be created by “NEW” keyword is there any precau-tions to be taken ?&lt;br /&gt;
&lt;br /&gt;
Is it a good design practice to distribute the implementation to Remoting Client ?&lt;br /&gt;
&lt;br /&gt;
What are LeaseTime, SponsorshipTime, RenewonCallTime and LeaseManagerPollTime?&lt;br /&gt;
&lt;br /&gt;
Which config file has all the supported channels/protocol ?&lt;br /&gt;
&lt;br /&gt;
How can you specify remoting parameters using Config files ?&lt;br /&gt;
&lt;br /&gt;
Can Non-Default constructors be used with Single Call SAO?&lt;br /&gt;
&lt;br /&gt;
What are the limitation of constructors for Single call SAO ?&lt;br /&gt;
&lt;br /&gt;
How can we call methods in remoting Asynchronously ?&lt;br /&gt;
&lt;br /&gt;
What is Asynchronous One-Way Calls ?&lt;br /&gt;
&lt;br /&gt;
What is marshalling and what are different kinds of marshalling ?&lt;br /&gt;
&lt;br /&gt;
What is ObjRef object in remoting ?&lt;br /&gt;
&lt;br /&gt;
What is a Web Service ?&lt;br /&gt;
&lt;br /&gt;
What is UDDI ?&lt;br /&gt;
&lt;br /&gt;
What is DISCO ?&lt;br /&gt;
&lt;br /&gt;
What is MVC pattern?&lt;br /&gt;
&lt;br /&gt;
How can you implement MVC pattern in ASPNET?&lt;br /&gt;
&lt;br /&gt;
How can we implement singleton pattern in NET?&lt;br /&gt;
&lt;br /&gt;
How do you implement prototype pattern in NET?&lt;br /&gt;
&lt;br /&gt;
How to implement cloning in NET ? What is shallow copy and deep copy ?&lt;br /&gt;
&lt;br /&gt;
What are the situations you will use a Web Service and Remoting in projects?&lt;br /&gt;
&lt;br /&gt;
Can you give a practical implementation of FAÇADE patterns?&lt;br /&gt;
&lt;br /&gt;
How can we implement observer pattern in NET?&lt;br /&gt;
&lt;br /&gt;
What is three tier architecture?&lt;br /&gt;
&lt;br /&gt;
Have you ever worked with Microsoft Application Blocks, if yes then which?&lt;br /&gt;
&lt;br /&gt;
What is Service Oriented architecture?&lt;br /&gt;
&lt;br /&gt;
What are different ways you can pass data between tiers?&lt;br /&gt;
&lt;br /&gt;
What is Windows DNA architecture?&lt;br /&gt;
&lt;br /&gt;
What is aspect oriented programming?&lt;br /&gt;
&lt;br /&gt;
How can we acheive inheritance in VBNET ?&lt;br /&gt;
&lt;br /&gt;
What are abstract classes ?&lt;br /&gt;
&lt;br /&gt;
What is a Interface ?&lt;br /&gt;
&lt;br /&gt;
What is difference between abstract classes and interfaces?&lt;br /&gt;
&lt;br /&gt;
What is a delegate ?&lt;br /&gt;
&lt;br /&gt;
What are events ?&lt;br /&gt;
&lt;br /&gt;
Do events have return type ?&lt;br /&gt;
&lt;br /&gt;
Can event’s have access modifiers ?&lt;br /&gt;
&lt;br /&gt;
Can we have shared events ?&lt;br /&gt;
&lt;br /&gt;
What is shadowing ?&lt;br /&gt;
&lt;br /&gt;
What is the difference between Shadowing and Overriding ?&lt;br /&gt;
&lt;br /&gt;
What is the difference between delegate and events?&lt;br /&gt;
&lt;br /&gt;
If we inherit a class do the private variables also get inherited ?&lt;br /&gt;
&lt;br /&gt;
What are the different accessibility levels defined in NET ?&lt;br /&gt;
&lt;br /&gt;
Can you prevent a class from overriding ?&lt;br /&gt;
&lt;br /&gt;
What is the use of “MustInherit” keyword in VBNET ?&lt;br /&gt;
&lt;br /&gt;
Do interface have accessibility modifier?&lt;br /&gt;
&lt;br /&gt;
What is the use of @ Register directives ?&lt;br /&gt;
&lt;br /&gt;
What’s the use of SmartNavigation property ?&lt;br /&gt;
&lt;br /&gt;
What is AppSetting Section in “WebConfig” file ?&lt;br /&gt;
&lt;br /&gt;
Where is ViewState information stored ?&lt;br /&gt;
&lt;br /&gt;
What is the use of @ OutputCache directive in ASPNET?&lt;br /&gt;
&lt;br /&gt;
How can we create custom controls in ASPNET ?&lt;br /&gt;
&lt;br /&gt;
How many types of validation controls are provided by ASPNET ?&lt;br /&gt;
&lt;br /&gt;
Can you explain what is “AutoPostBack” feature in ASPNET ?&lt;br /&gt;
&lt;br /&gt;
How can you enable automatic paging in DataGrid ?&lt;br /&gt;
&lt;br /&gt;
How does authorization work in ASPNET?&lt;br /&gt;
&lt;br /&gt;
What’s difference between Datagrid, Datalist and repeater ?&lt;br /&gt;
&lt;br /&gt;
From performance point of view how do they rate ?&lt;br /&gt;
&lt;br /&gt;
What is the method to customize columns in DataGrid?&lt;br /&gt;
&lt;br /&gt;
How can we format data inside DataGrid?&lt;br /&gt;
&lt;br /&gt;
How to decide on the design consideration to take a Datagrid, datalist or repeater ?&lt;br /&gt;
&lt;br /&gt;
Difference between ASP and ASPNET?&lt;br /&gt;
&lt;br /&gt;
What are major events in GLOBALASAX file ? &lt;br /&gt;
&lt;br /&gt;
What order they are triggered ?&lt;br /&gt;
&lt;br /&gt;
Do session use cookies ?&lt;br /&gt;
&lt;br /&gt;
How can we force all the validation control to run ?&lt;br /&gt;
&lt;br /&gt;
How can we check if all the validation control are valid and proper ?&lt;br /&gt;
&lt;br /&gt;
If client side validation is enabled in your Web page, does that mean server side code is not run?&lt;br /&gt;
&lt;br /&gt;
Which JavaScript file is referenced for validating the validators at the client side ?&lt;br /&gt;
&lt;br /&gt;
How to disable client side script in validators?&lt;br /&gt;
&lt;br /&gt;
How can I show the entire validation error message in a message box on the client side?&lt;br /&gt;
&lt;br /&gt;
You find that one of your validation is very complicated and does not fit in any of the validators,what will you do ?&lt;br /&gt;
&lt;br /&gt;
What is Tracing in ASPNET ?&lt;br /&gt;
&lt;br /&gt;
How do we enable tracing ?&lt;br /&gt;
&lt;br /&gt;
What exactly happens when ASPX page is requested from Browser?&lt;br /&gt;
&lt;br /&gt;
How can we kill a user session ?&lt;br /&gt;
&lt;br /&gt;
How do you upload a file in ASPNET ?&lt;br /&gt;
&lt;br /&gt;
How do I send email message from ASPNET ?&lt;br /&gt;
&lt;br /&gt;
What are different IIS isolation?&lt;br /&gt;
&lt;br /&gt;
What is UML?&lt;br /&gt;
&lt;br /&gt;
How many types of diagrams are there in UML ?&lt;br /&gt;
&lt;br /&gt;
Explain in short all types of diagrams in UML ?&lt;br /&gt;
&lt;br /&gt;
What are advantages of using UML?&lt;br /&gt;
&lt;br /&gt;
What is Modeling and why UML ?&lt;br /&gt;
&lt;br /&gt;
What is the sequence of UML diagrams in project?&lt;br /&gt;
&lt;br /&gt;
How did you implement UML in your project?&lt;br /&gt;
&lt;br /&gt;
Do I need all UML diagrams in a project?&lt;br /&gt;
&lt;br /&gt;
Give a small brief explanation of all Elements in activity diagrams?&lt;br /&gt;
&lt;br /&gt;
Explain Different elements of a collaboration diagram ?&lt;br /&gt;
&lt;br /&gt;
Explain Component diagrams ?&lt;br /&gt;
&lt;br /&gt;
Explain all parts of a deployment diagram?&lt;br /&gt;
&lt;br /&gt;
Describe the various components in sequence diagrams?&lt;br /&gt;
&lt;br /&gt;
What are the element in State Chart diagrams ?&lt;br /&gt;
&lt;br /&gt;
Describe different elements in Static Chart diagrams ?&lt;br /&gt;
&lt;br /&gt;
Explain the different elements of a Use Case ?&lt;br /&gt;
&lt;br /&gt;
What is the difference between Activity and sequence diagrams?&lt;br /&gt;
&lt;br /&gt;
Who is a stakeholder ?&lt;br /&gt;
&lt;br /&gt;
Can you explain project life cycle ?&lt;br /&gt;
&lt;br /&gt;
How many phases are there in software project ?&lt;br /&gt;
&lt;br /&gt;
Are risk constant through out the project ?&lt;br /&gt;
&lt;br /&gt;
Can you explain different software development life cycles ?&lt;br /&gt;
&lt;br /&gt;
What is triple constraint triangle in project management ?&lt;br /&gt;
&lt;br /&gt;
What is a project baselines ?&lt;br /&gt;
&lt;br /&gt;
What is XML?&lt;br /&gt;
&lt;br /&gt;
What is the version information in XML?&lt;br /&gt;
&lt;br /&gt;
What is ROOT element in XML?&lt;br /&gt;
&lt;br /&gt;
If XML does not have closing tag will it work?&lt;br /&gt;
&lt;br /&gt;
Is XML case sensitive?&lt;br /&gt;
&lt;br /&gt;
What is the difference between XML and HTML?&lt;br /&gt;
&lt;br /&gt;
Is XML meant to replace HTML?&lt;br /&gt;
&lt;br /&gt;
Can you explain why your project needed XML?&lt;br /&gt;
&lt;br /&gt;
What is DTD (Document Type definition)?&lt;br /&gt;
&lt;br /&gt;
What is well formed XML?&lt;br /&gt;
&lt;br /&gt;
What is a valid XML?&lt;br /&gt;
&lt;br /&gt;
What is CDATA section in XML?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>.Net Control - ASP.Net AdRotator Web server control, asp:AdRotator Controls ASP.Net</title><link>http://24x7aspnet.blogspot.com/2011/12/net-control-aspnet-adrotator-web-server.html</link><category>Asp.net</category><category>blog</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 3 Dec 2011 03:32:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-3692579124625367027</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.Net AdRotator control can be used to display graphics that are linked to other pages. The list of graphics to be displayed and the associated target links is maintained in a data source such as an XML file or database.&lt;br /&gt;
&lt;br /&gt;
ASP.Net AdRotator Web server control provides a way to display advertisements (ads) on your ASP.NET Web pages. The control displays a .gif file or other graphic image that you provide. When users click the ad, they are redirected to a target URL that you have specified. The control automatically reads advertisement information, such as the graphic file name and the target URL, from a list of ads that you provide using a data source, which is usually an XML file or a database table.&lt;br /&gt;
&lt;br /&gt;
asp:AdRotator control selects ads randomly, changing the displayed ad each time the page is refreshed. Ads can be weighted to control the priority level of banners, making it possible to have certain ads display more often than others.&lt;br /&gt;
&lt;br /&gt;
// XML CODE THAT AS THE DETAILS ABOUT THE ADS&lt;br /&gt;
&amp;lt;Advertisements&amp;gt;&lt;br /&gt;
    &amp;lt;Ad&amp;gt;&lt;br /&gt;
        &amp;lt;ImageUrl&amp;gt;C:\AdvFolder\AdRotator_Template\Adsense.gif&amp;lt;/ImageUrl&amp;gt;&lt;br /&gt;
        &amp;lt;NavigateUrl&amp;gt;http://www.Adsense.net&amp;lt;/NavigateUrl&amp;gt;&lt;br /&gt;
        &amp;lt;AlternateText&amp;gt;ASP.NET Logo&amp;lt;/AlternateText&amp;gt;&lt;br /&gt;
        &amp;lt;Keyword&amp;gt;A&amp;lt;/Keyword&amp;gt;&lt;br /&gt;
        &amp;lt;Impressions&amp;gt;Technology&amp;lt;/Impressions&amp;gt;&lt;br /&gt;
        &amp;lt;Caption&amp;gt;This is the caption for Ad#1&amp;lt;/Caption&amp;gt; &lt;br /&gt;
    &amp;lt;/Ad&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;Ad&amp;gt;&lt;br /&gt;
        &amp;lt;ImageUrl&amp;gt;C:\AdvFolder\AdRotator_Template\MakeMoney.gif&amp;lt;/ImageUrl&amp;gt;&lt;br /&gt;
        &amp;lt;NavigateUrl&amp;gt;http://www.MakeMoney.net&amp;lt;/NavigateUrl&amp;gt;&lt;br /&gt;
        &amp;lt;AlternateText&amp;gt;www.Sulekha.net&amp;lt;/AlternateText&amp;gt;&lt;br /&gt;
        &amp;lt;Keyword&amp;gt;S&amp;lt;/Keyword&amp;gt;&lt;br /&gt;
        &amp;lt;Impressions&amp;gt;Web Site&amp;lt;/Impressions&amp;gt;&lt;br /&gt;
        &amp;lt;Caption&amp;gt;This is the caption for Ad#2&amp;lt;/Caption&amp;gt; &lt;br /&gt;
    &amp;lt;/Ad&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;Ad&amp;gt;&lt;br /&gt;
        &amp;lt;ImageUrl&amp;gt;C:\AdvFolder\AdRotator_Template\OnlineEarn.swf&amp;lt;/ImageUrl&amp;gt;&lt;br /&gt;
        &amp;lt;NavigateUrl&amp;gt;AdRotator.aspx?ad=Widgets&lt;br /&gt;
               &amp;target=http://msdn.microsoft.com/widgets/&amp;lt;/NavigateUrl&amp;gt;&lt;br /&gt;
        &amp;lt;AlternateText&amp;gt;www.OnlineEarn.net&amp;lt;/AlternateText&amp;gt;&lt;br /&gt;
        &amp;lt;Keyword&amp;gt;S&amp;lt;/Keyword&amp;gt;&lt;br /&gt;
        &amp;lt;Impressions&amp;gt;Flash Site&amp;lt;/Impressions&amp;gt;&lt;br /&gt;
        &amp;lt;Caption&amp;gt;This is the caption for Ad#3&amp;lt;/Caption&amp;gt; &lt;br /&gt;
    &amp;lt;/Ad&amp;gt;&lt;br /&gt;
&amp;lt;/Advertisements&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:AdRotator id="controlName" runat="server" &lt;br /&gt;
    AdvertisementFile="demo-ads.xml" Target="_self"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:AdRotator&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
AdRotator control presents ad images that, when clicked, navigate to a new Web location. Each time the page is loaded into the browser, an ad is randomly selected from a predefined list. The rotation shedule of the adds is defined in a XML file.&lt;br /&gt;
&lt;br /&gt;
AdRotator control uses a separate XML advertisement file to store the advertisement information, such as the location of the image to display and the URL of the page to link to. The AdvertisementFile property of the AdRotator control specifies the path to this file.&lt;br /&gt;
&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Questions for Interview - IT Questions and Answers - VB.Net to C# interview and answers - Interview Questions</title><link>http://24x7aspnet.blogspot.com/2011/12/questions-for-interview-it-questions.html</link><category>Asp.net</category><category>C#</category><author>noreply@blogger.com (Unknown)</author><pubDate>Fri, 2 Dec 2011 04:28:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-1635472223004836272</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;IT Questions and Answers in this community of information technology (IT) experts and professionals, Includes sample interview questions and answers, Questions for Interview to ask the employer, as well as questions you shouldn't ask an interviewer during a job interview. Interview Questions in different categories and Interview questions and answers for .NET, VB.NET, SQL Server, C#,&amp;nbsp; ASP.Net&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What is IL?&lt;br /&gt;
What is JIT?&lt;br /&gt;
What is a CLR?&lt;br /&gt;
What is a CTS?&lt;br /&gt;
What is a CLS(Common Language Specification)?&lt;br /&gt;
What is a Managed Code?&lt;br /&gt;
What is a Assembly?&lt;br /&gt;
What are the different types of Assembly?&lt;br /&gt;
What is NameSpace?&lt;br /&gt;
What is Difference between NameSpace and Assembly?&lt;br /&gt;
If you want to view a Assembly how do you go about it ?&lt;br /&gt;
What is ILDASM ?&lt;br /&gt;
What is Manifest?&lt;br /&gt;
Where is version information stored of an assembly ?&lt;br /&gt;
Is versioning applicable to private assemblies?&lt;br /&gt;
What is GAC ?&lt;br /&gt;
What are situations when you register NET assembly in GAC ?&lt;br /&gt;
What is the concept of strong names ?&lt;br /&gt;
How do we generate strong names or what is the process of generating strong names, Whatis use the of SNEXE , How do we apply strong names to assembly, How do you sign an assem-bly?&lt;br /&gt;
How to add and remove an assembly from GAC?&lt;br /&gt;
What is Delay signing ?&lt;br /&gt;
What is garbage collection?&lt;br /&gt;
Can we force garbage collector to run ?&lt;br /&gt;
What is reflection?&lt;br /&gt;
What are different types of JIT ?&lt;br /&gt;
What are Value types and Reference types ?&lt;br /&gt;
What is concept of Boxing and Unboxing ?&lt;br /&gt;
What is the difference between VBNET and C# ?&lt;br /&gt;
What is the difference between System exceptions and Application exceptions?&lt;br /&gt;
What is CODE Access security?&lt;br /&gt;
What is a satellite assembly?&lt;br /&gt;
How to prevent my NET DLL to be decompiled?&lt;br /&gt;
What is the difference between ConverttoString and toString() method ?&lt;br /&gt;
What is Native Image Generator (Ngenexe)? &lt;br /&gt;
We have two version of the same assembly in GAC? &lt;br /&gt;
What is CodeDom?&lt;br /&gt;
Interoperability NET?&lt;br /&gt;
Once I have developed the COM wrapper do I have to still register the COM in registry?&lt;br /&gt;
How can we use NET components in COM?&lt;br /&gt;
What is CCW (COM callable wrapper) ?&lt;br /&gt;
How can we make Windows API calls in NET?&lt;br /&gt;
When we use windows API in NET is it managed or unmanaged code ?&lt;br /&gt;
What is COM ?&lt;br /&gt;
What is Reference counting in COM ?&lt;br /&gt;
Can you describe IUKNOWN interface in short ?&lt;br /&gt;
Can you explain what is DCOM ?&lt;br /&gt;
How do we create DCOM object in VB?&lt;br /&gt;
How to implement DTC in NET ?&lt;br /&gt;
How many types of Transactions are there in COM + NET ?&lt;br /&gt;
How do you do object pooling in NET ?&lt;br /&gt;
What are types of compatibility in VB?&lt;br /&gt;
What is equivalent for regsvr exe in NET ?&lt;br /&gt;
What is a Thread ?&lt;br /&gt;
Did VB support multi-threading ?&lt;br /&gt;
Can we have multiple threads in one App domain ?&lt;br /&gt;
Which namespace has threading ?&lt;br /&gt;
Can you explain in brief how can we implement threading ?&lt;br /&gt;
How can we change priority and what the levels of priority are provided by NET ?&lt;br /&gt;
What does AddressOf operator do in background ?&lt;br /&gt;
How can you reference current thread of the method ?&lt;br /&gt;
What's ThreadSleep() in threading ?&lt;br /&gt;
How can we make a thread sleep for infinite period ?&lt;br /&gt;
What is Suspend and Resume in Threading ?&lt;br /&gt;
What the way to stop a long running thread ?&lt;br /&gt;
How do I debug thread ?&lt;br /&gt;
What is ThreadJoin() in threading ?&lt;br /&gt;
What are Daemon threads and how can a thread be created as Daemon?&lt;br /&gt;
When working with shared data in threading how do you implement synchronization ?&lt;br /&gt;
Can we use events with threading ?&lt;br /&gt;
How can we know a state of a thread?&lt;br /&gt;
What is a monitor object?&lt;br /&gt;
What are wait handles ?&lt;br /&gt;
What is a mutex object ?&lt;br /&gt;
What is ReaderWriter Locks ?&lt;br /&gt;
How can you avoid deadlock in threading?&lt;br /&gt;
What is the difference between thread and process?&lt;br /&gt;
What is Remoting Webservices?&lt;br /&gt;
What is an domain?&lt;br /&gt;
Which class does the remote object has to inherit ?&lt;br /&gt;
What are two different types of remote object creation mode in NET ?&lt;br /&gt;
&lt;br /&gt;
Describe in detail Remoting?&lt;br /&gt;
What are the situations you will use singleton architecture in remoting ?&lt;br /&gt;
What is fundamental of published or precreated objects in Remoting ?&lt;br /&gt;
What are the ways in which client can create object on server in CAO model ?&lt;br /&gt;
Are CAO stateful in nature ?&lt;br /&gt;
In CAO model when we want client objects to be created by “NEW” keyword is there any precau-tions to be taken ?&lt;br /&gt;
Is it a good design practice to distribute the implementation to Remoting Client ?&lt;br /&gt;
What are LeaseTime, SponsorshipTime, RenewonCallTime and LeaseManagerPollTime?&lt;br /&gt;
Which config file has all the supported channels/protocol ?&lt;br /&gt;
How can you specify remoting parameters using Config files ?&lt;br /&gt;
Can Non-Default constructors be used with Single Call SAO?&lt;br /&gt;
What are the limitation of constructors for Single call SAO ?&lt;br /&gt;
How can we call methods in remoting Asynchronously ?&lt;br /&gt;
What is Asynchronous One-Way Calls ?&lt;br /&gt;
What is marshalling and what are different kinds of marshalling ?&lt;br /&gt;
What is ObjRef object in remoting ?&lt;br /&gt;
What is a Web Service ?&lt;br /&gt;
What is UDDI ?&lt;br /&gt;
What is DISCO ?&lt;br /&gt;
What is WSDL?&lt;br /&gt;
What the different phase/steps of acquiring a proxy object in Webservice ?&lt;br /&gt;
&lt;br /&gt;
What is file extension of Webservices ?&lt;br /&gt;
Which attribute is used in order that the method can be used as WebService ?&lt;br /&gt;
What are the steps to create a webservice and consume it ?&lt;br /&gt;
Do webservice have state ?&lt;br /&gt;
What is an application object ?&lt;br /&gt;
What’s the difference between Cache object and application object ?&lt;br /&gt;
How can get access to cache object ?&lt;br /&gt;
What are dependencies in cache and types of dependencies ?&lt;br /&gt;
Can you show a simple code showing file dependency in cache ?&lt;br /&gt;
What is Cache Callback in Cache ?&lt;br /&gt;
What is scavenging ?&lt;br /&gt;
What are different types of caching using cache object of ASPNET?&lt;br /&gt;
&lt;br /&gt;
What are ASPNET session and compare ASPNET session with classic ASP session variables?&lt;br /&gt;
Which various modes of storing ASPNET session ?&lt;br /&gt;
Is Session_End event supported in all session modes ? &lt;br /&gt;
&lt;br /&gt;
What are the precautions you will take in order that StateServer Mode work properly ?&lt;br /&gt;
What are the precautions you will take in order that SQLSERVER Mode work properly ?&lt;br /&gt;
Where do you specify session state mode in ASPNET ?&lt;br /&gt;
What are the other ways you can maintain state ?&lt;br /&gt;
What are benefits and Limitation of using Hidden fields ?&lt;br /&gt;
What is ViewState ?&lt;br /&gt;
Does the performance for viewstate vary according to User controls ?&lt;br /&gt;
What are benefits and Limitation of using Viewstate for state management?&lt;br /&gt;
How can you use Hidden frames to cache client data ?&lt;br /&gt;
&lt;br /&gt;
What are benefits and limitations of using Hidden frames?&lt;br /&gt;
What are benefits and limitations of using Cookies?&lt;br /&gt;
What is Query String and What are benefits and limitations of using Query Strings?&lt;br /&gt;
What is OOPS?&lt;br /&gt;
What’s an Object ?&lt;br /&gt;
What is the relation between Classes and Objects ?&lt;br /&gt;
What are different properties provided by Object-oriented systems ?&lt;br /&gt;
Can you explain different properties of Object Oriented Systems?&lt;br /&gt;
&lt;br /&gt;
What is difference between Association, Aggregation and Inheritance relationships?&lt;br /&gt;
How can we acheive inheritance in VBNET ?&lt;br /&gt;
What are abstract classes ?&lt;br /&gt;
What is a Interface ?&lt;br /&gt;
What is difference between abstract classes and interfaces?&lt;br /&gt;
What is a delegate ?&lt;br /&gt;
What are events ?&lt;br /&gt;
Do events have return type ?&lt;br /&gt;
Can event’s have access modifiers ?&lt;br /&gt;
Can we have shared events ?&lt;br /&gt;
What is shadowing ?&lt;br /&gt;
What is the difference between Shadowing and Overriding ?&lt;br /&gt;
What is the difference between delegate and events?&lt;br /&gt;
If we inherit a class do the private variables also get inherited ?&lt;br /&gt;
What are the different accessibility levels defined in NET ?&lt;br /&gt;
Can you prevent a class from overriding ?&lt;br /&gt;
What is the use of “MustInherit” keyword in VBNET ?&lt;br /&gt;
Do interface have accessibility modifier?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>.Net GridView - ASP GridView - GridView in ASP.Net</title><link>http://24x7aspnet.blogspot.com/2011/11/net-gridview-asp-gridview-gridview-in.html</link><category>Asp.net</category><category>Gridview</category><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 16 Nov 2011 00:01:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-5128059885173509920</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;.Net GridView (ASP GridView, GridView in ASP.Net) Displays the values of a data source in a table where each column represents a field and each row represents a record. The GridView control allows you to select, sort, and edit these items. &lt;br /&gt;
&lt;br /&gt;
The GridView control is used to display the values of a data source in a table. Each column represents a field, while each row represents a record. The GridView control supports the following features:&lt;br /&gt;
&lt;br /&gt;
*Binding to data source controls, such as SqlDataSource.&lt;br /&gt;
&lt;br /&gt;
*Built-in sorting capabilities.&lt;br /&gt;
&lt;br /&gt;
*Built-in updating and deleting capabilities.&lt;br /&gt;
&lt;br /&gt;
*Built-in paging capabilities.&lt;br /&gt;
&lt;br /&gt;
*Built-in row selection capabilities.&lt;br /&gt;
&lt;br /&gt;
*Programmatic access to the GridView object model to dynamically set properties, handle events, and so on.&lt;br /&gt;
&lt;br /&gt;
*Multiple key fields.&lt;br /&gt;
&lt;br /&gt;
*Multiple data fields for the hyperlink columns.&lt;br /&gt;
&lt;br /&gt;
*Customizable appearance through themes and styles.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page language="C#" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form runat="server"&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h3&amp;gt;GridView Example&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:gridview id="CustomersGridView" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datasourceid="CustomersSource" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autogeneratecolumns="true"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emptydatatext="No data available." &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowpaging="true" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; runat="server"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:gridview&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- This example uses Microsoft SQL Server and connects&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- to the Northwind sample database. Use an ASP.NET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- expression to retrieve the connection string value&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- from the Web.config file.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:sqldatasource id="CustomersSource"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionstring="&amp;lt;%$ ConnectionStrings:NorthWindConnectionString%&amp;gt;" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; runat="server"/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Binding to Data&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The GridView control can be bound to a data source control (such as SqlDataSource, ObjectDataSource, and so on), as well as any data source that implements the System.Collections.IEnumerable interface (such as System.Data.DataView, System.Collections.ArrayList, or System.Collections.Hashtable). Use one of the following methods to bind the GridView control to the appropriate data source type:&lt;br /&gt;
&lt;br /&gt;
*To bind to a data source control, set the DataSourceID property of the GridView control to the ID value of the data source control. The GridView control automatically binds to the specified data source control and can take advantage of the data source control's capabilities to perform sorting, updating, deleting, and paging functionality. This is the preferred method to bind to data.&lt;br /&gt;
&lt;br /&gt;
*To bind to a data source that implements the System.Collections.IEnumerable interface, programmatically set the DataSource property of the GridView control to the data source and then call the DataBind method. When using this method, the GridView control does not provide built-in sorting, updating, deleting, and paging functionality. You need to provide this functionality by using the appropriate event.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Style property&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
AlternatingRowStyle: The style settings for the alternating data rows in the GridView control. When this property is set, the data rows are displayed alternating between the RowStyle settings and the AlternatingRowStyle settings.&lt;br /&gt;
&lt;br /&gt;
EditRowStyle: The style settings for the row being edited in the GridView control.&lt;br /&gt;
&lt;br /&gt;
EmptyDataRowStyle: The style settings for the empty data row displayed in the GridView control when the data source does not contain any records.&lt;br /&gt;
&lt;br /&gt;
FooterStyle :The style settings for the footer row of the GridView control.&lt;br /&gt;
&lt;br /&gt;
HeaderStyle: The style settings for the header row of the GridView control.&lt;br /&gt;
&lt;br /&gt;
PagerStyle: The style settings for the pager row of the GridView control.&lt;br /&gt;
&lt;br /&gt;
RowStyle: The style settings for the data rows in the GridView control. When the AlternatingRowStyle property is also set, the data rows are displayed alternating between the RowStyle settings and the AlternatingRowStyle settings. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page language="C#" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form runat="server"&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h3&amp;gt;GridView Edit Example&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- The GridView control automatically sets the columns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- specified in the datakeynames property as read-only.&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- No input controls are rendered for these columns in&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- edit mode.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:gridview id="CustomersGridView" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datasourceid="CustomersSqlDataSource" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autogeneratecolumns="true"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autogeneratedeletebutton="true"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autogenerateeditbutton="true"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datakeynames="CustomerID"&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; runat="server"&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:gridview&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- This example uses Microsoft SQL Server and connects&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- to the Northwind sample database. Use an ASP.NET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- expression to retrieve the connection string value&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- from the Web.config file.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:sqldatasource id="CustomersSqlDataSource"&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updatecommand="Update Customers SET CompanyName=@CompanyName, Address=@Address, City=@City, PostalCode=@PostalCode, Country=@Country WHERE (CustomerID = @CustomerID)"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deletecommand="Delete from Customers where CustomerID = @CustomerID"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionstring="&amp;lt;%$ ConnectionStrings:NorthWindConnectionString%&amp;gt;"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; runat="server"&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:sqldatasource&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Events&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
PageIndexChanged: Occurs when one of the pager buttons is clicked, but after the GridView control handles the paging operation. This event is commonly used when you need to perform a task after the user navigates to a different page in the control.&lt;br /&gt;
&lt;br /&gt;
PageIndexChanging: Occurs when one of the pager buttons is clicked, but before the GridView control handles the paging operation. This event is often used to cancel the paging operation.&lt;br /&gt;
&lt;br /&gt;
RowCancelingEdit: Occurs when a row's Cancel button is clicked, but before the GridView control exits edit mode. This event is often used to stop the canceling operation.&lt;br /&gt;
&lt;br /&gt;
RowCommand: Occurs when a button is clicked in the GridView control. This event is often used to perform a task when a button is clicked in the control.&lt;br /&gt;
&lt;br /&gt;
RowCreated: Occurs when a new row is created in the GridView control. This event is often used to modify the contents of a row when the row is created.&lt;br /&gt;
&lt;br /&gt;
RowDataBound: Occurs when a data row is bound to data in the GridView control. This event is often used to modify the contents of a row when the row is bound to data.&lt;br /&gt;
&lt;br /&gt;
RowDeleted: Occurs when a row's Delete button is clicked, but after the GridView control deletes the record from the data source. This event is often used to check the results of the delete operation.&lt;br /&gt;
&lt;br /&gt;
RowDeleting: Occurs when a row's Delete button is clicked, but before the GridView control deletes the record from the data source. This event is often used to cancel the deleting operation.&lt;br /&gt;
&lt;br /&gt;
RowEditing: Occurs when a row's Edit button is clicked, but before the GridView control enters edit mode. This event is often used to cancel the editing operation.&lt;br /&gt;
&lt;br /&gt;
RowUpdated: Occurs when a row's Update button is clicked, but after the GridView control updates the row. This event is often used to check the results of the update operation.&lt;br /&gt;
&lt;br /&gt;
RowUpdating: Occurs when a row's Update button is clicked, but before the GridView control updates the row. This event is often used to cancel the updating operation.&lt;br /&gt;
&lt;br /&gt;
SelectedIndexChanged: Occurs when a row's Select button is clicked, but after the GridView control handles the select operation. This event is often used to perform a task after a row is selected in the control.&lt;br /&gt;
&lt;br /&gt;
SelectedIndexChanging: Occurs when a row's Select button is clicked, but before the GridView control handles the select operation. This event is often used to cancel the selection operation.&lt;br /&gt;
&lt;br /&gt;
Sorted: Occurs when the hyperlink to sort a column is clicked, but after the GridView control handles the sort operation. This event is commonly used to perform a task after the user clicks on a hyperlink to sort a column.&lt;br /&gt;
&lt;br /&gt;
Sorting: Occurs when the hyperlink to sort a column is clicked, but before the GridView control handles the sort operation. This event is often used to cancel the sorting operation or to perform a custom sorting routine. &lt;br /&gt;
&lt;br /&gt;
Source : MSDN (GridView Class)&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>&amp;lt;asp:CheckBox/&amp;gt; CheckBoxes in GridView, Repeater and DataList controls in ASP.Net C#</title><link>http://24x7aspnet.blogspot.com/2011/11/checkboxes-in-gridview-repeater-and.html</link><category>Asp.net</category><category>DataBinder</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Fri, 4 Nov 2011 00:10:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-6882028279678863136</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This tutorial, how &amp;lt;asp:CheckBox/&amp;gt; worked in GridView, Repeater and DataList control to provide the user with an intuitive way of selecting multiple rows of the GridView, Repeater and DataList.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:Repeater ID="RepeaterExample" runat="server" DataSourceID="AccessDataSourceExample"&amp;gt;&lt;br /&gt;
&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;asp:CheckBox ID="CategoryID" runat="server" Text='&amp;lt;%# Eval("CategoryID") %&amp;gt;' /&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:GridView ID="GridViewExample" runat="server" AutoGenerateColumns="False" DataKeyNames="CategoryID"&lt;br /&gt;
DataSourceID="AccessDataSourceExample"&amp;gt;&lt;br /&gt;
&amp;lt;Columns&amp;gt;&lt;br /&gt;
&amp;lt;asp:TemplateField HeaderText="CategoryID" InsertVisible="False"&amp;gt;&lt;br /&gt;
&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;
&amp;lt;asp:CheckBox ID="CategoryID" runat="server" Text='&amp;lt;%# Eval("CategoryID") %&amp;gt;' /&amp;gt;&lt;br /&gt;
&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;
&amp;lt;asp:BoundField DataField="Description" HeaderText="Description" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:BoundField DataField="CategoryName" HeaderText="CategoryName" /&amp;gt;&lt;br /&gt;
&amp;lt;/Columns&amp;gt;&lt;br /&gt;
&amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:DataList ID="DataListExample" runat="server" DataKeyField="CategoryID" &lt;br /&gt;
DataSourceID="AccessDataSourceExample"&amp;gt;&lt;br /&gt;
&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;
CategoryID:&lt;br /&gt;
&amp;lt;asp:CheckBox ID="CategoryID" runat="server" Text='&amp;lt;%# Eval("CategoryID") %&amp;gt;' /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Description:&lt;br /&gt;
&amp;lt;asp:Label ID="DescriptionLabel" runat="server" Text='&amp;lt;%# Eval("Description") %&amp;gt;' /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
CategoryName:&lt;br /&gt;
&amp;lt;asp:Label ID="CategoryNameLabel" runat="server" Text='&amp;lt;%# Eval("CategoryName") %&amp;gt;' /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:DataList&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:Literal ID="rptLiteralExample" runat="server" /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;asp:Literal ID="grD_listiteralExample" runat="server" /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;asp:Literal ID="dstliteralExample" runat="server" /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:Button ID="ButtonExample" runat="server" Text="Button" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:AccessDataSource ID="AccessDataSourceExample" runat="server" DataFile="~/App_Data/MyDatabase.mdb"&lt;br /&gt;
SelectCommand="SELECT [CategoryID], [Description], [CategoryName] FROM [Categories]" /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GridView Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;asp:GridView /&amp;gt; contains a collection of GridViewRow objects. Once you reference the collection, and iterate through it, you can use the FindControl method of the GridViewRow to access controls:&lt;br /&gt;
&lt;br /&gt;
string Grd = "GridView Items Checked:&amp;lt;br /&amp;gt;";&lt;br /&gt;
foreach (GridViewRow gvr in GridViewExample.Rows)&lt;br /&gt;
{&lt;br /&gt;
CheckBox chk = (CheckBox)gvr.FindControl("CategoryID");&lt;br /&gt;
if (chk.Checked)&lt;br /&gt;
{&lt;br /&gt;
Grd += (chk.Text + "&amp;lt;br /&amp;gt;");&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
grD_listiteralExample.Text = Grd;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Repeater Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;asp:Repeater /&amp;gt; has an Items collection. In this example, the Count property of the Items collection is retrieved and used with a for.. next loop While ... End  to iterate the collection. The FindControl method of each Item is used to reference the CheckBox again:&lt;br /&gt;
&lt;br /&gt;
string Rpt = "Repeater Items Checked:&amp;lt;br /&amp;gt;";&lt;br /&gt;
for (int i = 0; i &amp;lt; RepeaterExample.Items.Count; i++)&lt;br /&gt;
{&lt;br /&gt;
CheckBox chk = (CheckBox)RepeaterExample.Items[i].FindControl("CategoryID");&lt;br /&gt;
if (chk.Checked)&lt;br /&gt;
{&lt;br /&gt;
Rpt+=(chk.Text + "&amp;lt;br /&amp;gt;");&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
rptLiteralExample.Text = Rpt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DataList Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;asp:DataList /&amp;gt; also has an Items collection, but this time, foreach is used to iterate the collection. for... next could just as easily be used as in the Repeater example:&lt;br /&gt;
&lt;br /&gt;
string Dl = "Datalist Items Checked:&amp;lt;br /&amp;gt;";&lt;br /&gt;
foreach (DataListItem dli in DataListExample.Items)&lt;br /&gt;
{&lt;br /&gt;
CheckBox chk = (CheckBox)dli.FindControl("CategoryID");&lt;br /&gt;
if (chk.Checked)&lt;br /&gt;
{&lt;br /&gt;
Dl += (chk.Text + "&amp;lt;br /&amp;gt;");&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
dstliteralExample.Text = Dl;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.Net XmlDataSource Example, How to use &amp;lt;asp:XmlDataSource&amp;gt; Control in ASP.NET C#</title><link>http://24x7aspnet.blogspot.com/2011/10/aspnet-xmldatasource-example-how-to-use.html</link><category>Asp.net</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 03:50:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-2773303754190701905</guid><description>&amp;lt;asp:XmlDataSource&lt;br /&gt;
    CacheDuration="string|Infinite"&lt;br /&gt;
    CacheExpirationPolicy="Absolute|Sliding"&lt;br /&gt;
    CacheKeyDependency="string"&lt;br /&gt;
    DataFile="string"&lt;br /&gt;
    EnableCaching="True|False"&lt;br /&gt;
    EnableTheming="True|False"&lt;br /&gt;
    EnableViewState="True|False"&lt;br /&gt;
    ID="string"&lt;br /&gt;
    OnDataBinding="DataBinding event handler"&lt;br /&gt;
    OnDisposed="Disposed event handler"&lt;br /&gt;
    OnInit="Init event handler"&lt;br /&gt;
    OnLoad="Load event handler"&lt;br /&gt;
    OnPreRender="PreRender event handler"&lt;br /&gt;
    OnTransforming="Transforming event handler"&lt;br /&gt;
    OnUnload="Unload event handler"&lt;br /&gt;
    runat="server"&lt;br /&gt;
    SkinID="string"&lt;br /&gt;
    TransformArgumentList="string"&lt;br /&gt;
    TransformFile="string"&lt;br /&gt;
    Visible="True|False"&lt;br /&gt;
    XPath="string"&lt;br /&gt;
&amp;gt;&lt;br /&gt;
    &amp;lt;Data&amp;gt;string&amp;lt;/Data&amp;gt;&lt;br /&gt;
    &amp;lt;Transform&amp;gt;string&amp;lt;/Transform&amp;gt;&lt;br /&gt;
&amp;lt;/asp:XmlDataSource&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The XmlDataSource typically loads XML data from an XML file, which is specified by the DataFile property. XML data can also be stored directly by the data source control in string form using the Data property. If you want to transform the XML data before it is displayed by a data-bound control, you can provide an Extensible Stylesheet Language (XSL) style sheet for the transformation. As with the XML data, you typically load the style sheet from a file, indicated by the TransformFile property, but you can also store it in string form directly using the Transform property. &lt;br /&gt;
&lt;br /&gt;
The XmlDataSource control is a data source control that presents XML data to data-bound controls. The XmlDataSource control can be used by data-bound controls to display both hierarchical and tabular data. The XmlDataSource control is typically used to display hierarchical XML data in read-only scenarios. Because the XmlDataSource control extends the HierarchicalDataSourceControl class, it works with hierarchical data. The XmlDataSource control also implements the IDataSource interface and works with tabular, or list-style, data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="XmlDataSource.aspx.cs" Inherits="XmlDataSource" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;ASP.Net XmlDataSource: How to use&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;h2 style="color:Teal"&amp;gt;XmlDataSource&amp;lt;/h2&amp;gt;&lt;br /&gt;
        &amp;lt;asp:CheckBoxList &lt;br /&gt;
            ID="CheckBoxListExample"&lt;br /&gt;
            runat="server"&lt;br /&gt;
            &amp;gt;&lt;br /&gt;
        &amp;lt;/asp:CheckBoxList&amp;gt;&lt;br /&gt;
        &amp;lt;asp:XmlDataSource &lt;br /&gt;
            ID="XmlDataSourceExample"&lt;br /&gt;
            runat="server"&lt;br /&gt;
            &amp;gt;&lt;br /&gt;
            &amp;lt;Data&amp;gt;&lt;br /&gt;
                &amp;lt;Players&amp;gt;&lt;br /&gt;
                    &amp;lt;Player ID="1" Name="John" /&amp;gt;&lt;br /&gt;
                    &amp;lt;Player ID="2" Name="Jim" /&amp;gt;&lt;br /&gt;
                    &amp;lt;Player ID="3" Name="Jones" /&amp;gt;&lt;br /&gt;
                    &amp;lt;Player ID="4" Name="Jenny" /&amp;gt;&lt;br /&gt;
                    &amp;lt;Player ID="5" Name="Ben" /&amp;gt;&lt;br /&gt;
                &amp;lt;/Players&amp;gt;&lt;br /&gt;
            &amp;lt;/Data&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:XmlDataSource&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Configuration;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.Security;&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
using System.Web.UI.HtmlControls;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
&lt;br /&gt;
public partial class XmlDataSource : System.Web.UI.Page&lt;br /&gt;
{&lt;br /&gt;
    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        if(!this.IsPostBack)&lt;br /&gt;
        {&lt;br /&gt;
            CheckBoxListExample.DataSourceID = "XmlDataSourceExample";&lt;br /&gt;
            CheckBoxListExample.DataTextField = "Name";&lt;br /&gt;
            CheckBoxListExample.DataValueField = "ID";&lt;br /&gt;
            CheckBoxListExample.RepeatColumns = 3;&lt;br /&gt;
            CheckBoxListExample.BorderWidth = 2;&lt;br /&gt;
            CheckBoxListExample.BorderColor = System.Drawing.Color.DarkGreen;&lt;br /&gt;
            CheckBoxListExample.BackColor = System.Drawing.Color.Green;&lt;br /&gt;
            CheckBoxListExample.ForeColor = System.Drawing.Color.White;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.Net CustomValidator Example, How to &amp;lt;asp:CustomValidator&amp;gt; Control customized validation logic in asp.net c#</title><link>http://24x7aspnet.blogspot.com/2011/10/aspnet-customvalidator-example-how-to.html</link><category>Asp.net</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 03:25:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-1114296588576812623</guid><description>&amp;lt;asp:CustomValidator &lt;br /&gt;
     id="ProgrammaticID" &lt;br /&gt;
     ControlToValidate="programmatic ID of Server Control to Validate"&lt;br /&gt;
     ClientValidationFunction="ClientValidateID"&lt;br /&gt;
     OnServerValidate="ServerValidateID"&lt;br /&gt;
     ErrorMessage="Message to display in ValidationSummary control"&lt;br /&gt;
     Text="Message to display in control" &lt;br /&gt;
     ForeColor="value" &lt;br /&gt;
     BackColor="value"  &lt;br /&gt;
     runat="server" &amp;gt;&lt;br /&gt;
&amp;lt;/asp:CustomValidator&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The CustomValidator control allows you to create a validation control with customized validation logic. For example, you can create a validation control that checks whether the value entered into a text box is an even number.&lt;br /&gt;
&lt;br /&gt;
Validation controls always perform validation checking on the server. They also have complete client-side implementation that allows DHTML-supported browsers (such as Microsoft Internet Explorer 4.0 or later) to perform validation on the client. Client-side validation enhances the validation process by checking user input before it is sent to the server. This allows errors to be detected on the client before the form is submitted, avoiding the round-trip of information necessary for server-side validation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check the length of the string in the TextBox. This is a very basic example, to show how you may use the CustomValidator. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:TextBox runat="server" id="txtExample" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:CustomValidator runat="server" id="CustomValidatorExample" controltovalidate="txtExample" onservervalidate="CustomValidatorExample_ServerValidate" errormessage="The text must be exactly 10 characters long!" /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
protected void CustomValidatorExample_ServerValidate(object sender, ServerValidateEventArgs e)&lt;br /&gt;
{&lt;br /&gt;
    if(e.Value.Length == 10)&lt;br /&gt;
        e.IsValid = true;&lt;br /&gt;
    else&lt;br /&gt;
        e.IsValid = false;&lt;br /&gt;
}</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.Net RangeValidator Example, How to &amp;lt;asp:RangeValidator&amp;gt; Control validate a range in asp.net c#</title><link>http://24x7aspnet.blogspot.com/2011/10/aspnet-rangevalidator-example-how-to.html</link><category>Asp.net</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 03:23:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-4260474898534274451</guid><description>&amp;lt;asp:RangeValidator &lt;br /&gt;
     id="ProgrammaticID" &lt;br /&gt;
     ControlToValidate="ProgrammaticID of control to validate" &lt;br /&gt;
     MinimumValue="value"&lt;br /&gt;
     MaximumValue="value" &lt;br /&gt;
     Type="DataType" &lt;br /&gt;
     ErrorMessage="Message to display in ValidationSummary control"&lt;br /&gt;
     Text="Message to display in control"&lt;br /&gt;
     ForeColor="value" &lt;br /&gt;
     BackColor="value"  &lt;br /&gt;
     runat="server" &amp;gt;&lt;br /&gt;
&amp;lt;/asp:RangeValidator&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RangeValidator control allows you to check whether a user's entry is between a specified upper and lower boundary. You can check ranges within pairs of numbers, alphabetic characters, and dates. Boundaries are expressed as constants.&lt;br /&gt;
&lt;br /&gt;
Use the ControlToValidate property to specify the input control to validate. The MinimumValue and MaximumValue properties specify the minimum and maximum values of the valid range, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language="C#" %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional/EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script runat="server"&amp;gt;&lt;br /&gt;
    protected void ButtonExample_Click(object sender,System.EventArgs e) {&lt;br /&gt;
        LabelExample.Text = "You entered valid Number.&amp;lt;br&amp;gt;Your Number:" + TextBoxExample.Text.ToString();&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;
    &amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;ASP.Net RangeValidator Example&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
            &amp;lt;div&amp;gt;&lt;br /&gt;
                &amp;lt;asp:Label ID="LabelExample" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
                &amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;asp:Label ID="lblTesting" runat="server" Text="Number" AssociatedControlID="TextBoxExample"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
                &amp;lt;asp:TextBox ID="TextBoxExample" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
                &amp;lt;asp:RequiredFieldValidator ID="RequiredFieldValidatorExample" runat="server" ControlToValidate="TextBoxExample" ErrorMessage="Number is required!" Text="*"&amp;gt;&lt;br /&gt;
                &amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
                &amp;lt;asp:RangeValidator ID="RangeValidatorExample" runat="server" ControlToValidate="TextBoxExample" MaximumValue="200" MinimumValue="100" Type="Integer" ErrorMessage="You must be input between 100 to 200."&amp;gt;&lt;br /&gt;
                &amp;lt;/asp:RangeValidator&amp;gt;&lt;br /&gt;
                &amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;asp:Button ID="ButtonExample" runat="server" Text="Validate Number" OnClick="ButtonExample_Click"/&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.Net CompareValidator Example, How to &amp;lt;asp:CompareValidator&amp;gt; Control compare the value in asp.net c#</title><link>http://24x7aspnet.blogspot.com/2011/10/aspnet-comparevalidator-example-how-to.html</link><category>Asp.net</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 03:21:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-8552103961128400674</guid><description>&amp;lt;asp:CompareValidator&lt;br /&gt;
     id="ProgrammaticID"&lt;br /&gt;
     ControlToValidate="Programmatic ID of Server Control to Validate"&lt;br /&gt;
     ValueToCompare="value"&lt;br /&gt;
     ControlToCompare="value"  &lt;br /&gt;
     Type="DataType" &lt;br /&gt;
     Operator="Operator Value" &lt;br /&gt;
     ErrorMessage="Message to display in ValidationSummary control"&lt;br /&gt;
     Text="Message to display in control"  &lt;br /&gt;
     ForeColor="value"&lt;br /&gt;
     BackColor="value"  &lt;br /&gt;
     runat="server" &amp;gt; &lt;br /&gt;
&amp;lt;/asp:CompareValidator&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The CompareValidator control allows you to compare the value entered by the user into an input control, such as a TextBox control, with the value entered into another input control, or with a constant value. You can also use the CompareValidator control to determine whether the value entered into an input control can be converted to the data type specified by the Type property.&lt;br /&gt;
&lt;br /&gt;
Specify the input control to validate by setting the ControlToValidate property. If you want to compare a specific input control with another input control, set the ControlToCompare property with the name of the control to compare.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompareValidator.aspx.cs" Inherits="CompareValidator" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;ASP.Net CompareValidator Example&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;h2 style="color:Red"&amp;gt;CompareValidator&amp;lt;/h2&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Label ID="lbl1Example" runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Label ID="lbl2Example" runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;asp:TextBox ID="txtExample" runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
        &amp;lt;asp:CompareValidator ID="CompareValidatorExample" runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:CompareValidator&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Label ID="lbl3Example" runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;asp:TextBox ID="txt2Example" runat="server"&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
        &amp;lt;asp:RequiredFieldValidator &lt;br /&gt;
            ID="RequiredFieldValidatorExample"&lt;br /&gt;
            runat="server"&lt;br /&gt;
            ControlToValidate="txt2Example"&lt;br /&gt;
            Text="*"&lt;br /&gt;
            &amp;gt;&lt;br /&gt;
        &amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Button ID="ButtonExample" runat="server" Text="Submit Password" OnClick="ButtonExample_Click" /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Configuration;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.Security;&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
using System.Web.UI.HtmlControls;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
&lt;br /&gt;
public partial class CompareValidator : System.Web.UI.Page&lt;br /&gt;
{&lt;br /&gt;
    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        if (!this.IsPostBack)&lt;br /&gt;
        {&lt;br /&gt;
            lbl1Example.ForeColor = System.Drawing.Color.Green;&lt;br /&gt;
            lbl1Example.Font.Italic = true;&lt;br /&gt;
            lbl2Example.Text = "Password";&lt;br /&gt;
            lbl3Example.Text = "Re-Type Password";&lt;br /&gt;
            txtExample.TextMode = TextBoxMode.Password;&lt;br /&gt;
            txt2Example.TextMode = TextBoxMode.Password;&lt;br /&gt;
            ButtonExample.Font.Bold = true;&lt;br /&gt;
            ButtonExample.ForeColor = System.Drawing.Color.Green;&lt;br /&gt;
            CompareValidatorExample.ControlToValidate = "txt2Example";&lt;br /&gt;
            CompareValidatorExample.ControlToCompare = "txtExample";&lt;br /&gt;
            CompareValidatorExample.ErrorMessage = "Password do not match!";&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    protected void ButtonExample_Click(object sender, EventArgs e) {&lt;br /&gt;
        lbl1Example.Text = "Password match.";&lt;br /&gt;
    }&lt;br /&gt;
}</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.Net RequiredFieldValidator Example, How to &amp;lt;asp:RequiredFieldValidator&amp;gt; Control make a mandatory field in asp.net c#</title><link>http://24x7aspnet.blogspot.com/2011/10/aspnet-requiredfieldvalidator-example.html</link><category>Asp.net</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 03:18:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-1618941085553513226</guid><description>&amp;lt;asp:RequiredFieldValidator &lt;br /&gt;
id="ProgrammaticID" &lt;br /&gt;
ControlToValidate="ProgrammaticID of control to validate" &lt;br /&gt;
InitialValue="value"&lt;br /&gt;
ErrorMessage="Message to display in ValidationSummary control"&lt;br /&gt;
Text="Message to display in control"&lt;br /&gt;
ForeColor="value" &lt;br /&gt;
BackColor="value"  &lt;br /&gt;
runat="server" &amp;gt;&lt;br /&gt;
&amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the RequiredFieldValidator control to make an input control a mandatory field. The input control fails validation if the value it contains does not change from its initial value when validation is performed. This prevents the user from leaving the associated input control unchanged. By default, the initial value is an empty string (""), which indicates that a value must be entered in the input control for it to pass validation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="RequiredFieldValidator.aspx.cs" Inherits="RequiredFieldValidator" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;ASP.Net RequiredFieldValidator Example&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h2 style="color:Red"&amp;gt;RequiredFieldValidator&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="lbl1Example" runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="lbl2Example" runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="txtExample" runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;lt;asp:RequiredFieldValidator &lt;br /&gt;
ID="RequiredFieldValidatorExample"&lt;br /&gt;
runat="server"&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;asp:Button ID="ButtonExample" runat="server" Text="Submit" OnClick="ButtonExample_Click" /&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Configuration;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.Security;&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
using System.Web.UI.HtmlControls;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
&lt;br /&gt;
public partial class RequiredFieldValidator : System.Web.UI.Page&lt;br /&gt;
{&lt;br /&gt;
protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
if (!this.IsPostBack)&lt;br /&gt;
{&lt;br /&gt;
lbl1Example.Font.Italic = true;&lt;br /&gt;
lbl1Example.ForeColor = System.Drawing.Color.SeaGreen;&lt;br /&gt;
lbl2Example.Text = "Name";&lt;br /&gt;
txtExample.ForeColor = System.Drawing.Color.SeaGreen;&lt;br /&gt;
ButtonExample.Font.Bold = true;&lt;br /&gt;
ButtonExample.ForeColor = System.Drawing.Color.SeaGreen;&lt;br /&gt;
RequiredFieldValidatorExample.ControlToValidate = "txtExample";&lt;br /&gt;
RequiredFieldValidatorExample.ErrorMessage = "input name!";&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
protected void ButtonExample_Click(object sender, EventArgs e) {&lt;br /&gt;
lbl1Example.Text = "Hello " + txtExample.Text.ToString();&lt;br /&gt;
}&lt;br /&gt;
}</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.Net ValidationSummary Example, How to &amp;lt;asp:ValidationSummary&amp;gt; Control allows you to summarize the error messages in asp.net c#</title><link>http://24x7aspnet.blogspot.com/2011/10/aspnet-validationsummary-example-how-to.html</link><category>Asp.net</category><category>Server Control</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 03:17:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-1685861859480794004</guid><description>&amp;lt;asp:ValidationSummary &lt;br /&gt;
     id="programmaticID" &lt;br /&gt;
     DisplayMode="BulletList | List | SingleParagraph" &lt;br /&gt;
     EnableClientScript="true | false"&lt;br /&gt;
     ShowSummary="true | false"&lt;br /&gt;
     ShowMessageBox="true | false"                        &lt;br /&gt;
     HeaderText="TextToDisplayAsSummaryTitle"&lt;br /&gt;
     runat="server"/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ValidationSummary control allows you to summarize the error messages from all validation controls on a Web page in a single location. The summary can be displayed as a list, a bulleted list, or a single paragraph, based on the value of the DisplayMode property. The error message displayed in the ValidationSummary control for each validation control on the page is specified by the ErrorMessage property of each validation control. If the ErrorMessage property of the validation control is not set, no error message is displayed in the ValidationSummary control for that validation control. You can also specify a custom title in the heading section of the ValidationSummary control by setting the HeaderText property.&lt;br /&gt;
&lt;br /&gt;
You can control whether the ValidationSummary control is displayed or hidden by setting the ShowSummary property. The summary can also be displayed in a message box by setting the ShowMessageBox property to true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language="C#" %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script runat="server"&amp;gt;&lt;br /&gt;
    protected void ButtonExample_Click(object sender, System.EventArgs e) {&lt;br /&gt;
        lbl1Example.Text = "Your Country: " +&lt;br /&gt;
            txt1Example.Text.ToString() +&lt;br /&gt;
            "&amp;lt;br /&amp;gt;Region: " +&lt;br /&gt;
            txt2Example.Text.ToString() +&lt;br /&gt;
            "&amp;lt;br /&amp;gt;City: " +&lt;br /&gt;
            txt3Example.Text.ToString();&lt;br /&gt;
            &lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;ASP.Net ValidationSummary Example&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Label ID="lbl1Example" runat="server" Font-Size="Large" ForeColor="BlueViolet"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Label ID="lbl2Example" runat="server" Text="Country Name" AssociatedControlID="txt1Example"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;asp:TextBox ID="txt1Example" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
        &amp;lt;asp:RequiredFieldValidator&lt;br /&gt;
             ID="RequiredFieldValidatorExample"&lt;br /&gt;
             runat="server"&lt;br /&gt;
             ControlToValidate="txt1Example"&lt;br /&gt;
             ErrorMessage='Input Country!'&lt;br /&gt;
             EnableClientScript="true"&lt;br /&gt;
             SetFocusOnError="true"&lt;br /&gt;
             Text="*"&lt;br /&gt;
             &amp;gt;&lt;br /&gt;
        &amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;asp:Label ID="lbl3Example" runat="server" Text="Region Name" AssociatedControlID="txt2Example"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;asp:TextBox ID="txt2Example" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
        &amp;lt;asp:RequiredFieldValidator&lt;br /&gt;
             ID="RequiredFieldValidator2"&lt;br /&gt;
             runat="server"&lt;br /&gt;
             ControlToValidate="txt2Example"&lt;br /&gt;
             ErrorMessage='Input Region!'&lt;br /&gt;
             EnableClientScript="true"&lt;br /&gt;
             SetFocusOnError="true"&lt;br /&gt;
             Text="*"&lt;br /&gt;
             &amp;gt;&lt;br /&gt;
        &amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;asp:Label ID="lbl4Example" runat="server" Text="City Name" AssociatedControlID="txt3Example"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
        &amp;lt;asp:TextBox ID="txt3Example" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
        &amp;lt;asp:RequiredFieldValidator&lt;br /&gt;
             ID="RequiredFieldValidator3"&lt;br /&gt;
             runat="server"&lt;br /&gt;
             ControlToValidate="txt3Example"&lt;br /&gt;
             ErrorMessage='Input Region!'&lt;br /&gt;
             EnableClientScript="true"&lt;br /&gt;
             SetFocusOnError="true"&lt;br /&gt;
             Text="*"&lt;br /&gt;
             &amp;gt;&lt;br /&gt;
        &amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:Button ID="ButtonExample" runat="server" Text="Submit" OnClick="ButtonExample_Click" /&amp;gt;&lt;br /&gt;
        &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:ValidationSummary ID="ValidationSummaryExample" runat="server" HeaderText="Following error occurs:" ShowMessageBox="false" DisplayMode="BulletList" ShowSummary="true" /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Regular Expression Example, Regular Expression in ASP.net</title><link>http://24x7aspnet.blogspot.com/2011/10/regular-expression-example-regular.html</link><category>Asp.net</category><category>C#</category><category>Regular Expression</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 29 Oct 2011 02:20:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-5520071148826793593</guid><description>ASP.NET provides you some handfull validation controls like RequiredFiledValidator, RegularExpressionValidator etc. Most of the time we have to check whether user has given the correct number, date, time or anything as input. To validate such things we use RegularExpressionValidator.&lt;br /&gt;
&lt;br /&gt;
The dash is a 'range separator'. Instead of listing the entire lowercase alphabet, we can merely list a-z, as above, to show all the characters. Therefore, in this example, basically, using [a-z] for the regular expression would mean that we would search the text, and only match, lower case alphabetic characters. That brings up another anomaly about Regular Expressions - case sensitivity. Yes, Regular Expressions ARE case sensitive. This means that if we wanted any alphabetic character to be matched, we would need to put in [a-z], plus [A-Z]. Of course, we could put numeric ranges here, too, like '[0-9]' to match ONLY numeric characters. Another special identifier '\d' does the same thing - the 'd' stands for a digit character.&lt;br /&gt;
&lt;br /&gt;
The Caret (^)/(Shift-6), if it is INSIDE brackets will match anything BUT what is listed in the characters next to it - but - it 'negates' whatever is in the Regular Expression (like [^Aa] - this will match anything except the lower or upper case 'A'. However, if it is quite different when used outside brackets. Here, it will look for the characters next to it, and test them against only the BEGINNING of the string, but it looks for an exact match. For instance: '^Dav' will be found in the string 'David is here today', but it will not be matched in 'We're going to find David', since it's not at the beginning of the string.&lt;br /&gt;
&lt;br /&gt;
The dollar sign ($), as opposed to the Caret, will look at the END of the target string. For instance, '$fox' will find a match in 'silver fox' but not in 'the fox jumped over the log'&lt;br /&gt;
&lt;br /&gt;
The period (.) can be used like a wildcard. Anyone who has used databases should know a little about wildcards, hopefully. Let's say the Regular Expression was 'exp.' - It would match if it found 'expression', 'experience', or 'exponential'.&lt;br /&gt;
&lt;br /&gt;
The question mark (?) matches the preceding character 0 or 1 times&lt;br /&gt;
&lt;br /&gt;
The asterisk (*) matches the preceding character 0 or more times. It is also sort of like a wildcard.&lt;br /&gt;
The plus sign (+) matches the previous character 1 or more times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace ExampleUtil&lt;br /&gt;
{&lt;br /&gt;
public class RegExp&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
public static readonly string Url = "[a-zA-Z0-9-_\\$]+(//.[a-za-z0-9-_//$]+)?\\??" +&lt;br /&gt;
"[a-zA-Z0-9-_\\$]+=?[a-zA-Z0-9-_\\$]+(&amp;amp;[a-zA-Z0-9-_\\$]+=" +&lt;br /&gt;
"[a-zA-Z0-9-_\\$]+)*";"&amp;gt;\\.[a-zA-Z0-9-_\\$]+)?\\??" +&lt;br /&gt;
"[a-zA-Z0-9-_\\$]+=?[a-zA-Z0-9-_\\$]+(&amp;amp;" +&lt;br /&gt;
"[a-zA-Z0-9-_\\$]+=[a-zA-Z0-9-_\\$]+)*";&lt;br /&gt;
public static readonly string Date = "(0[1-9]|[12][0-9]|3[01])[-]" +&lt;br /&gt;
"(0[1-9]|1[012])[-]((175[7-9])|(17[6-9][0-9])|(1[8-9][0-9][0-9])|" +&lt;br /&gt;
"([2-9][0-9][0-9][0-9]))";&lt;br /&gt;
// supports dates from 1-1-1757 to 31-12-9999 for SQL Server 2000 Date Range&lt;br /&gt;
public static readonly string Time = "(0[1-9]|[1][0-2])[:]" +&lt;br /&gt;
"(0[0-9]|[1-5][0-9])[:](0[0-9]|[1-5][0-9])[ ][A|a|P|p][M|m]";&lt;br /&gt;
public static readonly string Number = "[-+]?[0-9]*\\.?[0-9]*";&lt;br /&gt;
public static readonly string Digit = "[0-9]*";&lt;br /&gt;
public static readonly string NonNegative = "[+]?[0-9]*\\.?[0-9]*";&lt;br /&gt;
&lt;br /&gt;
public static string MaxLength(int len)&lt;br /&gt;
{&lt;br /&gt;
return "[\\s\\S]{0," + len.ToString() + "}";&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
The ValidationErrorMessages class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace Resource&lt;br /&gt;
{&lt;br /&gt;
public class ValidationErrorMessages&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
public static readonly string Url = "* Please enter a valid URL.&amp;lt;br&amp;gt;Valid " +&lt;br /&gt;
"characters are all alphanumeric characters and .?" +&lt;br /&gt;
"&amp;amp;_=-$&amp;lt;br&amp;gt; example: home.aspx?id=5&amp;amp;name=$my_name";&lt;br /&gt;
public static readonly string Required = "* Required";&lt;br /&gt;
public static readonly string Date = "* Please enter a valid date in dd-MM-yyyy format.";&lt;br /&gt;
public static readonly string Time = "* Please enter a valid time in hh:mm:ss am format.";&lt;br /&gt;
public static readonly string Number = "* Must be a valid number.";&lt;br /&gt;
public static readonly string Digit = "* Must be a valid whole number.";&lt;br /&gt;
public static readonly string NonNegative = "* Must be a non-negative number.";&lt;br /&gt;
&lt;br /&gt;
public static string MaxLength(int len)&lt;br /&gt;
{&lt;br /&gt;
return "* Maximum " + len.ToString() + " characters are allowed.";&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Defaul.aspx page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language="C#" AutoEventWireup="true"&lt;br /&gt;
CodeFile="Default.aspx.cs" Inherits="_Default" %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;br /&gt;
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;RegExp Page&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;&lt;br /&gt;
Validation Example&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;table border="1" width="50%"&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td style="width: 200px"&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="LabelComment"&lt;br /&gt;
runat="server" Text="Comment:"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxComment" runat="server"&lt;br /&gt;
TextMode="MultiLine" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="CommentValidator"&lt;br /&gt;
runat="server" ControlToValidate="TextBoxComment"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="LabelDate" runat="server"&lt;br /&gt;
Text="Date:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxDate"&lt;br /&gt;
runat="server" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="DateValidator" runat="server"&lt;br /&gt;
ControlToValidate="TextBoxDate"&amp;gt;&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="LabelTime" runat="server"&lt;br /&gt;
Text="Time:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxTime" runat="server" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="TimeValidator" runat="server"&lt;br /&gt;
ControlToValidate="TextBoxTime"&amp;gt;&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="LabelNumber" runat="server"&lt;br /&gt;
Text="Number:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxNumber" runat="server" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="NumberValidator" runat="server"&lt;br /&gt;
ControlToValidate="TextBoxNumber"&amp;gt;&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="LabelDigit" runat="server"&lt;br /&gt;
Text="Digit:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxDigit" runat="server" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="DigitValidator" runat="server"&lt;br /&gt;
ControlToValidate="TextBoxDigit"&amp;gt;&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="NonNegativeLabel" runat="server"&lt;br /&gt;
Text="Non Negative:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxNonNegative" runat="server" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="NonNegativeValidator" runat="server"&lt;br /&gt;
ControlToValidate="TextBoxNonNegative"&amp;gt;&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="UrlLabel" runat="server" Text="Url:"&amp;gt;&lt;br /&gt;
&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox ID="TextBoxUrl" runat="server" Width="500px" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:RegularExpressionValidator ID="UrlValidator" runat="server"&lt;br /&gt;
ControlToValidate="TextBoxUrl"&amp;gt;&amp;lt;/asp:RegularExpressionValidator&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Defaul.aspx.cs page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Configuration;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.Security;&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
using System.Web.UI.HtmlControls;&lt;br /&gt;
&lt;br /&gt;
using ExampleUtil;&lt;br /&gt;
using Resource;&lt;br /&gt;
&lt;br /&gt;
public partial class _Default : System.Web.UI.Page&lt;br /&gt;
{&lt;br /&gt;
protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
CommentValidator.ValidationExpression = RegExp.MaxLength(50);&lt;br /&gt;
CommentValidator.ErrorMessage = ValidationErrorMessages.MaxLength(50);&lt;br /&gt;
&lt;br /&gt;
DateValidator.ValidationExpression = RegExp.Date;&lt;br /&gt;
DateValidator.ErrorMessage = ValidationErrorMessages.Date;&lt;br /&gt;
&lt;br /&gt;
TimeValidator.ValidationExpression = RegExp.Time;&lt;br /&gt;
TimeValidator.ErrorMessage = ValidationErrorMessages.Time;&lt;br /&gt;
&lt;br /&gt;
NumberValidator.ValidationExpression = RegExp.Number;&lt;br /&gt;
NumberValidator.ErrorMessage = ValidationErrorMessages.Number;&lt;br /&gt;
&lt;br /&gt;
DigitValidator.ValidationExpression = RegExp.Digit;&lt;br /&gt;
DigitValidator.ErrorMessage = ValidationErrorMessages.Digit;&lt;br /&gt;
&lt;br /&gt;
NonNegativeValidator.ValidationExpression = RegExp.NonNegative;&lt;br /&gt;
NonNegativeValidator.ErrorMessage = ValidationErrorMessages.NonNegative;&lt;br /&gt;
&lt;br /&gt;
UrlValidator.ValidationExpression = RegExp.Url;&lt;br /&gt;
UrlValidator.ErrorMessage = ValidationErrorMessages.Url;&lt;br /&gt;
}&lt;br /&gt;
}</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Class Method Example, Methods in ASP.net C# Programming</title><link>http://24x7aspnet.blogspot.com/2011/10/class-method-example-methods-in-aspnet.html</link><category>abstract</category><category>Asp.net</category><category>C#</category><category>Class</category><category>events</category><category>Fields</category><category>Interfaces</category><category>methods</category><category>Objects</category><category>private</category><category>Programming</category><category>properties</category><category>protected</category><category>public</category><category>sealed class</category><category>struct</category><category>Tutorial</category><category>Virtual Methods</category><author>noreply@blogger.com (Unknown)</author><pubDate>Fri, 28 Oct 2011 23:46:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2360787205310450427.post-1094802573068809791</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method. The Main method is the entry point for every C# application and it is called by the common language runtime (CLR) when the program is started.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Method Signatures &lt;/span&gt;&lt;br /&gt;
Methods are declared in a class or struct by specifying the access level such as public or private, optional modifiers such as abstract or sealed, the return value, the name of the method, and any method parameters. These parts together are the signature of the method.&lt;br /&gt;
&lt;br /&gt;
abstract class Motorcycle&lt;br /&gt;
{&lt;br /&gt;
// Anyone can call this.&lt;br /&gt;
public void StartEngine() {/* Method statements here */ }&lt;br /&gt;
&lt;br /&gt;
// Only derived classes can call this.&lt;br /&gt;
protected void AddGas(int gallons) { /* Method statements here */ }&lt;br /&gt;
&lt;br /&gt;
// Derived classes can override the base class implementation.&lt;br /&gt;
public virtual int Drive(int miles, int speed) { /* Method statements here */ return 1; }&lt;br /&gt;
&lt;br /&gt;
// Derived classes must implement this.&lt;br /&gt;
public abstract double GetTopSpeed();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Method Access &lt;/span&gt;&lt;br /&gt;
Calling a method on an object is like accessing a field. After the object name, add a period, the name of the method, and parentheses. Arguments are listed within the parentheses, and are separated by commas. The methods of the Motorcycle class can therefore be called as in the following example:&lt;br /&gt;
&lt;br /&gt;
class TestMotorcycle : Motorcycle&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
public override double GetTopSpeed()&lt;br /&gt;
{&lt;br /&gt;
return 108.4;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
static void Main()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
TestMotorcycle moto = new TestMotorcycle();&lt;br /&gt;
&lt;br /&gt;
moto.StartEngine();&lt;br /&gt;
moto.AddGas(15);&lt;br /&gt;
moto.Drive(5, 20);&lt;br /&gt;
double speed = moto.GetTopSpeed();&lt;br /&gt;
Console.WriteLine("My top speed is {0}", speed);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Method Parameters vs. Arguments &lt;/span&gt;&lt;br /&gt;
The method definition specifies the names and types of any parameters that are required. When calling code calls the method, it provides concrete values called arguments for each parameter. The arguments must be compatible with the parameter type but the argument name (if any) used in the calling code does not have to be the same as the parameter named defined in the method. For example:&lt;br /&gt;
&lt;br /&gt;
public void Caller()&lt;br /&gt;
{&lt;br /&gt;
int numA = 4;&lt;br /&gt;
// Call with an int variable.&lt;br /&gt;
int productA = Square(numA);&lt;br /&gt;
&lt;br /&gt;
int numB = 32;&lt;br /&gt;
// Call with another int variable.&lt;br /&gt;
int productB = Square(numB);&lt;br /&gt;
&lt;br /&gt;
// Call with an integer literal.&lt;br /&gt;
int productC = Square(12);&lt;br /&gt;
&lt;br /&gt;
// Call with an expression that evaulates to int.&lt;br /&gt;
productC = Square(productA * 3);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int Square(int i)&lt;br /&gt;
{&lt;br /&gt;
// Store input argument in a local variable.&lt;br /&gt;
int input = i;&lt;br /&gt;
return input * input;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Passing by Reference vs. Passing by Value &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
By default, when a value type is passed to a method, a copy is passed instead of the object itself. Therefore, changes to the argument have no effect on the original copy in the calling method. You can pass a value-type by reference by using the ref keyword. For more information, see Passing Value-Type Parameters . For a list of built-in value types.&lt;br /&gt;
&lt;br /&gt;
Reference types are passed by reference. When an object of a reference type is passed to a method, the reference points to the original object, not a copy. Changes made through this reference will therefore be reflected in the calling method. A reference type is created by using the class keyword as in the following example:&lt;br /&gt;
&lt;br /&gt;
public class SampleRefType&lt;br /&gt;
{&lt;br /&gt;
public int value;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, if an object that is based on this type is passed to a method, the object will be passed by reference. For example:&lt;br /&gt;
&lt;br /&gt;
public static void TestRefType()&lt;br /&gt;
{&lt;br /&gt;
SampleRefType rt = new SampleRefType();&lt;br /&gt;
rt.value = 44;&lt;br /&gt;
ModifyObject(rt);&lt;br /&gt;
Console.WriteLine(rt.value);&lt;br /&gt;
}&lt;br /&gt;
static void ModifyObject(SampleRefType obj)&lt;br /&gt;
{&lt;br /&gt;
obj.value = 33;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Return Values &lt;/span&gt;&lt;br /&gt;
Methods can return a value to the caller. If the return type, the type listed before the method name, is not void, the method can return the value by using the return keyword. A statement with the return keyword followed by a value that matches the return type will return that value to the method caller. The return keyword also stops the execution of the method. If the return type is void, a return statement without a value is still useful to stop the execution of the method. Without the return keyword, the method will stop executing when it reaches the end of the code block. Methods with a non-void return type are required to use the return keyword to return a value. For example, these two methods use the return keyword to return integers:&lt;br /&gt;
&lt;br /&gt;
int result = obj.AddTwoNumbers(1, 2);&lt;br /&gt;
result = obj.SquareANumber(result);&lt;br /&gt;
// The result is 9.&lt;br /&gt;
Console.WriteLine(result)&lt;br /&gt;
&lt;br /&gt;
source: &lt;a href="http://www.blogger.com/MSDN%20http://msdn.microsoft.com/en-us/library/ms173114.aspx"&gt;MSDN &lt;/a&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>