<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>aspnet &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/aspnet/</link>
	<description>Feed of posts on WordPress.com tagged "aspnet"</description>
	<pubDate>Tue, 17 Nov 2009 06:05:22 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Using Enum in Gridview in Asp.net]]></title>
<link>http://pankajlalwani.wordpress.com/2009/11/17/using-enum-in-gridview-in-asp-net/</link>
<pubDate>Tue, 17 Nov 2009 05:25:18 +0000</pubDate>
<dc:creator>pankajlalwani</dc:creator>
<guid>http://pankajlalwani.wordpress.com/2009/11/17/using-enum-in-gridview-in-asp-net/</guid>
<description><![CDATA[Lets say we want to bind a gridview with table having Fields 1) Customer Name 2) Category Now in the]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Lets say we want to bind a gridview with table having Fields</p>
<p>1) Customer Name</p>
<p>2) Category</p>
<p>Now in the database Category field is stored as tiny int like 0 or 1 or 2</p>
<p>0 Stands for Sales</p>
<p>1 Stands for Marketing</p>
<p>2 Stands for Production</p>
<p>So, now when the gridview is bind, it will display o,1 values. instead of this we want their respective category name to be displayed.</p>
<p>For this we define a ENUM as follows</p>
<p>public enum Category<br />
{</p>
<p>Sales= 0,</p>
<p>Marketing= 1,</p>
<p>Production= 2<br />
}</p>
<p>Now in the gridview source in the template field write this code.</p>
<p>&#60;asp:TemplateField HeaderText=&#8221;Category&#8221;&#62;<br />
&#60;ItemTemplate&#62;<br />
&#60;div&#62;<br />
&#60;%# Enum.GetName(typeof(GlobalLibrary.Constants.Category),Convert.ToInt32(Eval(&#8220;Category&#8221;))) %&#62;<br />
&#60;/div&#62;<br />
&#60;/ItemTemplate&#62;<br />
&#60;/asp:TemplateField&#62;</p>
<p>Here in Globallibray.Constants is my project with Constants Class.. you can replace it with yours..</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to improve AJAX page Speed with 5 easy steps]]></title>
<link>http://indiandotnet.wordpress.com/2009/11/15/how-to-improve-ajax-page-speed-with-5-easy-steps/</link>
<pubDate>Sun, 15 Nov 2009 12:27:26 +0000</pubDate>
<dc:creator>indiandotnet</dc:creator>
<guid>http://indiandotnet.wordpress.com/2009/11/15/how-to-improve-ajax-page-speed-with-5-easy-steps/</guid>
<description><![CDATA[Hello friends, Many times we face the Ajax speed problem. Our AJAX page is very slow. So here I am w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hello friends,</p>
<p>Many times we face the Ajax speed problem. Our AJAX page is very slow.</p>
<p>So here I am with  five valuable tips checkout if it helps you some where. </p>
<p><strong>1)      </strong><strong>EnablePartialRendering:-</strong></p>
<p> Make enable partial rendering = true in script manager</p>
<p>Its syntax is as shown below</p>
<p>“&#60;asp:ScriptManager ID=&#8221;scm&#8221; runat=&#8221;server&#8221;  EnablePartialRendering =&#8221;true&#8221;   &#62;”</p>
<p>It enable partial rendering so use does n’t have to wait a long for page.</p>
<p>Remember its useful only when you have multiple panel update. </p>
<p><strong>2)      </strong><strong>Script Refrence Profiler dll:-</strong></p>
<p>This is one of the most important DLL by which you can imporve your page performance.</p>
<p>Its simple in use you have to do just drag and drop Script refrence profiler in Div. Then run the page it will give you all refrence Scripts.</p>
<p>As shown below fig.</p>
<p> <a href="http://indiandotnet.wordpress.com/files/2009/11/scriptrefrence1.png"><img class="alignnone size-medium wp-image-256" title="ScriptRefrence1" src="http://indiandotnet.wordpress.com/files/2009/11/scriptrefrence1.png?w=300" alt="ScriptRefrence1" width="482" height="84" /></a></p>
<p> Just copy this and page in script tag of Script manager as shown below.</p>
<p>&#60;asp:ScriptManager ID=&#8221;scm&#8221; runat=&#8221;server&#8221;  EnablePartialRendering =&#8221;true&#8221;   &#62;</p>
<p>    &#60;Scripts&#62;</p>
<p>&#60;asp:ScriptReference path=&#8221;../Includes/Scripts/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js&#8221;/&#62;</p>
<p>&#60;/script&#62;</p>
<p>&#60;/asp:scriptManager&#62; </p>
<p><strong>3)      </strong><strong>Script Mode=”Release”:-</strong> </p>
<p>Try to make script mode always release for better performance.</p>
<p>You have to do following setting</p>
<p>&#60;asp:ScriptManager ID=&#8221;scm&#8221; runat=&#8221;server&#8221;  ScriptMode =&#8221;Release&#8221;&#62;</p>
<p> <strong>4)      </strong><strong>LoadScriptBeforeUI=”false”:-</strong></p>
<p>This should be false for better result. When you do this then screen comes fast.</p>
<p> <strong>5)      </strong><strong>Composite Script:-</strong></p>
<p><strong> </strong>If you are using Asp.net 3.5 with service pack 1 then there will be a nice tag which is called Composite script tag.</p>
<p>By the name its clear that it composite all the script its syntax is as follows.</p>
<p>&#60;asp:ScriptManager ID=&#8221;scm&#8221; runat=&#8221;server&#8221;  ScriptMode =&#8221;Release&#8221;&#62;</p>
<p>&#60;CompositeScript ScriptMode =&#8221;Release&#8221;&#62;</p>
<p>     &#60;Scripts&#62;</p>
<p>        &#60;asp:ScriptReference Name=&#8221;MicrosoftAjax.js&#8221; ScriptMode=&#8221;Auto&#8221; Path=&#8221;../Includes/Scripts/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js&#8221;&#62;</p>
<p>        &#60;/asp:ScriptReference&#62;</p>
<p>        &#60;asp:ScriptReference Name=&#8221;MicrosoftAjax.debug.js&#8221; ScriptMode=&#8221;Auto&#8221; Path=&#8221;../Includes/Scripts/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js&#8221;&#62;</p>
<p>        &#60;/asp:ScriptReference&#62;</p>
<p>        &#60;/script&#62;</p>
<p>&#60;/compositeScript&#62;</p>
<p> If you find any error related size then just concentrate on following link its very good to solve that kind of problem.</p>
<p><a href="http://bellouti.wordpress.com/2008/09/14/combining-javascript-files-with-ajax-toolkit-library/">http://bellouti.wordpress.com/2008/09/14/combining-javascript-files-with-ajax-toolkit-library/</a></p>
<p> So ,friends in this way we improve our AJAX Page.</p>
<p>I hope you like this so enjoy AJAX.</p>
<p> Thanks</p>
<p>Rajat Jaiswal</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Some useful Terminology (acronyms)]]></title>
<link>http://indiandotnet.wordpress.com/2009/11/14/some-useful-terminology-acronyms/</link>
<pubDate>Sat, 14 Nov 2009 05:22:37 +0000</pubDate>
<dc:creator>indiandotnet</dc:creator>
<guid>http://indiandotnet.wordpress.com/2009/11/14/some-useful-terminology-acronyms/</guid>
<description><![CDATA[Hello friends, Cheers! Here I am with some useful terminology and these acronyms are generally used ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hello friends,<br />
Cheers!<br />
Here I am with some useful terminology and these acronyms are generally used now days in broad way take a look.<br />
1) <strong>ESB </strong>: Enterprise Service Bus<br />
2) <strong>POX </strong>: Plain OLD XML<br />
3) <strong>REST</strong>: Representational State Transfer<br />
4) <strong>SOAP</strong>: Simple Object Access Protocol<br />
5) <strong>RIA </strong>: Rich Internet Application<br />
6) <strong>XML </strong>: Extensible Markup Language<br />
7) <strong>JASON</strong>: Java Script Object Notation<br />
 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> <strong>DOM </strong>: Document Object Modeling<br />
