tag:blogger.com,1999:blog-124468382024-03-14T13:47:44.218+05:30Tech TreasureRajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.comBlogger113125tag:blogger.com,1999:blog-12446838.post-21881898551314004512010-11-12T00:46:00.001+05:302010-11-12T00:46:12.494+05:30JQuery selector tutorial     Today I read another god article about JQuery selector tutorial. Here is a link for that. Two great articles about JQuery in one day, amazing !!! Happy Programming  !!! Chirag Darji ASP.NET Consultant & Trainer Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com50tag:blogger.com,1999:blog-12446838.post-30442372868299084102010-11-12T00:39:00.001+05:302010-11-12T00:39:03.845+05:30JQuery Selector, JQuery Event Binding, JQuery “this” keyword           Today while reading about JQuery I came across really helpful and well narrated article about JQuery Selector, JQuery Event Binding and use this key word in JQuery by Elijah Manor. You can read it here. Happy programming !!! Chirag Darji ASP.NET Consultant & Trainer Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com5tag:blogger.com,1999:blog-12446838.post-73723317606749668542010-08-23T15:44:00.001+05:302010-08-23T15:44:41.083+05:30Find Second Saturday and Fourth Saturday of Month       While analyzing Payroll management system, I came across an interesting question that how can we find second and fourth Saturday of every month. As in India we still do not have five days a week in most of organization, bad humm……:( . Most of organizations offer only second and fourth Saturday off. Below is the code to find particular day of week and its Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com2tag:blogger.com,1999:blog-12446838.post-67223594286416133582010-08-07T00:16:00.001+05:302010-08-07T00:16:56.315+05:30Complete Installation guide for CRM 4.0 / Step by Step guide to install CRM 4.0        Last week I installed Microsoft Dynamic 4.0 on my virtual machine and I found that it will be helpful for beginner like me, if there is a step by step installation guide. Lets start with OS selection. 1. You can use Windows Server 2003 or later server version. I had Windows Server 2003 R2. 2. Install latest service pack for OS you installed. 3. Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-16766519186863105182010-07-30T18:05:00.001+05:302010-07-30T18:05:37.521+05:30SQL Server Date Format and Convert DateTime to particular format    I was playing with different date format in SQL Server as need to display date in YYYY-MM-DD HH:MI:SS.MMM format. I knew there is a CONVERT function which can do this however I did not have the exact parameter value to convert my date to mentioned format. I got really use full chart on internet which provides different option and parameter value for CONVERT function. For my Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-24462364192249057262010-03-06T12:20:00.001+05:302010-03-06T12:20:43.243+05:30SQL Server – Maximum columns in Table, Maximum Columns in Group By, Cluster Index Per Table, Max Database Size, Maximum characters in NTEXT, NVARCHAR(MAX) and all maximum in SQL SERVER     While reading MSDN today I came across very interested topic. This is very use full specially in interview. Link shows maximum character allow in NVARCHAR(MAX), NTEXT, VARCHAR(MAX), Maximum cluster index per table, maximum columns per table, Maximum columns per Foreign Key, Maximum Columns in Group By and so on. Here is the link from MSDN Happy Programming !!! Chirag Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-74526028118644738112010-02-17T14:38:00.001+05:302010-02-17T14:38:05.875+05:30XML Parsing Error: no element found        Today while working with JQuery-Ajax, I found an interesting error. I have used $.ajax() function to retrieve data from remote page. While testing I found that the page always show error : XML Parsing Error: no element found. Error does not contain specific information about the source of error. The common reason for XML Parsing Error: no element found Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-24661381879317335002010-01-28T18:01:00.000+05:302010-01-28T18:03:53.578+05:30JQuery Conflict with Mootool and other libraries !!! Use JQuery.noConflict()           We all may have use JQuery in our application to build rich UI. While working with JQuery today I found that JQuery is not working on some pages where I have user mootool scripts. I search on net and found a very descriptive solution at JQuery site.            According to this article Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-51189914337516991112009-10-09T13:08:00.001+05:302009-10-09T13:08:52.567+05:30Set Full Image Path in FCK Editor        We have used FCK editor as an HTML editor for our recent project. It is one the best and easy to integrate HTML editor available free. When I test the editor on local server and it works fine. However when we add image using FCK editor the image path is relative to tour webpage. So if you have created an email template using FCK editor and you sends Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-58444274136647939902009-08-21T01:34:00.001+05:302009-08-21T01:34:39.513+05:30AJAX UpdatePanel and UpdateProgress to show please wait     While refreshing the AJAX skill today I wrote a simple code to display please wait message while asynchronous postback. I added one Update Panel, one Update Progress panel and a button control and registered button  as Asynchronous Postback Trigger control. I assign my UpdatePanel’s id as AssociatedUpdatePanelID to UpdateProgress panel. I ran the code found that Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-91639928342635925692009-08-20T01:11:00.001+05:302009-08-20T01:11:23.240+05:30Context.RewritePath and Images     I was reading articles on URL Rewriting in ASP.NET and I found the most common way suggested is to use Context.RewritePath either in global.asax file or in HttpHandler with Application_BeginRequest method. The most common found code is Context.RewritePath(NewURL). When you the application you find it works like a charm and yes it does so!!!!.      Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-77877999787145072162009-08-13T00:34:00.001+05:302009-08-13T00:34:40.648+05:30How to detect page is loaded      Sometime we need to find when the page is loaded or page is completely loaded before specific java script function is called.  As we all know if try to access DOM element using document.getElementBtId() before page is loaded or page is completely loaded we get error. So to prevent the error we can user following java script to detect page is loaded?Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-83070576209936987052009-08-11T15:28:00.003+05:302009-08-11T15:28:29.790+05:30How to set multiple default button in ASP.NET In my previous post I mentioned the one way to set default button in ASP.NET. There are few other methods also. One of them is to use asp panel and set its DefaultButton property. When we need to set multiple default buttons on single page we can do it by using asp panels. Lets consider that you have login control and search control on same page.&Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-64457537506957919812009-05-20T14:43:00.001+05:302009-05-20T14:43:35.487+05:30Maintain Viewstate for Dynamic controls across the postback Most of us have faced the case when we have to load the controls dynamically. We can load user control by calling LoadControl method. To load inbuilt server controls we can use Page.Form.Controls.Add() method or we can user any container like panel or place holder and call Controls.Add() method. Upto this it looks very easy and works fine. However at first Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-85456193209023427492009-05-14T11:50:00.001+05:302009-05-14T11:50:43.978+05:30Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc You may receive "Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc" while connection to database. I got the error when I tried to connect to SQL Server 2005 from Visual studio 2008 using server explorer. The exact error is, Could not load file or assembly ‘Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com7tag:blogger.com,1999:blog-12446838.post-30714485536935392372009-03-12T01:37:00.001+05:302009-03-12T01:37:56.908+05:30Happy Holi       HOLI , a festival of color!!!!!!.  This holi is the best holi I enjoyed so far. I was with my friends for whole day and we colored one another. These are my college friends Mihir - Binal, Piyush – Apeksha. We missed our two friends who are in US. SHAILESH and DIPAK. See few snaps……           Its me (Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-32853497347075832022009-01-07T18:08:00.001+05:302009-01-07T18:08:17.934+05:30The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2) You may find this error while working with Data Application block in enterprise library. When you look into the inner exception you will find the message "The value can not be null or an empty string.". This message does not give proper information to user. When enterprise library does not Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-19114279081984167082009-01-05T17:04:00.001+05:302009-01-05T17:04:58.033+05:30An error occurred creating the configuration section, 'Microsoft.Practices.EnterpriseLibrary,The located assembly's manifest definition does not match the assembly reference Today I was exploring Enterprise Library 4.1 and encounter this error. I created a sample application and added reference to few DLL from "EntLib41Src\bin" folder to my application. When I hit F5 to run the application I got following error, "An error occurred creating the configuration section handler for exceptionHandling: Could not load file or assembly 'Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com6tag:blogger.com,1999:blog-12446838.post-25203530523953308652008-10-22T15:02:00.001+05:302008-10-22T15:02:36.433+05:30Page Methods is undefined You may receive "Page Methods is undefined while calling Server Side function from Client Side Code using PageMethods in AJAX. The possible cause can be, 1. You may have not added EnablePageMethods="true" in ScriptManager tag. 1: <ajax:ScriptManager 2: EnablePageMethods="true" ID="ScriptManager1" runat="server"> 3: </ajax:Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-75488229351753349212008-09-16T16:58:00.001+05:302008-09-16T16:58:17.660+05:30Integrate Youtube in ASP.NET I will discuss how to integrate youtube video in asp.net. Youtube provides the API to access the its huge database of videos. It also provides search facility and customized player for integration. First thing you need is to get developer key for accessing youtube service. You can get it from here. Once you get the Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-11605925376654447162008-09-09T17:59:00.001+05:302008-09-09T17:59:46.217+05:30GROUP BY, CUBE, ROLLUP and SQL SERVER 2005 I learn about CUBE and ROLLUP function today and I found it really usefull for generating reports. For more detail visit here. Happy Programming !!!!Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-65195359895661305822008-09-02T17:27:00.001+05:302008-09-02T17:27:11.213+05:30How to detect browser using JavaScript As a software developers we must have to deal with javascript every now and than. There are some scripts which is browser dependent. You need to write different functions for different browsers. To achieve this you must require to detect the browser. Below code may helps you, 1: var isIE = false; 2: var isFF = false; 3: var isOP = false; Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com1tag:blogger.com,1999:blog-12446838.post-54727765169774735222008-08-11T15:55:00.001+05:302008-08-11T15:55:16.251+05:30How to Encrypt connection string in web.config The most sensitive information stored in web.config file can be the connection string. You do not want to disclose the information related to your database to all the users where the application is deployed. Every time it is not possible to have a private machine for your sites, you may need to deploy the site in shared host environment. To encrypt the connection string Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-75964962939965777282008-07-25T00:52:00.001+05:302008-07-25T00:52:13.477+05:30How to find duplicate values from List<> ? I have generic list say, List<int> and I want to find the duplicate values from the List<int> and store it in new List<int>. There are many ways to achive this. One can loop through all the elements of List<int> and store the duplicate in other list OR can use anonymous method to acieve same. I love the anonymous method. Here is the code to get Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0tag:blogger.com,1999:blog-12446838.post-39345002333908383022008-07-18T00:58:00.001+05:302008-07-18T00:58:19.084+05:30RegisterStartupScript and RegisterClientScriptBlock There two powerful methods available in dotnet two include JavaScript on page from code behind. Normally we write the JavaScript functions on aspx page however in some case we have to dynamic script which we can not write on aspx page for many reasons like the script require some data which we have to fetch from database or require some operations Rajahttp://www.blogger.com/profile/01555956548038611316noreply@blogger.com0