<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6879908154389740393</id><updated>2012-02-16T10:54:32.726-08:00</updated><category term='InitializeLayout'/><category term='Windows XP'/><category term='pdf documents'/><category term='ASP.NET 2.0'/><category term='Microsoft'/><category term='Tables'/><category term='eBooks'/><category term='HTTPS'/><category term='Book Search'/><category term='SQL Server'/><category term='IT'/><category term='Microsoft Visual Studio 2008'/><category term='ASP.NET Unit Test'/><category term='file download'/><category term='restrict HTML/ Javascript tags'/><category term='Web Page'/><category term='Permissions'/><category term='IQ'/><category term='.NET Framework 3.5'/><category term='Form'/><category term='GridClientSelectColumn'/><category term='ASP.NET'/><category term='Infragistics'/><category term='Checkbox'/><category term='RowEditTemplate'/><category term='popup'/><category term='format currency'/><category term='General'/><category term='Jason Diamond'/><category term='BeforeRowTemplateClose'/><category term='laptops'/><category term='Web Application'/><category term='CLSID'/><category term='Data-Driven Unit Test'/><category term='SSL'/><category term='Flash Drive'/><category term='hotfix'/><category term='VS.NET 2005'/><category term='Digital Certificates'/><category term='AJAX Toolkit'/><category term='whitepapers'/><category term='Windows 7'/><category term='MS Excel'/><category term='IIS 5'/><category term='Configure DCOM'/><category term='jQuery'/><category term='Budget'/><category term='cloud computing'/><category term='CSS'/><category term='Interview questions'/><category term='Javascript'/><category term='Office'/><category term='webinar'/><category term='Anthem.NET'/><category term='notebooks'/><category term='IUSR'/><category term='Machine_Name'/><category term='igtbl_getActiveRow'/><category term='igtbl_gRowEditButtonClick'/><category term='Colorbox'/><category term='Visual Studio Team System'/><category term='Online Books'/><category term='NetAdvantage'/><category term='IIS'/><category term='text box'/><category term='COM Object'/><category term='IE 6'/><category term='USB'/><category term='Tableless web design/ format/ layout'/><category term='C#'/><category term='over spending'/><category term='Business Needs'/><category term='UltraWebGrid'/><category term='Telerik'/><category term='Div'/><category term='Free Books'/><category term='RadGrid'/><category term='Response.Redirect Issue with Anthem.NET'/><category term='OOP'/><category term='Netbooks'/><category term='wasting money'/><category term='Latest Operating System'/><category term='CheckedChanged Event'/><category term='ASPNET'/><category term='igtbl_getGridById'/><category term='.NET'/><title type='text'>Intelligent Business Solutions</title><subtitle type='html'>One place to find out free articles, tips and trick in Programming, Web Programming in ASP.NET (C#), Free Online Book Search, .NET Framework, ASP.NET (C#), Unit Test, Microsoft Visual Studio 2008 Team System, Digital Certificates and HTTPS with SSL, IIS AND Windows XP, Javascript and HTML,format currency, Infragistics and NetAdvantage with UltraWebGrid</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-8065231380664035948</id><published>2012-02-08T06:09:00.000-08:00</published><updated>2012-02-08T06:09:42.080-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='popup'/><category scheme='http://www.blogger.com/atom/ns#' term='Colorbox'/><category scheme='http://www.blogger.com/atom/ns#' term='file download'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>How to close jQuery ColorBox on file download</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Lets suppose you want to display a custom message in a jquery colorbox before a user can download a file, on clicking an agree button on that colorbox, user should be prompted to download/save/open the file and the colorbox should be closed, use the following steps to do so&lt;br /&gt;&lt;br /&gt;1. Agree button event handler on the colorbox page should do this&lt;br /&gt;&lt;br /&gt;protected void btnAgree_Click(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session["FilePath"] = YourCompleteFilePath;//put your complete file path here&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "popupclose", "window.location.href='DownloadFile1.aspx';parent.$.colorbox.close();", true); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;2. Page load on the DownloadFile1.aspx should have the following code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;byte[] FileData = new byte[0];&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string filePath = Server.MapPath(Session["FilePath"].ToString());&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileInfo file = new FileInfo(filePath);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (file.Exists)//set appropriate headers&lt;br /&gt;&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;nbsp; &amp;nbsp; &amp;nbsp; Response.Clear();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.AddHeader("Content-Length", file.Length.ToString());&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.ContentType = "application/octet-stream";&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.WriteFile(file.FullName);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-8065231380664035948?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/8065231380664035948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=8065231380664035948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/8065231380664035948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/8065231380664035948'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2012/02/how-to-close-jquery-colorbox-on-file.html' title='How to close jQuery ColorBox on file download'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-997743118064211241</id><published>2011-12-28T07:03:00.000-08:00</published><updated>2011-12-28T07:03:48.148-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CheckedChanged Event'/><category scheme='http://www.blogger.com/atom/ns#' term='Checkbox'/><category scheme='http://www.blogger.com/atom/ns#' term='RadGrid'/><category scheme='http://www.blogger.com/atom/ns#' term='GridClientSelectColumn'/><category scheme='http://www.blogger.com/atom/ns#' term='Telerik'/><title type='text'>How to handle RadGrid's Select Column Checkbox Event</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;Do these steps to handle the Radgrid's select column checkbox event.&lt;br /&gt;&lt;br /&gt;1. Allow row selection&lt;br /&gt;&lt;br /&gt;&amp;lt;ClientSettings ...&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; &amp;nbsp; &amp;lt;Selecting AllowRowSelect="true" /&amp;gt;&lt;br /&gt;&amp;lt;/ClientSettings&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Place the select column/row checkbox&lt;br /&gt;&amp;lt;telerik:RadGrid ...&amp;gt;&lt;br /&gt;&amp;lt;ClientSettings ...&amp;gt;...&amp;lt;/ClientSettings&amp;gt;&lt;br /&gt;&amp;lt;MasterTableView...&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;telerik:GridClientSelectColumn UniqueName="Selectcol" HeaderText="select"&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/telerik:GridClientSelectColumn&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/MasterTableView&amp;gt;&lt;br /&gt;&amp;lt;/&amp;lt;telerik:RadGrid&amp;gt;&lt;br /&gt;&lt;br /&gt;3. Specify the ItemCreated Event&lt;br /&gt;onitemcreated="RadGrid_ItemCreated"&lt;br /&gt;&lt;br /&gt;4. Define ItemCreated Event&lt;br /&gt;protected void&amp;nbsp;&amp;nbsp;RadGrid_ItemCreated(object sender, GridItemEventArgs e)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridHeaderItem HeaderItem;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridDataItem DateItem;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CheckBox chkbx=new CheckBox();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (e.Item is GridHeaderItem)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HeaderItem = (GridHeaderItem)e.Item;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chkbx = (CheckBox)HeaderItem["SelectCol"].Controls[0];&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (e.Item is GridDataItem)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DateItem = (GridDataItem)e.Item;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chkbx = (CheckBox)DateItem["SelectCol"].Controls[0];&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; chkbx.AutoPostBack = true;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chkbx.CheckedChanged += new EventHandler(chkbx_CheckedChanged);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;5. Define&amp;nbsp;chkbx_CheckedChanged&lt;br /&gt;&lt;br /&gt;void chkbx_CheckedChanged(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Enjoy...:)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-997743118064211241?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/997743118064211241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=997743118064211241' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/997743118064211241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/997743118064211241'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2011/12/how-to-handle-radgrids-select-column.html' title='How to handle RadGrid&apos;s Select Column Checkbox Event'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-5707045155817494359</id><published>2009-11-17T03:34:00.000-08:00</published><updated>2009-11-17T04:42:30.782-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IQ'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='OOP'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Interview Questions</title><content type='html'>This article lists different interview questions along with their categories plus some useful topics.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;General/ IQ Questions&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Introduce Yourself&lt;/li&gt;&lt;li&gt;You have 9 balls one is heavier out of them, in 2 turns using a balance tool you've to find out the heavier one&lt;/li&gt;&lt;li&gt;You have 8 balls one is heavier out of them, in 2 turns using a balance tool you've to find out the heavier one&lt;/li&gt;&lt;li&gt;A=200, B=17, divide them using +,-,* without using division operator&lt;/li&gt;&lt;/ol&gt;&lt;b&gt;Software Design Questions&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Difference between procedural and object oriented programming&lt;/li&gt;&lt;li&gt;What is inheritance&lt;/li&gt;&lt;li&gt;Describe Association, Composition, aggregation, containment&lt;/li&gt;&lt;li&gt;What is UML and how many types of diagrams are there in UML&lt;/li&gt;&lt;li&gt;What is association and how we show it in UML&lt;/li&gt;&lt;li&gt;Best sorting algorithm and why&lt;/li&gt;&lt;li&gt;What are Design Patterns and how they are categorized?&lt;/li&gt;&lt;li&gt;Data Structures&lt;/li&gt;&lt;li&gt;Design and analysis of Algos&lt;/li&gt;&lt;li&gt;OOP concepts&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;.NET/C# Questions&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Whats the different between abstract classes n interfaces&lt;/li&gt;&lt;li&gt;Does C# support multiple inheritance, if not, whats the logical reason behind that, if yes then how we can achieve that, e.g. using interfaces, what are its pros n cons&lt;/li&gt;&lt;li&gt;What is an Assembly&lt;/li&gt;&lt;li&gt;Features of .Net Framework 3.0 (WCF, WPF, WF, WC)&lt;/li&gt;&lt;li&gt;Partial Classes&lt;/li&gt;&lt;li&gt;.NET Architecture&lt;/li&gt;&lt;li&gt;.NET remoting&lt;/li&gt;&lt;li&gt;DLL Hell problem&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;ASP.NET/Web Questions&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;Architecture and Features of IIS 6.0&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Page Life Cylce&lt;/li&gt;&lt;li&gt;ViewState&lt;/li&gt;&lt;li&gt;Master pages and themes&lt;/li&gt;&lt;li&gt;XML, XHTML and XAML&lt;/li&gt;&lt;li&gt;ASP.NET Architecture&lt;/li&gt;&lt;li&gt;AJAX&lt;/li&gt;&lt;li&gt;Authentication n authorisation (ASP.NET Web application + IIS security)&lt;/li&gt;&lt;li&gt;Web Services and their Protocols&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;SQL Server Questions&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Joins&lt;/li&gt;&lt;li&gt;Cursors&lt;/li&gt;&lt;li&gt;Connection Pooling&lt;/li&gt;&lt;li&gt;Normalization&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;Advanced Concepts&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Cloud Computing&lt;/li&gt;&lt;li&gt;Grid Computing&lt;/li&gt;&lt;li&gt;MS Dynamics&lt;/li&gt;&lt;li&gt;Sharepoint (MOSS)&lt;/li&gt;&lt;li&gt;ERP&lt;/li&gt;&lt;li&gt;CRM&lt;/li&gt;&lt;li&gt;Service Oriented Architecture&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-5707045155817494359?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/5707045155817494359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=5707045155817494359' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/5707045155817494359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/5707045155817494359'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/11/interview-questions.html' title='Interview Questions'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-7952953953350343361</id><published>2009-11-12T01:36:00.000-08:00</published><updated>2009-11-12T01:44:45.322-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE 6'/><category scheme='http://www.blogger.com/atom/ns#' term='MS Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='hotfix'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS 5'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><category scheme='http://www.blogger.com/atom/ns#' term='Office'/><title type='text'>Microsoft Office Excel cannot access the file</title><content type='html'>You might have experienced a problem while opening an excel file using&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Excel.Workbook workBook = app.Workbooks.Open(Path, 0, true, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and ended up with the following error&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Microsoft Office Excel cannot access the file '\\&lt;file&gt;\ExcelFile.xls'. There are several possible reasons:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;• The file name or path does not exist.&lt;/div&gt;&lt;div&gt;• The file is being used by another program.&lt;/div&gt;&lt;div&gt;• The workbook you are trying to save has the same name as a currently open workbook.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This problem occurs on IIS 5 and IE 6.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It is a known issue and Microsoft offers a hotfix for IE 6 to overcome this issue.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can find a detailed description of the problem and the link to download the hotfix on &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://support.microsoft.com/kb/840386/en-us"&gt;http://support.microsoft.com/kb/840386/en-us&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-7952953953350343361?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/7952953953350343361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=7952953953350343361' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/7952953953350343361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/7952953953350343361'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/11/microsoft-office-excel-cannot-access.html' title='Microsoft Office Excel cannot access the file'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-3727316986051109906</id><published>2009-11-05T22:00:00.000-08:00</published><updated>2009-11-05T22:23:25.817-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Configure DCOM'/><category scheme='http://www.blogger.com/atom/ns#' term='COM Object'/><category scheme='http://www.blogger.com/atom/ns#' term='MS Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='CLSID'/><category scheme='http://www.blogger.com/atom/ns#' term='Permissions'/><category scheme='http://www.blogger.com/atom/ns#' term='ASPNET'/><category scheme='http://www.blogger.com/atom/ns#' term='Machine_Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><category scheme='http://www.blogger.com/atom/ns#' term='IUSR'/><title type='text'>Error in creating Excel Object : Retrieving the COM class factory</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;You might have faced a problem while creating an object of MS Excel using&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Excel.ApplicationClass xl = new Excel.ApplicationClass();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;resulting in the following error.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 13px; color: rgb(128, 0, 0); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:100%;color:#800000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Possible reasons for it are that your ASPNET account doesnt have enough permissions to create that COM object so you have to grant permissions to the user which is accessing that COM object.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;By default ASP.NET web applications run under the &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;machine_name&gt;\&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ASPNET account, if you are using impersonation than the &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;machine_name&gt;\IUSR_&lt;machine_name&gt; is used to run that application so in each case you have to grant permissions to the respective users&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;You can grant permissions to those accounts to access the COM object on Windows XP using the following steps:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;h3&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Configure DCOM&lt;/span&gt;&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Go to the Start-Run menu item.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Type in "DCOMCNFG" and hit enter.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;This should load the "Component Services" MMC (you can also load from Administrative Tools - Component Services"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Expand "Component Services"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Expand "Computers"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Expand "My Computer"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Select the "DCOM Config" item&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Select the "Microsoft Excel Application" item.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Right click and select Properties&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Select the Security Tab&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Under "&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Launch and Activation Permissions&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;" select the "&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Customize&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;" option.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click the "&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Edit&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;" button&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click the "Add" button to add a new account to the list.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;On the dialog that is displayed click the Locations button&lt;br /&gt;&lt;br /&gt;(select the first item which is your computer name)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click the OK button&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;On the dialog that is displayed enter "&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;ASPNET&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;" as the account name (make sure location is set to the name of the computer that IIS is on) on&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Windows XP&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;On the dialog that is displayed enter "&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;IUSR_&lt;machine&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;" as the account name if you are using impersonation (make sure location is set to the name of the computer that IIS is on) on&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Windows XP&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click the OK button&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Now make sure you select the following options for the "ASP.NET Machine Account" or the account that is the application pool identity ( by default Network Service)&lt;br /&gt; &lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Local Launch         : Allow&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Remote Launch        : [blank]&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Local Activation     : Allow&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Remote Activation    : [blank]&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click the OK button and test your web application again and it should work fine.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;The above steps have been taken from the following URL and you can go through it for a more detailed walk through&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href="http://blog.crowe.co.nz/archive/2006/03/02/589.aspx"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;http://blog.crowe.co.nz/archive/2006/03/02/589.aspx&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-3727316986051109906?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/3727316986051109906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=3727316986051109906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/3727316986051109906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/3727316986051109906'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/11/error-in-creating-excel-object.html' title='Error in creating Excel Object : Retrieving the COM class factory'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-6699092770328436927</id><published>2009-11-05T02:38:00.000-08:00</published><updated>2009-11-05T02:43:52.161-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Budget'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='wasting money'/><category scheme='http://www.blogger.com/atom/ns#' term='over spending'/><title type='text'>Five ways IT departments waste money</title><content type='html'>&lt;div&gt;This article has been taken from the following URL:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://blogs.techrepublic.com.com/hiner/?p=3005&amp;amp;tag=nl.e099.dl091104&amp;amp;tag=nl.e099"&gt;http://blogs.techrepublic.com.com/hiner/?p=3005&amp;amp;tag=nl.e099.dl091104&amp;amp;tag=nl.e099&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Lets look at five of the most common ways that IT lets some of those precious dollars slip right through their fingers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No. 1: Wasting energy&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The electric bill is a huge expense for most companies   and the IT department is a BIG user of energy. You can save more money than you might suspect by adopting even a few quick energy-saving tips. For example, IT personnel can power off unused servers and systems, force power-saving settings on desktops with solutions like Verdiem Surveyor,  and simply turn off the lights when not needed in IT offices and server rooms. And that's just the tip of iceberg.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No. 2: Spending too much on mobile technology&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Smartphones and mobile devices are the hip gadgets for IT pros, but company-provided equipment and plans may be costing more than necessary. A recent survey showed that only one out of four employees uses 75% or more of the voice minutes their companies are paying for, for example, and almost half have services on their plans that they never use at all.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No. 3: Using consultants when the job could be done by staff&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It's a common scenario: Employees have been telling management for months or years that changes need to be made, but they've been ignored. Then the company hires a consultant, who charges hundreds of thousands of dollars to do a study and arrives at the same conclusion. If your staff has expertise in a particular area, it's generally more cost effective to allow them to do the job than to bring in an outsider who will spend a slew of billable hours getting up to speed on how your company operates and what its needs are.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No. 4: Hiring full-time employees when contractors would be more cost effective&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The flip side of the previous item involves being afraid to use consultants or contractors when it's appropriate. Hiring full-time employees to handle a workload that's likely to be temporary in the hope that you can eventually move them on to something else once the project is over. This is when independent contractors make sense, especially when you have great staff members who can guide and manage those contractors.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No. 5: Overspending on hardware&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Buying new hardware can actually save you money, if you do it right, especially when you're doing server consolidation or buying hardware that's less expensive to maintain due to lower maintenance costs or better power savings. Where a lot of companies waste money is by purchasing equipment for a project that requires intensive resources for only for a limited time. An alternative option is to use a cloud-based service like Amazon AWS that allows you to purchase server capacity that you can scale up or down to fit your needs.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-6699092770328436927?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/6699092770328436927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=6699092770328436927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/6699092770328436927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/6699092770328436927'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/11/five-ways-it-departments-waste-money.html' title='Five ways IT departments waste money'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-7417100016624756078</id><published>2009-11-03T04:14:00.000-08:00</published><updated>2009-11-03T04:18:28.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='notebooks'/><category scheme='http://www.blogger.com/atom/ns#' term='laptops'/><category scheme='http://www.blogger.com/atom/ns#' term='Netbooks'/><title type='text'>Netbooks vs Laptops</title><content type='html'>If you are not sure about what is the difference between Netbooks and Laptops and you are willing to buy one then you must go through the following URL in order to have a clear picture:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://portal.wateen.com/Technology/NetbookvsLaptop/tabid/1021/Default.aspx"&gt;http://portal.wateen.com/Technology/NetbookvsLaptop/tabid/1021/Default.aspx&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-7417100016624756078?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/7417100016624756078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=7417100016624756078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/7417100016624756078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/7417100016624756078'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/11/netbooks-vs-laptops.html' title='Netbooks vs Laptops'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-9089719541015935972</id><published>2009-11-02T23:05:00.000-08:00</published><updated>2009-11-02T23:09:53.520-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Business Needs'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><category scheme='http://www.blogger.com/atom/ns#' term='Latest Operating System'/><title type='text'>Which Windows 7 suits your needs?</title><content type='html'>If you want to upgrade to the Windows 7 (Latest Operating System by Microsoft), and you are not sure which version to use for which kind of needs you better go through the following URL&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.networksasia.net/content/which-windows-7-right-your-business?section=NEWS&amp;amp;utm_source=lyris&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=nwa_daily"&gt;http://www.networksasia.net/content/which-windows-7-right-your-business?section=NEWS&amp;amp;utm_source=lyris&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=nwa_daily&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-9089719541015935972?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/9089719541015935972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=9089719541015935972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/9089719541015935972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/9089719541015935972'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/11/which-windows-7-suits-your-needs.html' title='Which Windows 7 suits your needs?'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-3458624277301292350</id><published>2009-10-16T23:56:00.000-07:00</published><updated>2009-10-16T23:59:07.180-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='whitepapers'/><category scheme='http://www.blogger.com/atom/ns#' term='webinar'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf documents'/><category scheme='http://www.blogger.com/atom/ns#' term='cloud computing'/><title type='text'>Cloud Computing</title><content type='html'>If you are interested in cloud computing, you may visit the following URL to get some useful whitepapers &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="https://dct.sun.com/dct/forms/reg_us_2608_465_0.jsp?email=adeel.nasir@gmail.com&amp;amp;mid=1134620626&amp;amp;cid=928296os"&gt;https://dct.sun.com/dct/forms/reg_us_2608_465_0.jsp?email=adeel.nasir@gmail.com&amp;amp;mid=1134620626&amp;amp;cid=928296os&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The URL includes few pdf documents along with a webinar explaining the cloud computing.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-3458624277301292350?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/3458624277301292350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=3458624277301292350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/3458624277301292350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/3458624277301292350'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/10/cloud-computing.html' title='Cloud Computing'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-993131048671302420</id><published>2009-10-16T23:50:00.000-07:00</published><updated>2009-10-16T23:54:38.519-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash Drive'/><category scheme='http://www.blogger.com/atom/ns#' term='USB'/><title type='text'>Five cool things you can do with a USB flash drive</title><content type='html'>In order to find out how handy a flash drive can be, you can view this video or transcript available at the following URL&lt;div&gt;&lt;a href="http://blogs.techrepublic.com.com/itdojo/?p=1078&amp;amp;tag=nl.e099.dl091014&amp;amp;tag=nl.e099"&gt;http://blogs.techrepublic.com.com/itdojo/?p=1078&amp;amp;tag=nl.e099.dl091014&amp;amp;tag=nl.e099&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You will be aware that it can do more than what is called copy paste and data transfer.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-993131048671302420?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/993131048671302420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=993131048671302420' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/993131048671302420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/993131048671302420'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/10/five-cool-things-you-can-do-with-usb.html' title='Five cool things you can do with a USB flash drive'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-1651196948868544404</id><published>2009-05-20T02:15:00.000-07:00</published><updated>2009-05-20T02:22:03.359-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Div'/><category scheme='http://www.blogger.com/atom/ns#' term='Tables'/><category scheme='http://www.blogger.com/atom/ns#' term='Form'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Tableless web design/ format/ layout'/><title type='text'>Tableless web designing</title><content type='html'>If you want to make your web page lighter than the normal page size then you must use the tableless web design/tableless formating/ tableless layout. You can find the detailed description on the following URLs:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://tutoriale.anadesign.info/tutoriale-css/css-tableless-form/"&gt;http://tutoriale.anadesign.info/tutoriale-css/css-tableless-form/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://en.wikipedia.org/wiki/Tableless_web_design"&gt;http://en.wikipedia.org/wiki/Tableless_web_design&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://ezinearticles.com/?CSS-Table-Less-Format-and-HTML-Table-Base-Format,-Which-One-You-Prefer&amp;amp;id=2306045"&gt;http://ezinearticles.com/?CSS-Table-Less-Format-and-HTML-Table-Base-Format,-Which-One-You-Prefer&amp;amp;id=2306045&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-1651196948868544404?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/1651196948868544404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=1651196948868544404' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/1651196948868544404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/1651196948868544404'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/05/tableless-web-designing.html' title='Tableless web designing'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-4191684038655256126</id><published>2009-05-19T21:47:00.000-07:00</published><updated>2009-05-20T02:14:49.566-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Free Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Online Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Book Search'/><category scheme='http://www.blogger.com/atom/ns#' term='eBooks'/><title type='text'>Find out e-books database</title><content type='html'>Try the following URL to search e-books&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="border-collapse: collapse;   font-family:arial;font-size:13px;"&gt;&lt;a href="http://www.freeebooksearch.com/index.php" target="_blank" style="color: rgb(42, 93, 176); "&gt;http://www.freeebooksearch.&lt;wbr&gt;com/index.php&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="border-collapse: collapse;  font-family:arial;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="border-collapse: collapse;  font-family:arial;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-4191684038655256126?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/4191684038655256126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=4191684038655256126' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/4191684038655256126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/4191684038655256126'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/05/find-out-some-free-books.html' title='Find out e-books database'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-5601231033221871918</id><published>2009-05-01T22:58:00.000-07:00</published><updated>2009-05-01T23:14:25.737-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET Unit Test'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework 3.5'/><category scheme='http://www.blogger.com/atom/ns#' term='Data-Driven Unit Test'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Visual Studio 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio Team System'/><title type='text'>How to create a unit test</title><content type='html'>&lt;span class="Apple-style-span"   style="border-collapse: collapse;   font-family:arial;font-size:13px;"&gt;&lt;p&gt;&lt;span class="Apple-style-span"   style=" ;font-family:'Times New Roman';font-size:16px;"&gt;In order to test the methods you developed, you need to have unit tests. For this purpose you may visit the following URLs explaining 1) How to Create ASP.NET Unit tests 2) Data-Driven Unit tests&lt;br /&gt;&lt;span class="Apple-style-span"  style=" ;font-family:arial;"&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms182526(VS.80).aspx" target="_blank" style="color: rgb(42, 93, 176); "&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="color: rgb(42, 93, 176);"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms182526(VS.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms182526(VS.80).aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms182519(VS.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms182519(VS.80).aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-5601231033221871918?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/5601231033221871918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=5601231033221871918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/5601231033221871918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/5601231033221871918'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/05/how-to-create-unit-test.html' title='How to create a unit test'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-6255225347702231084</id><published>2009-04-11T04:15:00.000-07:00</published><updated>2009-04-11T04:20:41.709-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSL'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTTPS'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><category scheme='http://www.blogger.com/atom/ns#' term='Digital Certificates'/><title type='text'>Enabling SSL in IIS on Windows XP</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre; "&gt;Enabling SSL in IIS on Windows XP is not an easy task, have a look at the following URL to read the article containing the explaination on how to acheive this purpose&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre;"&gt;&lt;a href="http://www.somacon.com/p41.php"&gt;http://www.somacon.com/p41.php&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre;"&gt;Good Luck&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-6255225347702231084?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/6255225347702231084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=6255225347702231084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/6255225347702231084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/6255225347702231084'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2009/04/enabling-ssl-in-iis-on-windows-xp.html' title='Enabling SSL in IIS on Windows XP'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-104976129434406300</id><published>2008-09-04T23:31:00.000-07:00</published><updated>2008-09-04T23:39:50.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='restrict HTML/ Javascript tags'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How to restrict HTML/Javascript tags using Javascript and ASP.NET</title><content type='html'>There is a security threat that people use scripting tags into the input fields in order to hack/malfunction the application, you may use the steps described below in order to restrict  the user not to enter these kind of tags:&lt;br /&gt;&lt;br /&gt;Add a text box in your asp.net page/control&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:TextBox ID="txtComments" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;&lt;br /&gt;Then add an attribute for OnClick and OnKeyPress events&lt;br /&gt;&lt;br /&gt;txtComments.Attributes.Add("OnClick", "return RestrictHTMLTags();");&lt;br /&gt;&lt;br /&gt;Now you've to define the function RestrictHTMLTags in order to restrict the HTML tags&lt;br /&gt;&lt;br /&gt;function RestrictHTMLTags()&lt;br /&gt;{&lt;br /&gt;    txt_box=document.getElementsByTagName('INPUT');&lt;br /&gt;    for (txt_0=0; txt_0 &lt; txt_box.length; txt_0++)&lt;br /&gt;    {&lt;br /&gt;        if (txt_box[txt_0].type=='text')&lt;br /&gt;        {&lt;br /&gt;            var str1=parseInt(txt_box[txt_0].value.indexOf('&lt;'))&lt;br /&gt;            var str2=parseInt(txt_box[txt_0].value.indexOf('&gt;'))&lt;br /&gt;            if (str1 &gt;= 0 || str2 &gt;= 0 )&lt;br /&gt;            {&lt;br /&gt;                alert("HTML or JavaScript tags are not allowed")&lt;br /&gt;                txt_box[txt_0].value='';&lt;br /&gt;                txt_box[txt_0].focus();&lt;br /&gt;                return false;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    return true;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;That's how you restrict the user not to enter the restricted tags. Waiting for your comments on this article&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-104976129434406300?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/104976129434406300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=104976129434406300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/104976129434406300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/104976129434406300'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2008/09/how-to-restrict-htmljavascript-tags.html' title='How to restrict HTML/Javascript tags using Javascript and ASP.NET'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-1369177556443964011</id><published>2008-09-03T00:26:00.000-07:00</published><updated>2008-09-04T02:20:47.097-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='text box'/><category scheme='http://www.blogger.com/atom/ns#' term='format currency'/><title type='text'>How to format currency value entered in a text box using Javascript and ASP.NET</title><content type='html'>You might be in a situation where you want to display the value entered by user in a proper currency format e.g. if user entered 10000 and you want to format it like 10,000. In order to do so you've to follow these steps:&lt;br /&gt;&lt;br /&gt;First add a text box in your asp.net page/control&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:TextBox ID="txtTotal_Amount" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;&lt;br /&gt;Then add an attribute for OnKeyUp and OnKeyPress events&lt;br /&gt;&lt;br /&gt;txtTotal_Amount.Attributes.Add("OnKeyUp", "OnCurrencyValueKeyUp(this);");&lt;br /&gt;txtTotal_Amount.Attributes.Add("OnKeyPress", "OnCurrencyValueKeyUp(this);");&lt;br /&gt;&lt;br /&gt;Now you've to define the function OnCurrencyValueKeyUp in order to handle the formatting&lt;br /&gt;&lt;br /&gt;function OnCurrencyValueKeyUp(input)&lt;br /&gt;{      &lt;br /&gt;  if(input.value.toString().length == 1 &amp;amp;&amp;amp; input.value.toString() == '0')      &lt;br /&gt;      input.value = input.value.replace('0','');     &lt;br /&gt;&lt;br /&gt;  var num =  input.value.replace('.','');&lt;br /&gt;  num = input.value.replace(/\,/g,'');&lt;br /&gt;  if((!isNaN(num)|| num=='-') &amp;amp;&amp;amp; num != '-0')&lt;br /&gt;  {&lt;br /&gt;       if(num.indexOf('.') &gt; -1)&lt;br /&gt;          {&lt;br /&gt;              num = num.split('.');&lt;br /&gt;              num[0] = num[0].toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/g,'$1,').split('').reverse().join('').replace(/^[\,]/,'');&lt;br /&gt;              if(num[1].length &gt; 2)&lt;br /&gt;              {&lt;br /&gt;                  num[1] = num[1].substring(0,num[1].length-1);&lt;br /&gt;              }&lt;br /&gt;              input.value = num[0]+'.'+num[1];      &lt;br /&gt;          }&lt;br /&gt;        else&lt;br /&gt;          {&lt;br /&gt;              input.value = num.toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/g,'$1,').split('').reverse().join('').replace(/^[\,]/,'') };&lt;br /&gt;          }&lt;br /&gt;        else&lt;br /&gt;          {&lt;br /&gt;              input.value = input.value.substring(0,input.value.length-1);&lt;br /&gt;          }&lt;br /&gt; input.value = input.value.toString().replace(/\$|\ /g,'');&lt;br /&gt; input.value = input.value.toString().replace('.','');&lt;br /&gt; input.value = input.value .toString().replace('-,','-');&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;That's it, just run your application and try it. Waiting for your comments on this article&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-1369177556443964011?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/1369177556443964011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=1369177556443964011' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/1369177556443964011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/1369177556443964011'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2008/09/how-to-format-currency-value-entered-in.html' title='How to format currency value entered in a text box using Javascript and ASP.NET'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-5358005121262172227</id><published>2008-07-29T03:11:00.000-07:00</published><updated>2008-08-17T04:01:21.651-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RowEditTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='BeforeRowTemplateClose'/><category scheme='http://www.blogger.com/atom/ns#' term='NetAdvantage'/><category scheme='http://www.blogger.com/atom/ns#' term='InitializeLayout'/><category scheme='http://www.blogger.com/atom/ns#' term='igtbl_gRowEditButtonClick'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Infragistics'/><category scheme='http://www.blogger.com/atom/ns#' term='UltraWebGrid'/><category scheme='http://www.blogger.com/atom/ns#' term='igtbl_getGridById'/><category scheme='http://www.blogger.com/atom/ns#' term='igtbl_getActiveRow'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How to: use Infragistics UltraWebGrid RowEditTemplate using Javascript in ASP.NET 2.0 (C#)</title><content type='html'>Infragistics UltraWebGrid is an important tool in 'NetAdvantage for ASp.NET' Suite. UltraWebGrid has built in AJAX functionality, along with enhanced performance and improved GUI.&lt;br /&gt;&lt;br /&gt;In this article we'll learn how to use UltraWebGrid's RowEditTemplate using JavaScript. But I'll be showing the necessary code to be modified.&lt;br /&gt;&lt;br /&gt;You have to register the assembly in the page you wish to use UltraWebGrid using 'Register' Tag&lt;br /&gt;&lt;br /&gt;Then you have to add the UltraWebGrid to your page&lt;br /&gt;&lt;br /&gt;&amp;lt;igtbl:ultrawebgrid id=&amp;quot;UWGItems&amp;quot; runat=&amp;quot;server&amp;quot; width=&amp;quot;100%&amp;quot; height=&amp;quot;150px&amp;quot; browser=&amp;quot;Xml&amp;quot; oninitializelayout=&amp;quot;UWGItems_InitializeLayout&amp;quot;&amp;gt;&amp;lt;/igtbl:ultrawebgrid&amp;gt;&lt;br /&gt;&lt;br /&gt;In your codefile define the UWGItems_InitializeLayout method&lt;br /&gt;&lt;br /&gt;protected void UWGItems_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)&lt;br /&gt; {&lt;br /&gt;     // The InitializeLayout event is called when the grid binds to data.  Many of these&lt;br /&gt;     // settings can be set at design time, rather then run time, via the property window.&lt;br /&gt;     // For this sample, these properties are set in code so that the settings are more easily visible.&lt;br /&gt;&lt;br /&gt;     // Turn on addnew, update and delete for the grid&lt;br /&gt;     e.Layout.AllowAddNewDefault = AllowAddNew.Yes;&lt;br /&gt;     e.Layout.AllowUpdateDefault = AllowUpdate.Yes;&lt;br /&gt;     e.Layout.AllowDeleteDefault = AllowDelete.Yes;&lt;br /&gt;&lt;br /&gt;     //Add the AddNew button&lt;br /&gt;     e.Layout.AddNewBox.Hidden = false;&lt;br /&gt;     e.Layout.Bands[0].AddButtonCaption = "Add New";&lt;br /&gt;     e.Layout.Bands[0].AddButtonToolTipText = "Click here to Add New.";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     //// The Primary key field in most cases is an autogenerated number and will not be updated or set by the user.  This&lt;br /&gt;     //// will prevent user action to modify the value&lt;br /&gt;     e.Layout.Bands[0].Columns.FromKey("Sr").AllowUpdate = AllowUpdate.No;    &lt;br /&gt;&lt;br /&gt;     //// The DataKeyField of the Band should be set to PrimaryKey of the underlying table.  To set the DataK&lt;br /&gt;     e.Layout.Bands[0].DataKeyField = "Sr";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;In your page's Page_load event you can bind the grid to any data source e.g.&lt;br /&gt;&lt;br /&gt;this.UWGItems.DataSource = this.TempDt;&lt;br /&gt;this.UWGItems.DataBind();&lt;br /&gt;&lt;br /&gt;Assuming that we've four columns in TempDT:&lt;br /&gt;1) Sr. Serial Number&lt;br /&gt;2) ItemName&lt;br /&gt;3) ItemCode&lt;br /&gt;4) Amount&lt;br /&gt;&lt;br /&gt;These columns will be shown in your UltraWebGrid along with the * with each row for row editing and an 'Add New' button at the bottom of the grid. By clicking on '*' or 'Add New' Button will open up the RowEditTemplate which we'll be using later in this article.&lt;br /&gt;&lt;br /&gt;Define the RowEditTemplate for your UltraWebGrid by adding the following lines of code to your Grid HTML&lt;br /&gt;&lt;br /&gt;&amp;lt;bands&amp;gt;&lt;br /&gt; &amp;lt;igtbl:ultragridband&amp;gt; &lt;br /&gt;     &amp;lt;rowedittemplate&amp;gt;&lt;br /&gt;         &amp;lt;table border=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;             &amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;                 &amp;lt;td colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;&amp;gt;Item Description&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 align=&amp;quot;right&amp;quot;&amp;gt;Item Name:&amp;lt;/td&amp;gt;&lt;br /&gt;                 &amp;lt;td align=&amp;quot;left&amp;quot;&amp;gt;&amp;lt;input id=&amp;quot;tmplItemName&amp;quot; size=&amp;quot;50&amp;quot; &lt;br /&gt;&lt;br /&gt;columnkey=&amp;quot;ItemName&amp;quot; type=&amp;quot;text&amp;quot;&amp;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 align=&amp;quot;right&amp;quot;&amp;gt;Code:&amp;lt;/td&amp;gt;&lt;br /&gt;                 &amp;lt;td align=&amp;quot;left&amp;quot;&amp;gt;&amp;lt;input id=&amp;quot;tmplItemCode&amp;quot; disabled=&amp;quot;disabled&amp;quot; &lt;br /&gt;&lt;br /&gt;value=&amp;quot;821311&amp;quot; size=&amp;quot;8&amp;quot; type=&amp;quot;text&amp;quot;&amp;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 align=&amp;quot;right&amp;quot;&amp;gt;Amount:&amp;lt;/td&amp;gt;&lt;br /&gt;                 &amp;lt;td align=&amp;quot;left&amp;quot;&amp;gt;&amp;lt;input id=&amp;quot;tmplItemAmount&amp;quot; size=&amp;quot;18&amp;quot; &lt;br /&gt;&lt;br /&gt;columnkey=&amp;quot;Amount&amp;quot; type=&amp;quot;text&amp;quot;&amp;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;/td&amp;gt;&lt;br /&gt;                 &amp;lt;td align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;                     &amp;lt;input id=&amp;quot;igtbl_reOkBtn&amp;quot; class=&amp;quot;button&amp;quot; &lt;br /&gt;&lt;br /&gt;onclick=&amp;quot;ValidateTemplate();igtbl_gRowEditButtonClick(event);&amp;quot; style=&amp;quot;width: 67px;&amp;quot; value=&amp;quot;OK&amp;quot; &lt;br /&gt;&lt;br /&gt;type=&amp;quot;button&amp;quot;&amp;gt;&lt;br /&gt;                     &amp;lt;input id=&amp;quot;igtbl_reCancelBtn&amp;quot; class=&amp;quot;button&amp;quot; &lt;br /&gt;&lt;br /&gt;onclick=&amp;quot;igtbl_gRowEditButtonClick(event);&amp;quot; style=&amp;quot;width: 67px;&amp;quot; value=&amp;quot;Cancel&amp;quot; &lt;br /&gt;&lt;br /&gt;type=&amp;quot;button&amp;quot;&amp;gt;&lt;br /&gt;                 &amp;lt;/td&amp;gt;&lt;br /&gt;             &amp;lt;/tr&amp;gt;&lt;br /&gt;         &amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;     &amp;lt;/rowedittemplate&amp;gt;&lt;br /&gt; &amp;lt;/igtbl:ultragridband&amp;gt;&lt;br /&gt;&amp;lt;/bands&amp;gt;&lt;br /&gt;&lt;br /&gt;You may wish to validate the boxes on OK button click, you can define your ValidateTemplate() function and put necessary code according to your requirements&lt;br /&gt;&lt;br /&gt;The function call igtbl_gRowEditButtonClick(event); is UltraWebGrid's built in call that will handle the 'OK' or 'Cancel' button click&lt;br /&gt;&lt;br /&gt;In between your &amp;lt;displaylayout&amp;gt;&amp;lt;/displaylayout&amp;gt; tags, you've to add a line which describes some client side functions&lt;br /&gt;&lt;br /&gt;&amp;lt;clientsideevents dblclickhandler=&amp;quot;DblClick&amp;quot; beforerowtemplateclosehandler=&amp;quot;BeforeRowTemplateClose&amp;quot; &lt;br /&gt;&lt;br /&gt;afterrowtemplateclosehandler=&amp;quot;AfterRowTemplateClose&amp;quot;&amp;gt;&amp;lt;/clientsideevents&amp;gt;&lt;br /&gt;&lt;br /&gt;What happens when a user double clicks on any row or item, our function will just return 1 without doing anything means that there would be no operation in that case&lt;br /&gt;&lt;br /&gt;// called when a cell, row label, or column header is double clicked&lt;br /&gt;function DblClick(tableName, itemName)&lt;br /&gt;{&lt;br /&gt; return 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Our Purpose is to handle the RowEditTemplate using javascript, This following function will be called just before the RowEditTemplate is being closed.&lt;br /&gt;We'll be showing the next serial id and code using javascript, rest of the columns will be mapped automatically&lt;br /&gt;&lt;br /&gt;function BeforeRowTemplateClose(gridName,rowId,bSaveChanges)&lt;br /&gt;{       &lt;br /&gt;    if(bSaveChanges)&lt;br /&gt;    {&lt;br /&gt;        var ActiveRow = igtbl_getActiveRow(gridName);&lt;br /&gt;        var oGrid = igtbl_getGridById(gridName);        &lt;br /&gt;        var MaxCount=0;    &lt;br /&gt;        var arr = rowId.split("_");    &lt;br /&gt;        var ActualRowID = arr[arr.length-1];&lt;br /&gt;        var RowsCounter = oGrid.Rows.length;   &lt;br /&gt;        &lt;br /&gt;        for(c = 0; c &amp;lt; RowsCounter; c++) &lt;br /&gt;        {   &lt;br /&gt;            var row = oGrid.Rows.getRow(c);        &lt;br /&gt;            var CounterCell = row.getCell(0);                &lt;br /&gt;            if(CounterCell.getValue()!=null)&lt;br /&gt;                MaxCount=CounterCell.getValue();&lt;br /&gt;            else if(CounterCell.getValue()==null &amp;&amp; ActualRowID!=c)&lt;br /&gt;                oGrid.Rows.remove(c);                               &lt;br /&gt;        }         &lt;br /&gt;        if(ActiveRow != null)&lt;br /&gt;        {     &lt;br /&gt;            // Obtain the Cell object for Sr Column and Update the Cell value &lt;br /&gt;            if(ActiveRow.getCell(0).getValue()==null)&lt;br /&gt;                ActiveRow.getCell(0).setValue(MaxCount+1);&lt;br /&gt;            // Obtain the Cell object for Code Column and Update the Cell value &lt;br /&gt;                ActiveRow.getCell(2).setValue("821311");&lt;br /&gt;            &lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(bSaveChanges): &lt;br /&gt;    OK button of RowEditTemplate is clicked&lt;br /&gt;&lt;br /&gt;var ActiveRow = igtbl_getActiveRow(gridName);&lt;br /&gt;    Get the active row of grid by specifying grid name&lt;br /&gt;&lt;br /&gt;var arr = rowId.split("_");    &lt;br /&gt;var ActualRowID = arr[arr.length-1];&lt;br /&gt;    Split the row ID and get the actual rowID&lt;br /&gt; &lt;br /&gt;for(c = 0; c &amp;lt; RowsCounter; c++) &lt;br /&gt;{    &lt;br /&gt;    var row = oGrid.Rows.getRow(c);        &lt;br /&gt;    var CounterCell = row.getCell(0);                &lt;br /&gt;    if(CounterCell.getValue()!=null)&lt;br /&gt;        MaxCount=CounterCell.getValue();&lt;br /&gt;    else if(CounterCell.getValue()==null &amp;&amp; ActualRowID!=c)&lt;br /&gt;        oGrid.Rows.remove(c);        &lt;br /&gt;}    &lt;br /&gt;    Loop through the grid till the RowsCounter, traverse through each row go till the last row, get the SerialNumber value and assign it to MaxCount, if the CounterCell's value is null then delete that un-necessary row&lt;br /&gt;&lt;br /&gt;if(ActiveRow != null)&lt;br /&gt;{     &lt;br /&gt;    // Obtain the Cell object for Sr Column and Update the Cell value &lt;br /&gt;    if(ActiveRow.getCell(0).getValue()==null)&lt;br /&gt;        ActiveRow.getCell(0).setValue(MaxCount+1);&lt;br /&gt;    // Obtain the Cell object for Code Column and Update the Cell value &lt;br /&gt;        ActiveRow.getCell(2).setValue("821311");&lt;br /&gt;    &lt;br /&gt;}&lt;br /&gt;    Check if the ActiveRow is not null and active row's cell 0 has null value then place the new SerialNumber by adding 1 to MaxCount we already calculated.&lt;br /&gt;    We may wish to display some static code to the ItemCode column, for that purpose we've to place that value to active row's cell no. 2 which is the ItemCode column.&lt;br /&gt;    &lt;br /&gt;Now you may wish to display the total of amounts entered in the Amount column, for this you will be writing javascript &lt;br /&gt;&lt;br /&gt;function 'AfterRowTemplateClose'&lt;br /&gt;function AfterRowTemplateClose(tableName,itemName)&lt;br /&gt;{   &lt;br /&gt;    var oGrid = igtbl_getGridById(tableName);        &lt;br /&gt;    var RowsCounter = oGrid.Rows.length;     &lt;br /&gt;    //loop through grid values to calculate the total   &lt;br /&gt;    var Amount=0;&lt;br /&gt;    for(c = 0; c &amp;lt; RowsCounter; c++) &lt;br /&gt;    {   &lt;br /&gt;        var row = oGrid.Rows.getRow(c);                    &lt;br /&gt;        if(row.getCell(1).getValue()!=null)&lt;br /&gt;        {&lt;br /&gt;            var AmountCellVal = row.getCell(3).getValue();                            &lt;br /&gt;            Amount += parseInt(GetAmount(AmountCellVal));                                       &lt;br /&gt;        }&lt;br /&gt;    }       &lt;br /&gt;    // Obtain the txtTotalAmount textbox and update its value &lt;br /&gt;    document.getElementById('&amp;lt;%=txtTotalAmount.ClientID.ToString()%&amp;gt;").value=Amount;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Get the grid using&lt;br /&gt;    var oGrid = igtbl_getGridById(tableName);        &lt;br /&gt;Get the row counte using&lt;br /&gt;    var RowsCounter = oGrid.Rows.length;     &lt;br /&gt;Loop through the grid, find the last column of the grid which is infact the amount column, add all the amounts &lt;br /&gt;for(c = 0; c &amp;lt; RowsCounter; c++) &lt;br /&gt;    {   &lt;br /&gt;        var row = oGrid.Rows.getRow(c);                    &lt;br /&gt;        if(row.getCell(1).getValue()!=null)&lt;br /&gt;        {&lt;br /&gt;            var AmountCellVal = row.getCell(3).getValue();                            &lt;br /&gt;            Amount += parseInt(GetAmount(AmountCellVal));                                       &lt;br /&gt;        }&lt;br /&gt;    }  &lt;br /&gt;&lt;br /&gt;// Obtain the txtTotalAmount textbox and update its value &lt;br /&gt;document.getElementById('&amp;lt;%=txtTotalAmount.ClientID.ToString()%&amp;gt;").value=Amount;&lt;br /&gt;&lt;br /&gt;Waiting for your comments on this article&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-5358005121262172227?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/5358005121262172227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=5358005121262172227' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/5358005121262172227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/5358005121262172227'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2008/07/how-to-use-infragistics-ultrawebgrid_29.html' title='How to: use Infragistics UltraWebGrid RowEditTemplate using Javascript in ASP.NET 2.0 (C#)'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6879908154389740393.post-2294230128832460948</id><published>2008-07-17T22:29:00.000-07:00</published><updated>2008-07-18T00:23:21.146-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VS.NET 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX Toolkit'/><category scheme='http://www.blogger.com/atom/ns#' term='Response.Redirect Issue with Anthem.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Application'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Page'/><category scheme='http://www.blogger.com/atom/ns#' term='Jason Diamond'/><category scheme='http://www.blogger.com/atom/ns#' term='Anthem.NET'/><title type='text'>Working with Anthem.NET</title><content type='html'>Anthem.NET is an open source cross platform AJAX toolkit for the ASP.NET 1.1 and 2.0 development environment. Anthem.NET controls library has built in AJAX functionality and all credit goes to Jason Diamond who had the great idea to encapsulate AJAX functionality into regular Web Form controls. By using the Anthem.NET controls we can get rid of the typical postbacks.&lt;br /&gt;&lt;br /&gt;All you have to do is download the Anthem.NET project source code from the following URL:&lt;br /&gt;&lt;br /&gt;http://anthemdotnet.com/downloads.aspx&lt;br /&gt;&lt;br /&gt;This source code includes different projects for VS.NET 2003, 2005, Examples and Extensions.&lt;br /&gt;&lt;br /&gt;There are multiple ways to include Anthem.NET into your project:&lt;br /&gt;&lt;br /&gt;1) You can add a reference to your project by browsing to the Anthem-2005 (if we take an example to integrate the Anthem.NET in our VS.NET 2005 project) and open the file named 'Anthem-2005.csproj'&lt;br /&gt;&lt;br /&gt;2) Alternatively you can seperately compile the Anthem-2005, generate the dll, copy and place it in your bin directory.&lt;br /&gt;&lt;br /&gt;Now what happens if we want to use those Anthem.NET controls to our ASP.NET Web Application.&lt;br /&gt;&lt;br /&gt;First of all you have to register that Anthem assembly to your page using&lt;br /&gt;&lt;br /&gt;&lt;%@ Register TagPrefix="anthem" Namespace="Anthem" Assembly="Anthem" %&gt;&lt;br /&gt;&lt;br /&gt;Add an anthem:Button to your page:&lt;br /&gt;&lt;br /&gt;&lt;anthem:button id="btnDisplayTime" runat="server" text="Display Time!"&gt;&lt;br /&gt;&lt;br /&gt;Add a label to your page that would be used to show the current time without a postback whenever the above button is clicked&lt;br /&gt;&lt;br /&gt;&lt;anthem:label id="lblDisplayTime" runat="server" autoupdateaftercallback="true"&gt;&lt;br /&gt;&lt;br /&gt;The attribute 'AutoUpdateAfterCallBack="true"' updates the control after every callback&lt;br /&gt;&lt;br /&gt;Now add an event handler attribute for button's click as you do with your normal ASP.NET Button&lt;br /&gt;&lt;br /&gt;&lt;anthem:button id="btnDisplayTime" runat="server" text="Click Me!" onclick="btnDisplayTime_Click"&gt;&lt;br /&gt;&lt;br /&gt;Do necessary coding in the event handler&lt;br /&gt;&lt;br /&gt;void btnDisplayTime_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;   lblDisplayTime.Text = DateTime.Now.ToString();  &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;By running your web application you can see the result that the lable will be updated without having any postback. Working with Anthem.NET is as easy as your normal ASP.NET controls library.&lt;br /&gt;&lt;br /&gt;There is a problem that sometimes when you want to use Response.Redirect with Anthem.NET Controls, it doesnt work, Jason Diamond has given a way around for this problem.&lt;br /&gt;&lt;br /&gt;You can use the following line of code in order to change the location of window.&lt;br /&gt;&lt;br /&gt;Anthem.Manager.AddScriptForClientSideEval("window.location = 'http://www.google.com';");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Waiting for your comments on this article&lt;/anthem:button&gt;&lt;/anthem:label&gt;&lt;/anthem:button&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6879908154389740393-2294230128832460948?l=adeelnasir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adeelnasir.blogspot.com/feeds/2294230128832460948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6879908154389740393&amp;postID=2294230128832460948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/2294230128832460948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6879908154389740393/posts/default/2294230128832460948'/><link rel='alternate' type='text/html' href='http://adeelnasir.blogspot.com/2008/07/working-with-anthemnet.html' title='Working with Anthem.NET'/><author><name>Adeel Nasir</name><uri>http://www.blogger.com/profile/06728408176987909399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp3.blogger.com/_wiYfmBAbnWY/SH7Pt2NQa0I/AAAAAAAAAAU/yXoe4c3fB7s/S220/P1160354.JPG'/></author><thr:total>0</thr:total></entry></feed>