9) <strong>XAML </strong>: Extensible Application Markup Language<br />
10) <strong>LINQ </strong>: Language Integrated Query<br />
11) <strong>RSS</strong>: Really Simple Syndication<br />
12) <strong>WCF</strong>: Windows Communication Foundation<br />
13) <strong>WF</strong>: Windows Foundation<br />
14) <strong>WPF</strong>: Windows Presentation Foundation<br />
15) <strong>AJAX</strong>: Asynchronous Java script and XML<br />
16) <strong>XLST</strong>: Extensible Style Sheet Language Transformation<br />
17) <strong>INDIGO</strong>: Code name of Microsoft windows Communication foundation Technology<br />
18) <strong>OSLO</strong>: Code name of Microsoft Modeling Technology<br />
19) <strong>SOA</strong>: Service Oriented Architecture<br />
20) <strong>ORCAS</strong>: dot net 3.5 Version called ORCAS<br />
21) <strong>AVALON</strong>: code name of Microsoft Windows Presentation foundation Technology<br />
22) <strong>Azure</strong>: Microsoft new Operation system Related to Cloud computing<br />
23) <strong>Astoria </strong>: Code name of Ado.net Data services</p>
<p>I hope you people like it.<br />
Enjoy life with dot net.</p>
<p>Your host<br />
Rajat Jaiswal</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Walkin on November 14/15 - Saturday and Sunday]]></title>
<link>http://walkinjobs.wordpress.com/2009/11/13/walkin-on-november-1415-saturday-and-sunday/</link>
<pubDate>Fri, 13 Nov 2009 18:05:03 +0000</pubDate>
<dc:creator>Walkin Jobs</dc:creator>
<guid>http://walkinjobs.wordpress.com/2009/11/13/walkin-on-november-1415-saturday-and-sunday/</guid>
<description><![CDATA[Hi Friends, Walk-in interviews for jobs &#8211; 14/11/09 and 15/11/09 &#8211; Nov 14/15 &#8211; Sat/]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hi Friends, Walk-in interviews for jobs &#8211; 14/11/09 and 15/11/09 &#8211; Nov 14/15 &#8211; Sat/sun.</p>
<p><strong>Hot Walkins [Sourced by Company HR Directly]:</strong></p>
<table style="width:564px;height:148px;">
<tbody>
<tr>
<td valign="top"><a title="Designer (Flash Designing , Web Designing , Logo and Image Designing ) Skills : latest, creative and innovative design making with quality and international standards Exp : 1 - 2 yrs Location : chennai Walkin on 11-14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Designer-Flash-Designing-Web-Designing-Logo-and-Image-Designing.html" target="_blank"><strong>Designer (Flash Designing , Web Designing , Logo and Image Designing )</strong></a><br />
<a title="Fresher/Trainee/Career/Final year students Skills : java,j2ee,.net,c,c++,php Exp : Freshers Location : chennai Walkin on 11-11/12/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Fresher-Trainee-Career-Final-year-students-Chennai.html" target="_blank"><strong>Fresher/Trainee/Career/Final year students</strong></a><br />
<a title="WALK-IN Cash Posters/Charge Entry Specialists Skills : MS Word/Excel Exp : 1 - 3 yrs Location : Chennai Walkin on 11-14/11/2009" href="http://www.walkinsindia.com/non_it_walkin/walkins/WALK-IN-Cash-Posters-Charge-Entry-Specialists.html" target="_blank"><strong>WALK-IN Cash Posters/Charge Entry Specialists</strong></a><br />
<a title="WALK-IN Call Centre Executives - Chennai Skills : MS Word/Excel Exp : 1 - 3 yrs Location : Chennai Walkin on 11-14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/WALK-IN-Call-Centre-Executives-Chennai-Nov11-14.html" target="_blank"><strong>WALK-IN Call Centre Executives &#8211; Chennai</strong></a><br />
<a title="WALK-IN FOR AR Analysts - Chennai Skills : Good Communication/Typing Skills/MS Word/Excel Exp : 1 - 3 yrs Location : Chennai Walkin on 11-14/11/2009" href="http://www.walkinsindia.com/non_it_walkin/walkins/WALK-IN-FOR-AR-Analysts-Chennai-Nov-11-14.html" target="_blank"><strong>WALK-IN FOR AR Analysts &#8211; Chennai</strong></a><br />
<a title="FRESHERS OPENING IN CMC - Chennai - Nov 6-14 Skills : C,C++ Exp : Freshers Location : Chennai Walkin on 06-14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/FRESHERS-OPENING-IN-CMC-Chennai-Nov-6-14.html" target="_blank"><strong>FRESHERS OPENING IN CMC &#8211; Chennai &#8211; Nov 6-14</strong></a><br />
<a title="Walkin for .Net Developer Chennai - Nov 5 to Dec 4 Skills : .Net, C#, SQL Server Exp : 2 - 5 yrs Location : Chennai Walkin on 05-04/12/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walkin-for-Net-Developer-Chennai-Nov-5-to-Dec-4.html" target="_blank"><strong>Walkin for .Net Developer Chennai &#8211; Nov 5 to Dec 4</strong></a><br />
<a title="Walkin - Software Engineer - PHP - Nov 15 Pune Skills : PHP, LAMP, Web Development, JavaScript, HTML, CSS, .NET, PERL, Web Services, Web 2.0, MySql, SQL Exp : 4 - 10 yrs Location : Mumbai Walkin on 15/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walkin-SoftwareEngineer-PHP-Nov-15-Pune.html" target="_blank"><strong>Walkin &#8211; Software Engineer &#8211; PHP &#8211; Nov 15 Pune</strong></a><br />
<a title="IBM DB2DBA , DataStage professionals required - Urgent Skills : IBM DB2DBA , DataStage professionals required - Urgent Exp : Freshers Location : chennai,tamilnadu,india Walkin on 29-28/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/IBM-DB2DBA-DataStage-professionals-required-Urgent.html" target="_blank"><strong>IBM DB2DBA , DataStage professionals required &#8211; Urgent</strong></a></td>
</tr>
</tbody>
</table>
<p>Walkin Interviews at TOP companies of India &#8211; November 14/15 2009 (nov 14th/15th &#8211; sat/sun)</p>
<table border="0" cellspacing="0" cellpadding="3" width="98%" align="center">
<tbody>
<tr>
<td valign="top"><a title="Dot net / Sharepoint / Flex Walkin @ Gateway in Ahmedabad on 13/14/15 Nov 2009 Skills : Dot net / Sharepoint/ Flex Exp : 3 - 6 yrs Location : Ahmedabad Walkin on 13-15/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Dot-net-Sharepoint-Flex-Walkin-at-Gateway-in-Ahmedabad-on-13-14-15-Nov-2009.html" target="_blank"><strong>Dot net / Sharepoint / Flex Walkin @ Gateway in Ahmedabad on 13/14/15 Nov 2009</strong></a><br />
<a title="Walkin @ CTS in Bangalore on 14th Nov 2009 Skills : WebMoethods / Telecom Testing / DotNet / Java Exp : 5 - 10 yrs Location : Bengaluru/Bangalore Walkin on 14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walkin-at-CTS-in-Bangalore-on-14th-Nov-2009.html" target="_blank"><strong>Walkin @ CTS in Bangalore on 14th Nov 2009</strong></a><br />
<a title="Walkin for Senior JAVA J2EE Professionals on SATURDAY ( 14 Nov) Skills : JAVA Exp : 8 - 13 yrs Location : Bangalore Walkin on 14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walkin-for-Senior-JAVA-J2EE-Professionals-on-SATURDAY-14-Nov.html" target="_blank"><strong>Walkin for Senior JAVA J2EE Professionals on SATURDAY ( 14 Nov)</strong></a><br />
<a title="Walkin for Senior .Net Professionals on SATURDAY ( 14 Nov ) Skills : .NET Exp : 8 - 13 yrs Location : Bangalore Walkin on 14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walkin-for-Senior-Net-Professionals-on-SATURDAY-14-Nov.html" target="_blank"><strong>Walkin for Senior .Net Professionals on SATURDAY ( 14 Nov )</strong></a><br />
<a title="WALK-IN AT HCL HYD FOR .NET,SDET PROFESSIONALS ON 14 NOV Skills : C#, .NET, SQL Server / SDET / SQL DBA / MOSS Exp : 3 - 8 yrs Location : Hyderabad / Noida Walkin on 14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/WALK-IN-AT-HCL-HYD-FOR-NET-SDET-PROFESSIONALS-ON-14-NOV.html" target="_blank"><strong>WALK-IN AT HCL HYD FOR .NET,SDET PROFESSIONALS ON 14 NOV</strong></a><br />
<a title=".NET Walkin at HCL Chennai - Nov 14 " href="http://www.walkinsindia.com/it_walkin/walkins/DOT-NET-Walkin-at-HCL-Chennai-Nov-14-09.html" target="_blank"><strong>.NET Walkin at HCL Chennai &#8211; Nov 14 &#8216;09</strong></a><br />
<a title="Customer Care Executive - Voice - Walkin at Patni - Nov 11-18 Skills : Voice - Excellent English Communication Skills Exp : 0 - 2 yrs Location : Delhi, Delhi/NCR Walkin on 12-18/11/2009" href="http://www.walkinsindia.com/non_it_walkin/walkins/Customer-Care-Executive-Voice-Walkin-at-Patni-Nov-11-18.html" target="_blank"><strong>Customer Care Executive &#8211; Voice &#8211; Walkin at Patni &#8211; Nov 11-18</strong></a><br />
<a title="Core JAVA Walkin (n/w domain) - HCL Chennai - Nov 14 " href="http://www.walkinsindia.com/it_walkin/walkins/Core-JAVA-Walkin-n-w-domain-HCL-Chennai-Nov-14-09.html" target="_blank"><strong>Core JAVA Walkin (n/w domain) &#8211; HCL Chennai &#8211; Nov 14 &#8216;09</strong></a><br />
<a title="Walk-ins for Mainframe Professionals @ iGATE Hyd - 10th-14th Nov 09 Skills : COBOL, JCL, DB2 Exp : 2 - 4 yrs Location : Hyderabad Walkin on 10-14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walk-ins-for-Mainframe-Professionals-iGATE-Hyd-10th-14th-Nov-09.html" target="_blank"><strong>Walk-ins for Mainframe Professionals @ iGATE Hyd &#8211; 10th-14th Nov 09</strong></a><br />
<a title="Walkin - Insurance ( Voice) - Bangalore - Nov 10 11 Skills : Insurance ( Voice) Exp : 1 - 2 yrs Location : Bangalore Walkin on 10,11/11/2009" href="http://www.walkinsindia.com/non_it_walkin/walkins/Walkin-Insurance-Voice-Bangalore-Nov-10-11.html" target="_blank"><strong>Walkin &#8211; Insurance ( Voice) &#8211; Bangalore &#8211; Nov 10 11</strong></a><br />
<a title="Walkin for Freshers - Infy BPO Bhubaneswar - Nov 14 15 - for Bangalore n Pune Skills : BPO - Voice Process / Accounts n Finance Process Exp : 0 - 2 yrs Location : Bangalore / Pune Walkin on 14,15/11/2009" href="http://www.walkinsindia.com/non_it_walkin/walkins/Walkin-for-Freshers-Infy-BPO-Bhubaneswar-Nov-14-15-for-Bangalore-n-Pune.html" target="_blank"><strong>Walkin for Freshers &#8211; Infy BPO Bhubaneswar &#8211; Nov 14 15 &#8211; for Bangalore n Pune</strong></a><br />
<a title="Walkin for Sr .Net Professionals - Bangalore - Nov 14 Skills : Asp.net, c#, silverlight, wcf, wpf Exp : 4 - 8 yrs Location : Bangalore Walkin on 14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Walkin-for-Sr-Net-Professionals-Bangalore-Nov-14.html" target="_blank"><strong>Walkin for Sr .Net Professionals &#8211; Bangalore &#8211; Nov 14</strong></a><br />
<a title="Scheduled Walk-in for Siebel EAI/ Siebel Config/Siebel EIM - CTS - Blr Nov 14 Skills : Siebel EAI/ Siebel Config/Siebel EIM Exp : 3 - 10 yrs Location : Bangalore Walkin on 14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Scheduled-Walk-in-for-Siebel-EAI-Siebel-Config-Siebel-EIM-CTS-Blr-Nov-14.html" target="_blank"><strong>Scheduled Walk-in for Siebel EAI/ Siebel Config/Siebel EIM &#8211; CTS &#8211; Blr Nov 14</strong></a><br />
<a title="Desktop Engineer Walkin @ PCS in Bangalore on 9/10/11/12/13/14 Nov 2009 Skills : Desktop Support Engineer Exp : 2 - 4 yrs Location : Bangalore and kerala Walkin on 09-14/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Desktop-Engineer-Walkin-at-PCS-in-Bangalore-on-9-10-11-12-13-14-Nov-2009.html" target="_blank"><strong>Desktop Engineer Walkin @ PCS in Bangalore on 9/10/11/12/13/14 Nov 2009</strong></a><br />
<a title="Freshers Walkin @ Capgemini in Bangalore Skills : Java/.net/Oracle Exp : 0 - 1 yrs Location : Bangalore, Chennai, Hyderabad, Mumbai Walkin on 28-10/11/2009" href="http://www.walkinsindia.com/it_walkin/walkins/Freshers-Walkin-at-Capgemini-in-Bangalore.html" target="_blank"><strong>Freshers Walkin @ Capgemini in Bangalore</strong></a></td>
</tr>
</tbody>
</table>
<p>More Walkins ? <a href="http://jumbowalkin.com"><strong>http://jumbowalkin.com</strong></a></p>
<p>Good luck and a great weekend!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to Get the Record Count of SQLDataSource?]]></title>
<link>http://yrbyogi.wordpress.com/2009/11/13/how-to-get-the-record-count-of-sqldatasource/</link>
<pubDate>Fri, 13 Nov 2009 09:32:31 +0000</pubDate>
<dc:creator>yrbyogi</dc:creator>
<guid>http://yrbyogi.wordpress.com/2009/11/13/how-to-get-the-record-count-of-sqldatasource/</guid>
<description><![CDATA[To get the Record Count or Row Count returned by SQLDataSource control, we have to use DataSourceSel]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>To get the Record Count or Row Count returned by SQLDataSource control, we have to use DataSourceSelectArgument class.</p>
<p>Create an object to the DataSourceSelectArgument class, set its RetrieveTotalRowCount property to true and by using a DataView we can retrieve the Row Count of the SQLDataSource object. The sample block of code is given below. Try it.</p>
<p>DataSourceSelectArguments dssa = new DataSourceSelectArguments();<br />
dssa.AddSupportedCapabilities(DataSourceCapabilities.RetrieveTotalRowCount);<br />
dssa.RetrieveTotalRowCount = true;<br />
DataView dv = (DataView)SqlDataSource1.Select(dssa);<br />
Response.Write(&#8220;No of Records : &#8221; + dv.Table.Rows.Count);</strong></p>
<p>&#160;</p>
<p><strong>&#8211;</strong></p>
<p><strong>happy programming</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Using LINQ to query object hierarchies]]></title>
<link>http://yrbyogi.wordpress.com/2009/11/13/using-linq-to-query-object-hierarchies/</link>
<pubDate>Fri, 13 Nov 2009 07:02:29 +0000</pubDate>
<dc:creator>yrbyogi</dc:creator>
<guid>http://yrbyogi.wordpress.com/2009/11/13/using-linq-to-query-object-hierarchies/</guid>
<description><![CDATA[I used LINQ to solve the following problem: find all titles of objects at hierarchy level X when you]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I used LINQ to solve the following problem: find all titles of objects at hierarchy level X when you know object ID in hierarchy level Y. I cannot imagine if there is some other solution that is same short and clear as one that LINQ provides. Take a look and decide by yourself.</p>
<p><img style="display:inline;border-width:0;margin:0 0 10px 10px;" title="linq-levels-example" src="http://weblogs.asp.net/blogs/gunnarpeipman/linqlevelsexample_4CA093D8.png" border="0" alt="linq-levels-example" width="249" height="207" align="right" /> Here is simple diagram with my entities. Here are my simple rules. Level1 has no parent level and my contain one ore more Level2 entities. Level2 entities have one Level1 parent and one or more Level3 enitities. Level3 entities have one Level2 parent entity and collection of one or more Items. So there is many-to-many relationship between Level3 and Items.</p>
<p>We cannot use composite pattern here because these classes will be very different and there will be no point where we need one common interface for them. That’s why we have one class per level. Also the number of levels is fixed and there is no plan to expand this hierarchy.</p>
<p>By the way, you can model arbitrary class hierarchies on this model and still use this example (as long as it doesn’t hurt performance and you are really sure what you are doing).</p>
<p><strong>Excercise:</strong> having Level1 items collection and knowing Level3 item ID find all Items for specified Level3 item and return string of their titles separated by comma. As you don’t have access to source code of data source you must use IList&#60;Level1&#62; and LINQ.</p>
<p>We will use simple class structure given below and we expect that we already got list of Level1 items from some repository or data context.</p>
<p>&#160;</p>
<hr size="1" />
<p>&#160;</p>
<div style="background:white none repeat scroll 0 0;font-family:courier new;color:black;font-size:10pt;">
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Level1</span></p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">int</span> Id { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">string</span> Title { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:#2b91af;">IList</span>&#60;<span style="color:#2b91af;">Level2</span>&#62; Level2Items { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;">}</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Level2</span></p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">int</span> Id { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">string</span> Title { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:#2b91af;">Level1</span> Parent { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:#2b91af;">IList</span>&#60;<span style="color:#2b91af;">Level3</span>&#62; Level3Items { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;">}</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Level3</span></p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">int</span> Id { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">string</span> Title { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:#2b91af;">Level2</span> Parent { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:#2b91af;">IList</span>&#60;<span style="color:#2b91af;">Item</span>&#62; Items { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;">}</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Item</span></p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">int</span> Id { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">string</span> Title { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }</p>
<p style="margin:0;">}</p>
<p style="margin:0;">
<p style="margin:0;">===</p>
<p style="margin:0;">
<p>&#160;</p>
<hr size="1" /></div>
<p>Now it’s time to write some hardcore loops and create a cool code-hell… or maybe it’s time to be elegant and use LINQ as stated before. Using LINQ we can provide the following solution:</p>
<div style="background:white none repeat scroll 0 0;font-family:courier new;color:black;font-size:10pt;">
<hr size="1" />
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">string</span> GetItemsStringForLevel3(<span style="color:#2b91af;">IList</span>&#60;<span style="color:#2b91af;">Level1</span>&#62; level1Items, <span style="color:blue;">int</span> level3Id)</p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">var</span> items = <span style="color:blue;">from</span> l <span style="color:blue;">in</span> level1Items</p>
<p style="margin:0;"><span style="color:blue;">from</span> l2 <span style="color:blue;">in</span> l.Level2Items</p>
<p style="margin:0;"><span style="color:blue;">from</span> l3 <span style="color:blue;">in</span> l2.Level3Items</p>
<p style="margin:0;"><span style="color:blue;">from</span> p <span style="color:blue;">in</span> l3.Items</p>
<p style="margin:0;"><span style="color:blue;">where</span> l3.Id == level3Id</p>
<p style="margin:0;"><span style="color:blue;">select</span> p.Title;</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">return</span> <span style="color:blue;">string</span>.Join(<span style="color:#a31515;">&#8220;, &#8220;</span>, items.ToArray());</p>
<p style="margin:0;">}</p>
<p style="margin:0;">&#8211;</p>
<p style="margin:0;">Happy Programming</p>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Antixss med valfria html-taggar]]></title>
<link>http://patrikc.wordpress.com/2009/11/12/antixss-med-valfria-html-taggar/</link>
<pubDate>Thu, 12 Nov 2009 20:28:14 +0000</pubDate>
<dc:creator>patrik</dc:creator>
<guid>http://patrikc.wordpress.com/2009/11/12/antixss-med-valfria-html-taggar/</guid>
<description><![CDATA[Antixss är ett bra säkerhetsbibliotek för att undvika problem med xss. Jag vill här visa hur du kan ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://www.codeplex.com/antixss" target="_blank">Antixss</a> är ett bra säkerhetsbibliotek för att undvika problem med <a href="http://patrikc.wordpress.com/2009/05/13/xss-cross-site-scripting/">xss</a>. Jag vill här visa hur du kan använda antixss i kombination med lite egen kod för att kunna styra vilka taggar som skall få visas på sidan och inte. Exempelvis kanske man vill tillåta &#60;img&#62;-taggen men inte &#60;div&#62; eller &#60;font&#62;.<!--more  --></p>
<p>När antixss släpptes i <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=051ee83c-5ccf-48ed-8463-02f56a6bfc09&#38;displaylang=en" target="_blank">version 3.1</a> kom även en rad nyheter. Bland annat Security Runtime Engine (SRE) som är en http modul som du helt enkelt lägger in i ditt asp.net projekt, konfigurerar att den skall skydda dina sidor och då får du direkt ett bra skydd mot xss-attacker.</p>
<p>Jag vill gärna kunna vara mer flexibel och exempelvis skydda bara delar av en sida. Det är också möjligt med antixss version 3.1 genom metoderna GetSafeHtml() och GetSafeHtmlFragment(). </p>
<p>Det fina med GetSafeHtml är att den tar bort all eventuell skadlig kod, men förutom det så åtgärdar den även så all html blir korrekt.<br />
Om vi exempelvis skickar in <strong>&#60;/div&#62;&#60;/div&#62;&#60;/div&#62;</strong> till GetSafeHtml, så kommer den att returnera <strong>&#60;div&#62;&#60;/div&#62;&#60;div&#62;&#60;/div&#62;&#60;div&#62;&#60;/div&#62;</strong>. Detta gör den givetvis eftersom innehållet från en textbox kanske presenteras mitt i en sida bland andra div-element, vilket annars hade kunnat förstöra den övriga designen. Ett annat exempel är att den gör om <strong>&#60;p&#62;&#60;div&#62;&#60;/div&#62;&#60;/p&#62;</strong> till <strong>&#60;p&#62;&#60;/p&#62;&#60;div&#62;&#60;/div&#62;&#60;p&#62;&#60;/p&#62;</strong>, detta eftersom en &#60;p&#62;-tagg inte kan innehålla en div.</p>
<p>Det jag tycker är synd med GetSafeHtml är att man inte själv kan konfigurera vilka taggar som skall skrivas ut som vanlig html-kod och vilka som skall köras genom HtmlEncode(). Jag satt precis med en uppgift där jag behövde den funktionen.</p>
<p>Lösningen blev att jag först kör HtmlEncode på alla taggar förutom de som explicit skall vara tillåtna. När det är gjort kör jag GetSafeHtml på det resultatet. Jag använder mig av <a href="http://patrikc.wordpress.com/2009/06/01/avancerade-reguljara-uttryck/">reguljära uttryck</a> för att välja ut html-taggarna.</p>
<p>I mitt exempel nedan kommer den att skriva ut taggarna <strong>&#60;div&#62;,&#60;img&#62;</strong> och <strong>&#60;br&#62;</strong> med attribut på ett säkert sätt. </p>
<pre class="brush: csharp;">
String data = &#34;exempeltext.&#34;; //Hämta data från valfri källa.

//Endast dessa taggar skall skrivas ut som html-kod, alla andra taggar skall
//säkras via HtmlEncode()
String tags = &#34;div&#124;img&#124;br&#34;;
String pattern = String.Concat(@&#34;&#60;(?!/?(&#34;, tags, @&#34;)( .*?&#124;&#62;)).*?&#62;&#34;);

//Hämtar alla taggar som inte finns med i tags-variabeln
MatchCollection mc = Regex.Matches(data, pattern, RegexOptions.IgnoreCase);
foreach (Match match in mc)
{
    //Kör HtmlEncode på de taggar som hämtades med det reguljära uttrycket.
    data = data.Replace(match.Value, AntiXss.HtmlEncode(match.Value));
}

data = AntiXss.GetSafeHtml(data); //Kör GetSafeHtml på alla taggar som är kvar i vanlig html-form
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ASP.net: Programmatically Checking Items in a CheckBoxList]]></title>
<link>http://schleichermann.wordpress.com/2009/11/12/asp-net-programmatically-checking-items-in-a-checkboxlist/</link>
<pubDate>Thu, 12 Nov 2009 17:15:34 +0000</pubDate>
<dc:creator>schleichermann</dc:creator>
<guid>http://schleichermann.wordpress.com/2009/11/12/asp-net-programmatically-checking-items-in-a-checkboxlist/</guid>
<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; private void CheckItems() &#160;&#160;&#160;&#160;&#160;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div style="border-bottom:#cccccc 1pt solid;border-left:#cccccc 1pt solid;width:450px;font-family:courier new;background:black;color:white;font-size:10pt;overflow:auto;border-top:#cccccc 1pt solid;font-weight:bold;border-right:#cccccc 1pt solid;padding:1pt;">
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:#cc7832;">private</span> <span style="color:#cc7832;">void</span> CheckItems()</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:#cc7832;">foreach</span> (<span style="color:#cc7832;">string</span> item <span style="color:#cc7832;">in</span> itemsList)</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:#cc7832;">for</span> (<span style="color:#cc7832;">int</span> i = <span style="color:#6897bb;">0</span>; i &#60; ckblstItems.Items.Count; i++)</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:#cc7832;">if</span> (ckblstItems.Items[i].Text.Equals(item))</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ckblstItems.Items[i].Selected = <span style="color:#cc7832;">true</span>;</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</pre>
<pre style="margin:0;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</pre>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[WCAT Stress Test Tool ]]></title>
<link>http://thirul.wordpress.com/2009/11/12/wcat-stress-test-tool/</link>
<pubDate>Thu, 12 Nov 2009 16:38:43 +0000</pubDate>
<dc:creator>thirul</dc:creator>
<guid>http://thirul.wordpress.com/2009/11/12/wcat-stress-test-tool/</guid>
<description><![CDATA[I have tried to run WCAT stress test tool, but its not that easy and straight forward to get the res]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have tried to run WCAT stress test tool, but its not that easy and straight forward to get the results. Finally I have succeeded to run WCAT tool. Here is the procedure.</p>
<p>&#160;</p>
<p>1. Download WCAT 6.3  (<a href="http://www.iis.net/downloads/default.aspx?tabid=34&#38;g=6&#38;i=1466">http://www.iis.net/downloads/default.aspx?tabid=34&#38;g=6&#38;i=1466</a>)</p>
<p>2. Install WCAT tool</p>
<p>3. Create Two files called<strong> &#8217;scenario.ubr</strong>&#8216; and<strong> &#8217;settings.ubr&#8217;</strong> in WCAT Tool installed folder ( like C:\Program Files\wcat)</p>
<p>4. <strong>Scenario.ubr</strong> file content (sample)</p>
<p>&#160;</p>
<div id="_mcePaste"></div>
<div id="_mcePaste">scenario</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">warmup   = 30;</div>
<div id="_mcePaste">duration  = 120;</div>
<div id="_mcePaste">cooldown  = 100;</div>
<div id="_mcePaste">transaction</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">id = &#8220;test&#8221;;</div>
<div id="_mcePaste">weight = 1000;</div>
<div id="_mcePaste">request</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">url = &#8220;/AAA_ST/Web/Index.aspx&#8221;;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<p>&#160;</p>
<p>5. <strong>Settings.ubr</strong> file content ( sample)</p>
<p>&#160;</p>
<p>settings</p>
<p>{</p>
<p>clientfile = &#8220;scenario.ubr&#8221;;</p>
<p>server = &#8220;192.168.102.128&#8243;;</p>
<p>clients = 1;</p>
<p>virtualclients = 100;</p>
<p>&#160;</p>
<p>counters</p>
<p>{</p>
<p>interval = 10;</p>
<p>counter = &#8220;Processor(_Total)\\% Processor Time&#8221;;</p>
<p>counter = &#8220;Processor(_Total)\\% Privileged Time&#8221;;</p>
<p>counter = &#8220;Processor(_Total)\\% User Time&#8221;;</p>
<p>counter = &#8220;Processor(_Total)\\Interrupts/sec&#8221;;</p>
<p>counter = &#8220;Memory\\Available KBytes&#8221;;</p>
<p>counter = &#8220;Process(w3wp)\\Working Set&#8221;;</p>
<p>counter = &#8220;System\\Context Switches/sec&#8221;;</p>
<p>counter = &#8220;System\\System Calls/sec&#8221;;</p>
<p>counter = &#8220;Web Service(_Total)\\Bytes Received/sec&#8221; ;</p>
<p>counter = &#8220;Web Service(_Total)\\Bytes Sent/sec&#8221; ;</p>
<p>counter = &#8220;Web Service(_Total)\\Connection Attempts/sec&#8221; ;</p>
<p>counter = &#8220;Web Service(_Total)\\Get Requests/sec&#8221; ;</p>
<p>}</p>
<p>}</p>
<p>6. Open TWO command windows</p>
<p>7. In FIRST command window type following command:   &#8220;wcclient.exe 192.168.128 -b &#8221; where (192.168.102.128 is  your machine ip address)</p>
<p>8. In SECOND command window type following command:  &#8221;"wcctl.exe -t scenario.ubr -f settings.ubr -s 192.168.102.128 -singleip -extended&#8221; <span style="background-color:#ffffff;">where (192.168.102.128 is  your machine ip address)</span></p>
<p>&#160;</p>
<p>9. WCAT Test will  start and LOG File will created inn WCAT directory</p>
<p><span style="background-color:#ffffff;"><br />
</span></p>
<p>&#160;</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The interesting app_offline.htm file]]></title>
<link>http://jefferytay.wordpress.com/2009/11/12/the-interesting-app_offline-htm-file/</link>
<pubDate>Thu, 12 Nov 2009 12:07:13 +0000</pubDate>
<dc:creator>kwanann</dc:creator>
<guid>http://jefferytay.wordpress.com/2009/11/12/the-interesting-app_offline-htm-file/</guid>
<description><![CDATA[For those that&#8217;s still in the dark about this cool feature, here&#8217;s the lowdown on it. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>For those that&#8217;s still in the dark about this cool feature, here&#8217;s the lowdown on it.</p>
<p>&#160;</p>
<p>If you put a app_offline.htm file inside your asp.net application, on the next request, ASP.NET will shutdown the app domain and return the contents of the file in response to all dynamic asp.net requests. This way, you can easily take down your site for maintenance and updates and then bring it right up by deleting the file once you are done!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[e-grou develops its web document management solution with VWG]]></title>
<link>http://webgui20.wordpress.com/2009/11/12/e-grou-develops-its-web-document-management-solution-with-vwg/</link>
<pubDate>Thu, 12 Nov 2009 09:26:50 +0000</pubDate>
<dc:creator>webgui20</dc:creator>
<guid>http://webgui20.wordpress.com/2009/11/12/e-grou-develops-its-web-document-management-solution-with-vwg/</guid>
<description><![CDATA[e-grou is an online document management and workflow collaboration service that was developed using ]]></description>
<content:encoded><![CDATA[e-grou is an online document management and workflow collaboration service that was developed using ]]></content:encoded>
</item>
<item>
<title><![CDATA[Orchard - &iquest;un nuevo Cms? &iquest;un nuevo framework?]]></title>
<link>http://jdieguez.wordpress.com/2009/11/12/orchard-un-nuevo-cms-un-nuevo-framework/</link>
<pubDate>Thu, 12 Nov 2009 08:04:45 +0000</pubDate>
<dc:creator>jdieguez</dc:creator>
<guid>http://jdieguez.wordpress.com/2009/11/12/orchard-un-nuevo-cms-un-nuevo-framework/</guid>
<description><![CDATA[Desde hace días estamos leyendo que Microsoft tiene intención de iniciar un nuevo proyecto open-sour]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Desde hace días estamos leyendo que Microsoft tiene intención de iniciar un nuevo proyecto open-source enfocado a la gestión de contenidos(CMS), algo así como sucesor de <a href="http://www.codeplex.com/oxite"><strong>Microsoft Oxite</strong></a>(Oxite is an open source, web standards compliant, blog engine built on ASP.NET MVC). </p>
<p>El nuevo proyecto toma nombre de <strong>Orchard</strong>, detrás del proyecto se encuentra el equipo Microsoft que desarrollo Oxite.     <br /><img src="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=orchard&#38;DownloadId=91632&#38;Build=15987" /> </p>
<p>En la página en Codeplex leemos la definición del proyecto:</p>
<blockquote><p>Orchard is a free, open source, community-focused project aimed at delivering applications and reusable components on the ASP.NET platform.</p>
<p>In the near term, the Orchard project is focused on delivering a .NET-based CMS application that will allow users to rapidly create content-driven Websites, and an extensibility framework that will allow developers and customizers to provide additional functionality through extensions and themes.</p>
</blockquote>
<p>También podemos acceder al RoadMap del proyecto:   <br /><a href="http://orchard.codeplex.com/wikipage?title=features&#38;referringTitle=Home">http://orchard.codeplex.com/wikipage?title=features&#38;referringTitle=Home</a></p>
<p>&#160;</p>
<p><strong><em>Parece una iniciativa interesante que como fruto ofrecerá un CMS(framework) ligero y open-source para construir soluciones que incorporen gestión de contenidos.</em></strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Statement cannot appear within a method body. End of method assumed]]></title>
<link>http://yrbyogi.wordpress.com/2009/11/12/statement-cannot-appear-within-a-method-body-end-of-method-assumed/</link>
<pubDate>Thu, 12 Nov 2009 07:22:17 +0000</pubDate>
<dc:creator>yrbyogi</dc:creator>
<guid>http://yrbyogi.wordpress.com/2009/11/12/statement-cannot-appear-within-a-method-body-end-of-method-assumed/</guid>
<description><![CDATA[Today when I was developing web pages using asp.net,I encountered a problem as below: Server Error i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>Today when I was developing web pages using asp.net,I encountered a problem as below:</div>
<div><span class="Apple-style-span" style="font-weight:bold;"><span class="Apple-style-span" style="font-size:large;">Server Error in <strong>&#8216;/</strong></span></span><strong>BC30289</strong><span class="Apple-style-span" style="font-weight:bold;"><span class="Apple-style-span" style="font-size:large;"><strong>&#8216;</strong> Application.</span></span></div>
<div><span class="Apple-style-span" style="font-weight:bold;"><span class="Apple-style-span" style="font-size:large;"><br />
</span></span></div>
<div><span class="Apple-style-span" style="font-weight:bold;">Compilation Error Description:</span></div>
<div>An error occurred during the compilation of a resource required to service  this request. Please review the following specific error details and modify your  source code appropriately.</div>
<div></div>
<div><span class="Apple-style-span" style="font-weight:bold;">Compiler Error Message: </span></div>
<div>BC30289:  <span class="Apple-style-span" style="font-style:italic;">Statement cannot appear within a method body. End of method assumed.</span></div>
<div><span class="Apple-style-span" style="font-style:italic;"><br />
</span></div>
<div><span class="Apple-style-span" style="font-weight:bold;">Error Line: <span class="Apple-style-span" style="color:#ff0000;">Sub showImage(Byval id as string)</span></span></div>
<div>I replaced &#8220;&#60;% %&#62;&#8221; with</div>
<p>&#60;script language=&#8221;vbscript&#8221; runat=&#8221;server&#8221;&#62;&#60;/script&#62;</p>
<div>And then everything works fine.</div>
<div>That is because we cannot define asp &#8217;sub&#8217; or &#8216;function&#8217; between the body tag</div>
<div></div>
<div>
<p><strong>&#8211;</strong></p>
<p><strong>Happy Programming</strong></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[What is Maximum Request size for asp.net application?]]></title>
<link>http://yrbyogi.wordpress.com/2009/11/12/what-is-maximum-request-size-for-asp-net-application/</link>
<pubDate>Thu, 12 Nov 2009 06:06:03 +0000</pubDate>
<dc:creator>yrbyogi</dc:creator>
<guid>http://yrbyogi.wordpress.com/2009/11/12/what-is-maximum-request-size-for-asp-net-application/</guid>
<description><![CDATA[The default max request size is 4MB (4096). You can change a setting in your web.config to allow lar]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The default max request size is 4MB (4096).</p>
<p>You can change a setting in your web.config to allow larger requests.</p>
<p>Here is the example:</p>
<div>
<div>
<pre>   1: &#60;configuration&#62;</pre>
<pre>   2:        &#60;system.web&#62;</pre>
<pre>   3:            &#60;httpRuntime  maxRequestLength="4096"/&#62;</pre>
<pre>   4:        &#60;/system.web&#62;</pre>
<pre>   5: &#60;/configuration&#62;</pre>
</div>
</div>
<p>This is default setting, we have to change this to the size that you want to allow user to request like 10MB, 20MB…</p>
<p>&#160;</p>
<p>&#8212;&#8212;</p>
<p>Happy Programming</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Usando função JavaScript em Silverlight 3]]></title>
<link>http://flamoreira.wordpress.com/2009/11/11/usando-funcao-javascript-em-silverlight-3/</link>
<pubDate>Wed, 11 Nov 2009 23:39:32 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/11/usando-funcao-javascript-em-silverlight-3/</guid>
<description><![CDATA[Usando função JavaScript em Silverlight 3 Olá amigos mais um artigo! Estou trabalhando duro atualiza]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Usando função JavaScript em Silverlight 3</strong></p>
<p>Olá amigos mais um artigo!</p>
<p>Estou trabalhando duro <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  atualizando os artigos para Silverlight 3 e claro experimentando noVisual Studio 2010 Beta 2.  Já funciona, não é lindo ?.</p>
<p>Então o endereço do link é:</p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/63-usando-funcao-javascript-em-silverlight-.html">Usando função JavaScript em Silverlight</a></p>
<p>abraços,</p>
<p>Flavia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Senior Microsoft Developer - Central London - Upto £45k]]></title>
<link>http://calvinjnr.wordpress.com/2009/11/11/senior-microsoft-developer-central-london-upto-45k/</link>
<pubDate>Wed, 11 Nov 2009 17:38:16 +0000</pubDate>
<dc:creator>calvinjnr</dc:creator>
<guid>http://calvinjnr.wordpress.com/2009/11/11/senior-microsoft-developer-central-london-upto-45k/</guid>
<description><![CDATA[Leading creative digital agency in central London is looking for a senior Microsoft developer to joi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Leading creative digital agency in central London is looking for a senior Microsoft developer to join this team. Someone vocal who can participate in the creative process to provide insight right at the start about both opportunities offered by emerging technology but also knows when to put the brakes on a creative concept that isn’t feasible within budgets or technical constraints.</p>
<p>The successful candidate will have a wealth of experience with a range of Microsoft internet-related technologies, a passion for best practice and quality assurance. In return the successful candidate will have the opportunity to develop their career with a leading digital creative agency.</p>
<p>Key responsibilities:</p>
<p>• Take responsibility for technical development of the project.  Take part in creative discussions and steer those discussions in the most technically appropriate direction, recommending best technical approach.<br />
• Ensure that knowledge gained is always shared outwards to the teams and the company as a whole.<br />
• Ensure that the project is delivered to high standards of quality in all aspects including, but not limited to code, documentation, configuration management, source code control and best practice.<br />
• Owning the technical relationship with specific clients, this is a client-facing role where the successful candidate will be required to take part in a number of client meeting throughout project scope.</p>
<p>Required Knowledge and skills:<br />
• Microsoft .Net developer with experience of<br />
- C# (6 years)<br />
- ASP.Net (6 years)<br />
- Expression Studio &#38; Silverlight (1 year)<br />
- MS SQL Server (6 years)<br />
•    Accessibility and Usability issues relating to site development.<br />
•    Windows operating systems.<br />
•    Quality Assurance.<br />
•    Troubleshooting and Problem Resolution.<br />
•    Microsoft Internet Information Server (IIS) (6 years)<br />
•    Microsoft Visual Studio (6 years)</p>
<p>If you would like to be considered for this position or for a full job description, please send your CV and brief summary to neil@majorplayers.co.uk</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Como enviar email usando o Silverlight]]></title>
<link>http://flamoreira.wordpress.com/2009/11/11/como-enviar-email-usando-o-silverlight/</link>
<pubDate>Wed, 11 Nov 2009 13:25:38 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/11/como-enviar-email-usando-o-silverlight/</guid>
<description><![CDATA[Olá coloquei mais dois artigos, como enviar e-mail usando o silverlight !! veja os dois artigos em: ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá coloquei mais dois artigos, como enviar e-mail usando o silverlight !!</p>
<p>veja os dois artigos em:</p>
<p><a href="http://www.dowhile.com.br">dowhile</a></p>
<p>&#160;</p>
<p>Abraços,</p>
<p>Flávia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Microsoft Facebook SDK now officially supported]]></title>
<link>http://pavsaund.wordpress.com/2009/11/10/microsoft-facebook-sdk-now-officially-supported/</link>
<pubDate>Tue, 10 Nov 2009 21:34:29 +0000</pubDate>
<dc:creator>pavsaund</dc:creator>
<guid>http://pavsaund.wordpress.com/2009/11/10/microsoft-facebook-sdk-now-officially-supported/</guid>
<description><![CDATA[The Microsoft SDK for Facebook Platform has reached version 3.0 and is now officially supported by t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The <a href="http://team.silverlight.net/announcement/announcing-the-new-microsoft-sdk-for-facebook-platform/" target="_blank">Microsoft SDK for Facebook Platform</a> has reached version 3.0 and is now officially supported by the Facebook Development Team. The team <a href="http://developers.facebook.com/news.php?blog=1&#38;story=334" target="_blank">recently announced</a> this on their dev-blog, which is great news for all .NET developers wanting to develop applications against the <a href="http://developers.facebook.com/" target="_blank">Facebook Platform</a>.</p>
<blockquote><p>..This SDK contains rich social features and offers something for almost any kind of Facebook developer who is building with Microsoft technology, whether you&#8217;re implementing Facebook Connect or are building a Web-based or desktop application&#8230;</p></blockquote>
<p>Microsoft has also supplied a great <a href="http://msdn.microsoft.com/en-us/windows/ee388574.aspx" target="_blank">SDK Overview</a> that will get you started with facebook development in technologies like Silverlight, WinForms, WebForms /ASP.Net, ASP.Net MVC. There are several examples along with the documentation that should be more than sufficient to get the ball rolling.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Manually unit testing routes in ASP.Net MVC]]></title>
<link>http://coderaptor.wordpress.com/2009/11/10/manually-unit-testing-routes-in-asp-net-mvc/</link>
<pubDate>Tue, 10 Nov 2009 15:45:05 +0000</pubDate>
<dc:creator>Paul Vencill</dc:creator>
<guid>http://coderaptor.wordpress.com/2009/11/10/manually-unit-testing-routes-in-asp-net-mvc/</guid>
<description><![CDATA[Wow, been a while since I blogged anything.  I&#8217;ve honestly been intending on opening up a new ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Wow, been a while since I blogged anything.  I&#8217;ve honestly been intending on opening up a new blog site that isn&#8217;t hosted on wordpress (using my own domain, etc) but just haven&#8217;t gotten around to it. So I&#8217;ll post this here and then move it when I finally get around to setting up the new blog.</p>
<p>The issue of this post is really a gut-level demo of how to unit test routes. I know that MVC Contrib offers some good helpers for doing it, but I was recently preparing an ASP.Net MVC class and I wanted a way of showing the students exactly what goes into the routing engine&#8217;s logic, and I felt that manually setting up testing was a good way to walk them through it.</p>
<p>In order to maximize reuse, and reduce code and so on, I chose to create an abstract base class that handled all the wiring of routes and encapsulated a few common operations critical to testing.   The base class is intended as the base of your test class, and so whatever classes you&#8217;re testing routes with can inherit from it.  Much of the concepts used in creating this class are thanks to Steve Sanderson&#8217;s wonderful Pro ASP.Net MVC book by apress.</p>
<p>Why that and not extension methods?  Well, I simply wanted to have more control over the flow of logic to let each test be more focused. </p>
<p>Without further ado&#8230;</p>
<p>Routing, as you may know, involves both inbound and outbound steps.  Inbound routing happens when the system wants to take a URL that someone&#8217;s trying to surf to, and turn it into an object representing the routedata associated with that URL (e.g. info about the controller, action, any input params, etc).</p>
<p>Outbound routing is the opposite, generating URLs based on a given route data object.  Bidirectional testing is critical.  This abstract class supports both, using the Moq framework. </p>
<p>I&#8217;ll cover usage of my class for now, and save an understanding of what my class is doing for another post (though I think it should be pretty apparent; there&#8217;s not much magic in there). </p>
<p>To use this class, you just have to inherit from it, and implement one abstract method. </p>
<p><code><br />
[TestClass]<br />
public class MyRouteTests : RouteTestBase<br />
{<br />
protected override void RegisterRoutes(System.Web.Routing.RouteCollection cfg)<br />
{<br />
MvcApplication.RegisterRoutes(cfg);<br />
}<br />
}</code></p>
<p>that override lets you customize the means by which your app registers its routes.  In htis case, my demo app was using the static method provided by the default MVC template, but obviously I could use other means if needed.</p>
<p>Once I&#8217;ve done that, I would want to setup a test for an inbound route like so:</p>
<p><code><br />
[TestMethod]<br />
public void SlashGoesToHomeIndex()<br />
{<br />
//Arrange<br />
string path = "~/";</p>
<p>// Act<br />
RouteData data = GetRouteData(path);</p>
<p>// Assert<br />
CoreInboundUrlAsserts(data, "home", "index");<br />
}</code></p>
<p>Which (if you look at the base class) asserts that my route configuration returned a route data object, an dthat route data object mapped to the HomeController&#8217;s Index action.</p>
<p>Doing a simple outbout route test is similarly straightforward:</p>
<p><code><br />
[TestMethod]<br />
public void HomeIndexGoesToSlash()<br />
{<br />
//Arrange<br />
string expected = "/";<br />
var data = new { controller = "home", action = "index", id = "" };</p>
<p>// Act<br />
var virtualPath = GenerateUrlViaMock(data);</p>
<p>// Assert<br />
Assert.AreEqual(expected, virtualPath.VirtualPath);<br />
}<br />
</code></p>
<p>And finally, the whole base class looks like this:</p>
<p><code><br />
public abstract class RouteTestBase<br />
{<br />
protected const string GET = "GET";<br />
protected const string POST = "POST";</code></p>
<p>protected void CoreInboundUrlAsserts(RouteData data, string controller, string action)<br />
{<br />
Assert.IsNotNull(data, &#8220;NULL Route data was returned&#8221;);<br />
Assert.IsNotNull(data.Route, &#8220;No route was matched&#8221;);<br />
Assert.AreEqual(controller, data.Values["controller"].ToString(), true, &#8220;Wrong controller&#8221;);<br />
Assert.AreEqual(action, data.Values["action"].ToString(), true, &#8220;Wrong action&#8221;);<br />
}</p>
<p>protected RouteData GetRouteData(string path)<br />
{<br />
return GetRouteData(path, GET);<br />
}</p>
<p>protected RouteData GetRouteData(string path, string httpMethod)<br />
{<br />
RouteCollection cfg = new RouteCollection();<br />
RegisterRoutes(cfg);<br />
var ctx = MakeMockHttpContext(path,httpMethod);<br />
return cfg.GetRouteData(ctx.Object);<br />
}</p>
<p>protected abstract void RegisterRoutes(RouteCollection cfg);</p>
<p>protected Mock MakeMockHttpContext(string url)<br />
{<br />
return MakeMockHttpContext(url, GET);<br />
}</p>
<p>protected Mock MakeMockHttpContext(string url, string httpMethod)<br />
{<br />
var mockHttpContext = new Mock();<br />
MockRequest(url, mockHttpContext, httpMethod);</p>
<p>// Mock response<br />
MockResponse(mockHttpContext);</p>
<p>return mockHttpContext;<br />
}</p>
<p>protected virtual void MockResponse(Mock mockHttpContext)<br />
{<br />
var mockResponse = new Mock();<br />
mockHttpContext.Setup(c =&#62; c.Response).Returns(mockResponse.Object);<br />
mockResponse.Setup(r =&#62; r.ApplyAppPathModifier(It.IsAny())).Returns(r =&#62; r);<br />
MockResponseTestSetups(mockResponse);<br />
}</p>
<p>protected virtual void MockRequest(string url, Mock mockHttpContext, string method)<br />
{<br />
Mock mockRequest = new Mock();<br />
mockHttpContext.Setup(c =&#62; c.Request).Returns(mockRequest.Object);<br />
mockRequest.Setup(r =&#62; r.AppRelativeCurrentExecutionFilePath).Returns(url);<br />
mockRequest.Setup(r =&#62; r.RequestType).Returns(method);<br />
mockRequest.Setup(r =&#62; r.HttpMethod).Returns(method);<br />
MockRequestTestSetups(mockRequest);<br />
}</p>
<p>///<br />
/// When overridden in child classses, adds additional setups to customize the request mock<br />
///<br />
///<br />
protected virtual void MockRequestTestSetups(Mock mockRequest)<br />
{<br />
// default do nothing unless the subclass wants to<br />
}</p>
<p>///<br />
/// When overridden in child classses, adds additional setups to customize the response mock<br />
///<br />
///<br />
protected virtual void MockResponseTestSetups(Mock mockResponse)<br />
{<br />
// default do nothing unless the subclass wants to<br />
}</p>
<p>protected VirtualPathData GenerateUrlViaMock(object values)<br />
{<br />
// Arrange<br />
RouteCollection cfg = new RouteCollection();<br />
RegisterRoutes(cfg);<br />
var ctx = MakeMockHttpContext(null);<br />
RequestContext context = new RequestContext(ctx.Object, new RouteData());</p>
<p>// Act<br />
return cfg.GetVirtualPath(context, new RouteValueDictionary(values));<br />
}<br />
}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[New Visual WebGui Web/Cloud Applications Platform Release]]></title>
<link>http://webgui20.wordpress.com/2009/11/10/new-visual-webgui-webcloud-applications-platform-release/</link>
<pubDate>Tue, 10 Nov 2009 14:07:00 +0000</pubDate>
<dc:creator>webgui20</dc:creator>
<guid>http://webgui20.wordpress.com/2009/11/10/new-visual-webgui-webcloud-applications-platform-release/</guid>
<description><![CDATA[A new Visual WebGui version was released today as a further stabilization on the way to releasing ve]]></description>
<content:encoded><![CDATA[A new Visual WebGui version was released today as a further stabilization on the way to releasing ve]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP,  Dot NET, J2ME and Flash programmers needed - Chennai, India]]></title>
<link>http://siva2525.wordpress.com/2009/11/10/php-dot-net-j2me-and-flash-programmers-needed-chennai-india/</link>
<pubDate>Tue, 10 Nov 2009 13:18:29 +0000</pubDate>
<dc:creator>siva2525</dc:creator>
<guid>http://siva2525.wordpress.com/2009/11/10/php-dot-net-j2me-and-flash-programmers-needed-chennai-india/</guid>
<description><![CDATA[We are looking for PHP, MySQL,J2ME, ASP.net, C#, MS SQL Server, Flash Action Script programmers and ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We are looking for PHP, MySQL,J2ME, ASP.net, C#, MS SQL Server, Flash Action Script programmers and Sales/Marketing Executives for US based company in Chennai, India office. Please upload your resume to <a href="mailto:siva2525@yahoo.com">siva2525@yahoo.com</a> </p>
<p> Thanks.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Finding IP and IP Location]]></title>
<link>http://yasserzaid.wordpress.com/2009/11/10/finding-ip-and-ip-location/</link>
<pubDate>Tue, 10 Nov 2009 10:40:17 +0000</pubDate>
<dc:creator>yasserzaid</dc:creator>
<guid>http://yasserzaid.wordpress.com/2009/11/10/finding-ip-and-ip-location/</guid>
<description><![CDATA[Hi try this Example to Find IP and IP Location:- 1. Create new website project and Go to solution ex]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hi</p>
<p>try this Example to Find IP and IP Location:-</p>
<p>1. Create new website project and Go to solution explorer.</p>
<p>2. Right-click on your project name</p>
<p>3. Click on &#8216;Add Web Reference&#8217;</p>
<p>4. Enter this address: <a href="http://tools.webmastermafia.com/GeoIPChecker.asmx">http://tools.webmastermafia.com/GeoIPChecker.asmx</a></p>
<p>5. Drow some Button control and TextBox Control named txtIP</p>
<p>6. Enter this code into button_click event:</p>
<p><strong>C#:<br />
</strong>com.webmastermafia.tools.GeoIPChecker GEO = new com.webmastermafia.tools.GeoIPChecker();<br />
lblResult.Text = GEO.GetCountry(&#8220;test@webmastermafia.com&#8221;, &#8220;test&#8221;, txtIP.Text, &#8220;CountryName&#8221;);</p>
<p><strong>Visual Basic:<br />
</strong>Dim GEO As com.webmastermafia.tools.GeoIPChecker = new com.webmastermafia.tools.GeoIPChecker();<br />
lblResult.Text = GEO.GetCountry(&#8220;test@webmastermafia.com&#8221;, &#8220;test&#8221;, txtIP.Text, &#8220;CountryName&#8221;)</p>
<p>This is for check country name by IP. If you want to check City name, than use this code:</p>
<p><strong>C#:</strong><br />
com.webmastermafia.tools.GeoIPChecker GEO = new com.webmastermafia.tools.GeoIPChecker();<br />
lblResult.Text = GEO.GetCity(&#8220;test@webmastermafia.com&#8221;, &#8220;test&#8221;, txtIP.Text, &#8220;City&#8221;);</p>
<p><strong>Visual Basic:<br />
</strong>Dim GEO As com.webmastermafia.tools.GeoIPChecker = new com.webmastermafia.tools.GeoIPChecker();<br />
lblResult.Text = GEO.GetCity(&#8220;test@webmastermafia.com&#8221;, &#8220;test&#8221;, txtIP.Text, &#8220;City&#8221;)</p>
<p>Hope this helps</p>
<p>Good Luck.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[What&rsquo;s new in ASP.NET 4 &ndash; Short Videos]]></title>
<link>http://vincenthomedev.wordpress.com/2009/11/16/whats-new-in-asp-net-4-short-videos/</link>
<pubDate>Tue, 17 Nov 2009 00:05:03 +0000</pubDate>
<dc:creator>Vincent Leung</dc:creator>
<guid>http://vincenthomedev.wordpress.com/2009/11/16/whats-new-in-asp-net-4-short-videos/</guid>
<description><![CDATA[&#160; #1 | ASP.NET 4 &quot;Quick Hit&quot; &#8211; Chart Control 2 minutes, 42 seconds #2 | ASP.NET]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#160;</p>
<blockquote><p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8770.aspx"> #1 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Chart Control </a>2 minutes, 42 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8771.aspx"> #2 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Dynamic Metadata </a>5 minutes, 37 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8772.aspx"> #3 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Permanent Redirect </a>5 minutes, 35 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8773.aspx"> #4 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Imperative WebForms Routing </a>12 minutes, 39 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8841.aspx"> #5 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Declarative WebForms Routing </a>14 minutes, 16 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8842.aspx"> #6 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Outbound WebForms Routing </a>6 minutes, 18 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8843.aspx"> #7 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Auto Start </a>11 minutes, 38 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8844.aspx"> #8 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Clean Web.Config Files </a>2 minutes, 41 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8845.aspx"> #9 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Predictable Client IDs </a>10 minutes, 47 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8846.aspx"> #10 &#124; ASP.NET 4 &#34;Quick Hit&#34; &#8211; Selective View State </a>6 minutes, 40 seconds</p>
<p><a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/video-8856.aspx"> #11 &#124; ASP.NET 4 &#34;Quick Hit&#34; – The HtmlEncoder Utility Method </a>5 minutes, 8 seconds</p>
</blockquote>
<p>Via <a href="http://www.asp.net/learn/aspnet-4-quick-hit-videos/">ASPNET 4 : The Official Microsoft ASP.NET Site</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Delivering Multimedia]]></title>
<link>http://kiranpatils.wordpress.com/2009/11/16/delivering-multimedia/</link>
<pubDate>Mon, 16 Nov 2009 17:09:18 +0000</pubDate>
<dc:creator>kiranpatils</dc:creator>
<guid>http://kiranpatils.wordpress.com/2009/11/16/delivering-multimedia/</guid>
<description><![CDATA[Now a days I&#8217;ve started preparing for my next Microsoft Certification exam 70-547. And it’s go]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Now a days I&#8217;ve started preparing for my next Microsoft Certification exam <strong>70-547. </strong>And it’s going on really well as i am learning the things which i was knowing but now i am coming in to know the PRO. use of it.</p>
<p>Anyways today i am going to show you how you can deliver Multimedia on your website. Because in this era everyone needs to have it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But before we delve in coding part which we all developers love to do. Let’s take a look at some basic things which is good to know.</p>
<p><strong>Non-Streaming</strong><strong> :- </strong>The Audi/Video files must be downloaded completely before playback can begin.</p>
<p><strong><em>Non-Streaming Audio Formats</em></strong> are waveform(.wav), sound(.snd), Unix Audio(.au), Audio Interchange File format(.aif.aiff,.aifc)</p>
<p><strong><em>Non-Streaming Video Formats </em></strong>are Audio-Video Interleaved(.avi)</p>
<p><strong>Streaming</strong> <strong>:- </strong>The Audi/Video files can started playback and files keep downloading itself in background. This one gives better user experience.</p>
<p><strong><em>Streaming Audio Formats</em></strong> are Moving Pictures Experts Group standard 1, Layer 1,2,3 (.mpa,.mp2,.mp3), Windows Media Audio(.wma)</p>
<p><strong><em>Streaming Video Formats </em></strong>are Moving Pictures Experts Group standard 1 (.mpg,.mpeg,.mpv,.mpe), Windows Media Video (.wmv)</p>
<p>Hooh..too much theory. Let’s start how we can deliver multimedia on our page.</p>
<p>There are two ways of doing this:</p>
<p><strong>1. Embedded Playback : </strong>you can embed Windows Media Player on your page directly. But client should have installed Windows Media Player on his/her computer to view your multimedia files.</p>
<p>The code looks like as below:</p>
<pre class="brush: xml;">
&#60;div class=&#34;csharpcode&#34;&#62;&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62;
&#60;head id=&#34;Head1&#34; runat=&#34;server&#34;&#62;
 &#60;title&#62;MultiMedia Page&#60;/title&#62;

 &#60;script type=&#34;text/javascript&#34; language=&#34;javascript&#34;&#62;
 function StartPlayer()
 {
 //Using DOM play your MultiMedia File
 document.player1.URL = &#34;Resources/vande.avi&#34;;
 }

 function StartStreamingPlayer()
 {
 document.player1.URL = &#34;Resources/Intro_to_ASP_.NET_3.5.wmv&#34;;
 }
 function StopPlayer()
 {
 document.player1.controls.stop();
 }

 function PausePlayer(buttonPauseOrPlay)
 {
 if(buttonPauseOrPlay.value == &#34;Pause&#34;)
 {
 document.player1.controls.pause();
 buttonPauseOrPlay.value = &#34;Play&#34;;
 }
 else
 {
 document.player1.controls.play();
 buttonPauseOrPlay.value = &#34;Pause&#34;;
 }
 }
 &#60;/script&#62;

&#60;/head&#62;
&#60;body&#62;
 &#60;form id=&#34;form1&#34; runat=&#34;server&#34;&#62;
 &#60;div&#62;
 &#60;object id=&#34;player1&#34; height=&#34;400&#34; width=&#34;590&#34; classid=&#34;CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6&#34;&#62;
 &#60;/object&#62;
 &#60;br /&#62;
 &#60;br /&#62;
 &#60;input type=&#34;button&#34; name=&#34;btnPlay&#34; value=&#34;Start Non-Streaming File(.avi)&#34; onclick=&#34;StartPlayer()&#34; /&#62;
 &#60;input type=&#34;button&#34; name=&#34;btnPlay&#34; value=&#34;Start Streaming File(.wmv)&#34; onclick=&#34;StartStreamingPlayer()&#34; /&#62;
 &#60;input type=&#34;button&#34; name=&#34;btnStop&#34; value=&#34;Stop&#34; onclick=&#34;StopPlayer()&#34; /&#62;
 &#60;input type=&#34;button&#34; name=&#34;btnPause&#34; value=&#34;Pause&#34; onclick=&#34;PausePlayer(this)&#34; /&#62;
 &#60;br /&#62;
 UI Mode :
 &#60;select id=&#34;selUIMode&#34; onchange=&#34;this.document.player1.uiMode = selUIMode.value;&#34;&#62;
 &#60;option value=&#34;invisible&#34;&#62;Invisible&#60;/option&#62;
 &#60;option value=&#34;none&#34;&#62;None&#60;/option&#62;
 &#60;option value=&#34;mini&#34;&#62;Mini Player&#60;/option&#62;
 &#60;option value=&#34;full&#34;&#62;Full Player&#60;/option&#62;
 &#60;/select&#62;
 &#60;/div&#62;
 &#60;/form&#62;
&#60;/body&#62;
&#60;/html&#62;&#60;/div&#62;
&#60;div class=&#34;csharpcode&#34;&#62;</pre>
<p>Output of the above piece of code is as below:<a href="http://kiranpatils.files.wordpress.com/2009/11/image3.png"> It will be real fun when you try on your own <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </a></p>
<p><a href="http://kiranpatils.files.wordpress.com/2009/11/image3.png"><img style="display:inline;border-width:0;" title="Media Player In Browser" src="http://kiranpatils.files.wordpress.com/2009/11/image_thumb3.png?w=333&#038;h=286" border="0" alt="Media Player In Browser" width="333" height="286" /></a></p>
<p>In above code the main things is :</p>
<div class="csharpcode">
<pre class="alt"><span class="lnum">
<pre class="brush: xml;">
 &#60;/span&#62;&#60;object id=&#34;player1&#34; height=&#34;400&#34; width=&#34;590&#34; classid=&#34;CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6&#34;&#62;
 &#60;/object&#62;

&#60;pre&#62; </pre>
<p> </span></pre>
</div>
<p>2. Playing file with an External Player is easy. Just following piece of code does that for you:</p>
<p><strong>this.document.location.replace(FILENAME.wma);</strong></p>
<p>Hope you’ve enjoyed it!</p>
<p>Happy Video Playing!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Scrollable Gridview with fixed header]]></title>
<link>http://raphaelgabbarelli.wordpress.com/2009/11/16/scrollable-gridview-with-fixed-header/</link>
<pubDate>Mon, 16 Nov 2009 15:06:21 +0000</pubDate>
<dc:creator>Raphael Gabbarelli</dc:creator>
<guid>http://raphaelgabbarelli.wordpress.com/2009/11/16/scrollable-gridview-with-fixed-header/</guid>
<description><![CDATA[This code builds an ASP.NET scrollable GridView where the header is fixed. I&#8217;ve tried to add t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This code builds an ASP.NET scrollable GridView where the header is fixed. I&#8217;ve tried to add the code to sort the grid, and it works perfectly enen though the original header has been removed by the JavaScript code.</p>
<p><a href="http://www.aspnettutorials.com/tutorials/controls/gridviewscroll-aspnet2-csharp.aspx" target="_blank">http://www.aspnettutorials.com/tutorials/controls/gridviewscroll-aspnet2-csharp.aspx</a></p>
<p><span style="color:#339966;">THE SERVER SIDE CODE</span></p>
<p>using System.Data.SqlClient;</p>
<p>protected void Page_Load(object sender, EventArgs e)<br />
{</p>
<div style="padding-left:30px;">if (!IsPostBack)<br />
{</div>
<div style="padding-left:60px;">string connectionString = &#8220;server=localhost;database=Northwind;Integrated Security=SSPI&#8221;;</div>
<div style="padding-left:30px;">
<div style="padding-left:30px;">string customers = &#8220;SELECT ContactName,CompanyName,Address FROM Customers&#8221;;<br />
using (SqlConnection con = new SqlConnection(connectionString))<br />
{
<p>&#160;</p>
<div style="padding-left:30px;">DataSet ds = new DataSet();<br />
SqlDataAdapter da = new SqlDataAdapter(customers, con);<br />
da.Fill(ds, &#8220;Customers&#8221;);<br />
<span style="color:#ff0000;">GridView1.Attributes.Add(&#8220;style&#8221;, &#8220;table-layout:fixed&#8221;);</span> // IMPORTANT TO HAVE THE SAME WIDTH (HEADER AND DATA)<br />
GridView1.AutoGenerateColumns = true;<br />
GridView1.DataSource = ds;<br />
GridView1.DataBind();</div>
<p>}</p>
</div>
<p>}</p>
</div>
<p>}</p>
<p><span style="color:#339966;">THE &#8220;CLIENT SIDE&#8221; CODE</span></p>
<p>&#60;script type=&#8221;text/javascript&#8221;&#62;<br />
function s()<br />
{</p>
<div style="padding-left:30px;">var t = document.getElementById(&#8220;GridView1&#8243;); // It usually works in case use <span style="color:#ff0000;">(&#8220;&#60;%=GridView1.ClientID%&#62;&#8221;);</span><br />
var t2 = t.cloneNode(true)<br />
for(i = t2.rows.length -1;i &#62; 0;i&#8211;)<br />
t2.deleteRow(i)<br />
t.deleteRow(0)</div>
<div style="padding-left:30px;"><span style="color:#ff0000;">var a = document.getElementById(&#8216;a&#8217;); // that has been forgotten by the original author!</span><br />
a.appendChild(t2)</div>
<p>}<br />
window.onload = s<br />
&#60;/script&#62;</p>
<p>&#60;table width=&#8221;600&#8243; border=&#8221;0&#8243; align=&#8221;center&#8221; cellpadding=&#8221;5&#8243; cellspacing=&#8221;1&#8243; bgcolor=&#8221;#cccccc&#8221;&#62;</p>
<div>&#60;tr&#62;<br />
&#60;td bgcolor=&#8221;#eeeeee&#8221;&#62;<br />
&#60;fieldset&#62;<br />
&#60;legend&#62;GridviewWithScrollbar&#60;/legend&#62;<br />
&#60;div id=&#8221;a&#8221;&#62;<br />
&#60;/div&#62;<br />
&#60;div style=&#8221;overflow-y: scroll; height: 200px&#8221;&#62;<br />
&#60;asp:GridView ID=&#8221;GridView1&#8243; runat=&#8221;server&#8221; Font-Size=&#8221;12px&#8221; BackColor=&#8221;#FFFFFF&#8221;<br />
GridLines=&#8221;Both&#8221; CellPadding=&#8221;4&#8243; Width=&#8221;560&#8243;&#62;<br />
&#60;HeaderStyle BackColor=&#8221;#EDEDED&#8221; Height=&#8221;26px&#8221; /&#62;<br />
&#60;/asp:GridView&#62;<br />
&#60;/div&#62;<br />
&#60;/fieldset&#62;<br />
&#60;/td&#62;<br />
&#60;/tr&#62;</div>
<p>&#60;/table&#62;</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
