<?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-2493419386142402168</id><updated>2011-09-19T06:58:31.774-07:00</updated><category term='Get Current Week Start Date'/><category term='Dropdown Cascading effect in a datalist'/><title type='text'>Azhar's Blog Space</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.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-2493419386142402168.post-8426269979183122195</id><published>2010-12-23T02:18:00.000-08:00</published><updated>2010-12-23T03:44:49.664-08:00</updated><title type='text'>Export a text file from Excel with comma delimiters and single quotes.</title><content type='html'>I got this need for exporting excel in a text file with comma delimters and single quotes to troubleshoot a issue in oracle database.&lt;br /&gt;&lt;br /&gt;The issue was to find the records in the table with against their primary keys, now the primary key type was a string and I had them in a excel file and they were 100s in number, now think to write a where clause it will be a pain in ass..&lt;br /&gt;&lt;br /&gt;So I found out the method to export the excel in  text format with the records as comma delimtted and with single quotes as we need them in where clause.&lt;br /&gt;&lt;br /&gt;Eg. Select * from Employee Where EmployeeID in ('XYZ', 'ABC', 'YUV'.......)&lt;br /&gt;&lt;br /&gt;1. Copy your contents in a MACRO enabled Excel workbook.&lt;br /&gt;2. Press Alt + F11 or go to Developer Tab and then click Visual Basic in the code group.&lt;br /&gt;3. Go to MS main menu - &gt; Excel Options - &gt; Popular - &gt; select the Show Developer and click OK.&lt;br /&gt;4. Open the Visual Basic editor and click the Module on the insert menu.&lt;br /&gt;5. Paste the following code in the module space&lt;br /&gt;&lt;br /&gt;Sub ExportTextFormat()&lt;br /&gt;   ' Dimension all variables.&lt;br /&gt;   Dim DestFile As String&lt;br /&gt;   Dim FileNum As Integer&lt;br /&gt;   Dim ColumnCount As Integer&lt;br /&gt;   Dim RowCount As Integer&lt;br /&gt;&lt;br /&gt;   ' Prompt user for destination file name.&lt;br /&gt;   DestFile = InputBox("Enter the destination filename" _&lt;br /&gt;      &amp; Chr(10) &amp; "(with complete path):", "Quote-Comma Exporter")&lt;br /&gt;&lt;br /&gt;   ' Obtain next free file handle number.&lt;br /&gt;   FileNum = FreeFile()&lt;br /&gt;&lt;br /&gt;   ' Turn error checking off.&lt;br /&gt;   On Error Resume Next&lt;br /&gt;&lt;br /&gt;   ' Attempt to open destination file for output.&lt;br /&gt;   Open DestFile For Output As #FileNum&lt;br /&gt;&lt;br /&gt;   ' If an error occurs report it and end.&lt;br /&gt;   If Err &lt;&gt; 0 Then&lt;br /&gt;      MsgBox "Cannot open filename " &amp; DestFile&lt;br /&gt;      End&lt;br /&gt;   End If&lt;br /&gt;&lt;br /&gt;   ' Turn error checking on.&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;&lt;br /&gt;   ' Loop for each row in selection.&lt;br /&gt;   For RowCount = 1 To Selection.Rows.Count&lt;br /&gt;&lt;br /&gt;      ' Loop for each column in selection.&lt;br /&gt;      For ColumnCount = 1 To Selection.Columns.Count&lt;br /&gt;&lt;br /&gt;         ' Write current cell's text to file with quotation marks.&lt;br /&gt;         Print #FileNum, "'" &amp; Selection.Cells(RowCount, _&lt;br /&gt;            ColumnCount).Text &amp; "',";&lt;br /&gt;&lt;br /&gt;         ' Check if cell is in last column.&lt;br /&gt;         If ColumnCount = Selection.Columns.Count Then&lt;br /&gt;            ' If so, then write a blank line.&lt;br /&gt;            Print #FileNum,&lt;br /&gt;         Else&lt;br /&gt;            ' Otherwise, write a comma.&lt;br /&gt;            Print #FileNum, ",";&lt;br /&gt;         End If&lt;br /&gt;      ' Start next iteration of ColumnCount loop.&lt;br /&gt;      Next ColumnCount&lt;br /&gt;   ' Start next iteration of RowCount loop.&lt;br /&gt;   Next RowCount&lt;br /&gt;&lt;br /&gt;   ' Close destination file.&lt;br /&gt;   Close #FileNum&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6. Save the file, select the data you want to export and run the Macro ExportTextFormat.&lt;br /&gt;7. Give a filename with the full path (eg. D:/Test.txt)&lt;br /&gt;8. You are good to go now.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;-Azhar&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-8426269979183122195?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/8426269979183122195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2010/12/export-text-file-from-excel-with-comma.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/8426269979183122195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/8426269979183122195'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2010/12/export-text-file-from-excel-with-comma.html' title='Export a text file from Excel with comma delimiters and single quotes.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-1493285322458148154</id><published>2010-10-27T04:43:00.000-07:00</published><updated>2010-10-27T04:53:05.542-07:00</updated><title type='text'>PL/SQL Date function - to_date()</title><content type='html'>In Oracle/PLSQL, the to_date function converts a string to a date.&lt;br /&gt;&lt;br /&gt;The syntax for the to_date function is:&lt;br /&gt;&lt;br /&gt;to_date( string1, [ format_mask ], [ nls_language ] )&lt;br /&gt;&lt;br /&gt;string1 is the string that will be converted to a date.&lt;br /&gt;&lt;br /&gt;format_mask is optional. This is the format that will be used to convert string1 to a date.&lt;br /&gt;&lt;br /&gt;nls_language is optional. This is the nls language used to convert string1 to a date.&lt;br /&gt;&lt;br /&gt;The following is a list of options for the format_mask parameter. These parameters can be used in many combinations.&lt;br /&gt;&lt;br /&gt;&lt;table cellspacing="0" cellpadding="3" width="500" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;th width="93"&gt;Parameter&lt;/th&gt;&lt;br /&gt;&lt;th&gt;Explanation&lt;/th&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;YEAR&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Year, spelled out&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;YYYY&lt;/td&gt;&lt;br /&gt;&lt;td&gt;4-digit year&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;YYY&lt;br /&gt;&lt;br /&gt;YY&lt;br /&gt;&lt;br /&gt;Y&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Last 3, 2, or 1 digit(s) of year.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;IYY&lt;br /&gt;&lt;br /&gt;IY&lt;br /&gt;&lt;br /&gt;I&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Last 3, 2, or 1 digit(s) of ISO year.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;IYYY&lt;/td&gt;&lt;br /&gt;&lt;td&gt;4-digit year based on the ISO standard&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;RRRR&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Accepts a 2-digit year and returns a 4-digit year.&lt;br /&gt;&lt;br /&gt;A value between 0-49 will return a 20xx year.&lt;br /&gt;&lt;br /&gt;A value between 50-99 will return a 19xx year.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;Q&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Quarter of year (1, 2, 3, 4; JAN-MAR = 1).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;MM&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Month (01-12; JAN = 01).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;MON&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Abbreviated name of month.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;MONTH&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Name of month, padded with blanks to length of 9 characters.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;RM&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Roman numeral month (I-XII; JAN = I).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;WW&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;W&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Week of month (1-5) where week 1 starts on the first day of the month and ends on the seventh.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;IW&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Week of year (1-52 or 1-53) based on the ISO standard.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;D&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Day of week (1-7).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;DAY&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Name of day.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;DD&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Day of month (1-31).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;DDD&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Day of year (1-366).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;DY&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Abbreviated name of day.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;J&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Julian day; the number of days since January 1, 4712 BC.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;HH&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Hour of day (1-12).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;HH12&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Hour of day (1-12).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;HH24&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Hour of day (0-23).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;MI&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Minute (0-59).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;SS&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Second (0-59).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;SSSSS&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Seconds past midnight (0-86399).&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;FF&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Fractional seconds. Use a value from 1 to 9 after FF to indicate the number of digits in the fractional seconds. For example, 'FF4'.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;AM, A.M., PM, or P.M.&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Meridian indicator&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;AD or A.D&lt;/td&gt;&lt;br /&gt;&lt;td&gt;AD indicator&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;BC or B.C.&lt;/td&gt;&lt;br /&gt;&lt;td&gt;BC indicator&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;TZD&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Daylight savings information. For example, 'PST'&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;TZH&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Time zone hour.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;TZM&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Time zone minute.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;TZR&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Time zone region.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Applies To:&lt;br /&gt;&lt;br /&gt;Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;to_date('2003/07/09', 'yyyy/mm/dd') would return a date value of July 9, 2003.&lt;br /&gt;to_date('070903', 'MMDDYY') would return a date value of July 9, 2003.&lt;br /&gt;to_date('20020315', 'yyyymmdd') would return a date value of Mar 15, 2002.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-1493285322458148154?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/1493285322458148154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2010/10/plsql-date-function-todate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1493285322458148154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1493285322458148154'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2010/10/plsql-date-function-todate.html' title='PL/SQL Date function - to_date()'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-1704947194277191728</id><published>2010-09-16T05:14:00.000-07:00</published><updated>2010-09-16T05:23:08.899-07:00</updated><title type='text'>Disabling script debugging in VS 2008 and IE 8</title><content type='html'>Visual studio 2008 creates a problem when it starts debugging the javascript. It actually generates a number of files by name anonymous code which leads to a slow debugging in development environment. &lt;br /&gt;&lt;br /&gt;In IE 7 you can disable the script debugging directly from IE tools. But in IE 8 it doesn't work, there are some workarounds given by microsoft as I thought it is good to paste here.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Work around:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   1. This work around requires the Silverlight 2 Tools for Visual Studio 2008 SP1 to be installed. So if you don't have these tools installed, you can download them from Microsoft (&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=C22D6A7B-546F-4407-8EF6-D60C8EE221ED&amp;displaylang=en"&gt;Click Here&lt;/a&gt;). If this is not an option for you, there is some alternative work arounds at the bottom of this blog post.&lt;br /&gt;   2. Right click on your project and open up project properties&lt;br /&gt;   3. Go to the 'Start Options' sheet, and click the 'Silverlight' button at the bottom of the screen. Because the debugger cannot debug both Silverlight code and Script code at the same time, this will disable Script debugging and therefore avoid the problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Alternative work around – disable all script debugging:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    * Open a new command prompt (start-&gt;run, cmd.exe). If you are on a 64-bit computer this needs to be a 32-bit prompt (start-&gt;run, c:\windows\syswow64\cmd.exe)&lt;br /&gt;    * reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f&lt;br /&gt;&lt;br /&gt;If you are using Visual Web Developer Express, replace 'VisualStudio' with 'VWDExpress':&lt;br /&gt;&lt;br /&gt;    * reg add HKLM\SOFTWARE\Microsoft\VWDExpress\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f&lt;br /&gt;&lt;br /&gt;If you want to restore your computer so that you can debug scripts again:&lt;br /&gt;&lt;br /&gt;    * reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {170EC3FC-4E80-40AB-A85A-55900C7C70DE} /f&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Work around for performance problems caused by 'anonymous code' nodes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Some sites run into problems being debugged due to numerous "anonymous code" nodes in solution explorer. For these sites, instead of disabling script debugging completely, it's possible to disable just the 'anonymous code' nodes. This requires Visual Studio 2008 SP1. To do so:&lt;br /&gt;&lt;br /&gt;    * reg add HKCU\Software\Microsoft\VisualStudio\9.0\Debugger /v HideAnonymousScriptCodeNodes /t REG_DWORD /d 1 /f&lt;br /&gt;&lt;br /&gt;Hope this helps!!&lt;br /&gt;&lt;br /&gt;-Azhar&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-1704947194277191728?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/1704947194277191728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2010/09/disabling-script-debugging-in-vs-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1704947194277191728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1704947194277191728'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2010/09/disabling-script-debugging-in-vs-2008.html' title='Disabling script debugging in VS 2008 and IE 8'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-3720605658458650630</id><published>2010-08-12T02:22:00.000-07:00</published><updated>2010-08-12T02:26:43.547-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Get Current Week Start Date'/><title type='text'>How to get current week start date from current date in .NET</title><content type='html'>Following code will give you the week start date on passing any date.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private DateTime getWeekStartDate(DateTime weekDate)&lt;br /&gt;    {&lt;br /&gt;        DateTime currentWeekStartDate = weekDate;&lt;br /&gt;        &lt;br /&gt;        string StartDay = "1" // You can set any day as start day of the week&lt;br /&gt;                              // 1 for monday, 2 for tuesday and so on&lt;br /&gt;        &lt;br /&gt;               while (!StartDay.ToLower().Equals(currentWeekStartDate.DayOfWeek.ToString().ToLower()))&lt;br /&gt;        {&lt;br /&gt;            currentWeekStartDate = currentWeekStartDate.Subtract(new TimeSpan(1, 0, 0, 0));&lt;br /&gt;        }&lt;br /&gt;return currentWeekStartDate &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hope this helps, thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-3720605658458650630?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/3720605658458650630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2010/08/how-to-get-current-week-start-date-from.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/3720605658458650630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/3720605658458650630'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2010/08/how-to-get-current-week-start-date-from.html' title='How to get current week start date from current date in .NET'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-1030755241898981520</id><published>2010-08-12T02:06:00.000-07:00</published><updated>2010-08-12T02:17:40.069-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dropdown Cascading effect in a datalist'/><title type='text'>How to catch a drop down event from a datalist and have a cascading effect.</title><content type='html'>Many a times in projects we have come across a need to get a drop down event from a datalist for a particular row, here is the code how you can achieve it.&lt;br /&gt;&lt;br /&gt;1. In your data list set the selected index change event of the drop down and set the AutpPostBack Property to true.&lt;br /&gt;&lt;br /&gt;2. Write the code as below&lt;br /&gt;&lt;br /&gt;protected void ddlYourDropDown_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;        DropDownList ddlYourDropDown= (DropDownList)sender;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //So here you got the dropdown from the datalist row&lt;br /&gt;        // do whatever you want&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Once you get the particular drop down from the datalist you can do whatever you want with its value, for example, if you need to have a cascading effect of drop downs within your data list, then you can acieve it very easily as below.&lt;br /&gt;&lt;br /&gt; protected void ddlParentDropDown_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;        DropDownList ddlParentDropDown_= (DropDownList)sender;&lt;br /&gt;        DataListItem dataListItem = (DataListItem)ddl.Parent; // get the datalistitem you select to get the drop down to which you want to populate based on the parent drop down&lt;br /&gt;&lt;br /&gt;        DropDownList ddlChildDropDown= (DropDownList)dataListItem.FindControl("ddlChildDropDown");&lt;br /&gt;        ddlChildDropDown.Items.Clear();&lt;br /&gt;        if (ddlParentDropDown!= null &amp;&amp; ddlChildDropDown!= null)&lt;br /&gt;        {&lt;br /&gt;            if (ddlParentDropDown.SelectedIndex != 0)&lt;br /&gt;            {&lt;br /&gt;                //populate Child drop down with parent drop down's (ddlParentDropDown) value&lt;br /&gt;            &lt;br /&gt;            }&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-1030755241898981520?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/1030755241898981520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2010/08/how-to-catch-drop-down-event-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1030755241898981520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1030755241898981520'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2010/08/how-to-catch-drop-down-event-from.html' title='How to catch a drop down event from a datalist and have a cascading effect.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-4936448413404119588</id><published>2009-10-19T03:01:00.000-07:00</published><updated>2009-10-19T03:10:32.003-07:00</updated><title type='text'>Import Excel into MySql database....!!!!</title><content type='html'>Its easy and quick, thought to share it with you all....&lt;br /&gt;&lt;br /&gt;Convert Excel into csv file with Save As.&lt;br /&gt;Open the csv file in notepad/wordpad, see the delimeter (should be a comma).&lt;br /&gt;Write the following command in the query browser&lt;br /&gt;LOAD DATA LOCAL INFILE 'D:\\converted_csv.csv' INTO TABLE database.table FIELDS TERMINATED BY ',' ENCLOSED BY ‘”‘ LINES TERMINATED BY '\r\n' (table.field1, table.field2,table.field3...);&lt;br /&gt;&lt;br /&gt;If you get any error, probably the single and double qoutes are not correct, sometimes the editor changes the quotes ASCII, better delete the quotes and write again...&lt;br /&gt;&lt;br /&gt;TERMINATED BY is the delimeter you use "comma in our case"&lt;br /&gt;LINES TERMINATED BY – new line character, if you do not use \r, the query will insert a new line character in the database.&lt;br /&gt;&lt;br /&gt;Hope this helps....&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Sayed Azharuddin&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-4936448413404119588?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/4936448413404119588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/10/import-excel-into-mysql-database.html#comment-form' title='36 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/4936448413404119588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/4936448413404119588'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/10/import-excel-into-mysql-database.html' title='Import Excel into MySql database....!!!!'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>36</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-6046769712715466854</id><published>2009-08-31T04:42:00.000-07:00</published><updated>2009-08-31T04:51:47.558-07:00</updated><title type='text'>ORA-06502: PL/SQL: numeric or value error: character string buffer too small</title><content type='html'>This is a common error faced by many of us and some times it takes hours to find what went wrong.&lt;br /&gt;&lt;br /&gt;The reason it happens is &lt;br /&gt;&lt;br /&gt;1) The size of the Varchar2 parameter, the maximum allowed size of the Varchar2   datatype is 4000, if the input string exceeds that number you will get this error.&lt;br /&gt;&lt;br /&gt;2) Or you have defind your parameter of size 10 and trying to write 12 characters.&lt;br /&gt;&lt;br /&gt;Workaround - For first reason, there is no way out you can use the Varchar2 datatype, better use CLOB objects.&lt;br /&gt;&lt;br /&gt;For second, try to increase the size of the parameter.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;-Azhar&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-6046769712715466854?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/6046769712715466854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/08/ora-06502-plsql-numeric-or-value-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/6046769712715466854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/6046769712715466854'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/08/ora-06502-plsql-numeric-or-value-error.html' title='ORA-06502: PL/SQL: numeric or value error: character string buffer too small'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-7760934415845648398</id><published>2009-08-03T04:26:00.000-07:00</published><updated>2009-08-03T04:45:52.755-07:00</updated><title type='text'>PL SQL query to create a search query.</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Often we search for a particular value in the user tables of a database, for each table we have to change the query, if not the column name, at least the table name. The good new is, we can avoid doing that. We can write a query which will create a search query as its result records each for a user table in the database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;select 'select * from '||table_name||'&lt;br /&gt;          where  upper (to_char(&amp;in_column)) = upper (to_char('||'''&amp;in_value'''||'));'&lt;br /&gt;      from  user_tab_columns&lt;br /&gt;      where column_name = upper ('&amp;in_column');&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Run tha above query in PL SQL and see the magic.&lt;br /&gt;&lt;br /&gt;Hope that helps you.&lt;br /&gt;&lt;br /&gt;Thanks..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-7760934415845648398?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/7760934415845648398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/08/pl-sql-query-to-create-search-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/7760934415845648398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/7760934415845648398'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/08/pl-sql-query-to-create-search-query.html' title='PL SQL query to create a search query.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-3231864061174714545</id><published>2009-07-30T04:49:00.000-07:00</published><updated>2009-07-30T05:27:28.936-07:00</updated><title type='text'>Website structure does matter.</title><content type='html'>When you have decided to create a website for your business or say you are a developer and designing a website for your customer, you should always keep in mind that the Web site structure should not be complicated. A website should be well-organized, a well-organized website is one which is easy to understand, navigate and find easily what the visitor is looking for.&lt;br /&gt;&lt;br /&gt;The intensionof the article is to make you understand the level of leaves/pages of the website should reside in. A good well organized website makes it easy for you to grow your site logically. &lt;br /&gt;&lt;br /&gt;The page (which has the content) of your website must not be more than two level in the depth, that is the required page should not take more than two clicks from the home page. This is very important with regards to Search Engines.&lt;br /&gt;&lt;br /&gt;A typical website structure could be as in the picture below.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_HcrYWCYXQZM/SnGJeqMnU8I/AAAAAAAAAB4/Yo64aBvHKe0/s1600-h/websitestr.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 202px;" src="http://1.bp.blogspot.com/_HcrYWCYXQZM/SnGJeqMnU8I/AAAAAAAAAB4/Yo64aBvHKe0/s320/websitestr.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5364219790991250370" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Tier 1 – The home page&lt;br /&gt;&lt;br /&gt;Tier 2 – The team sites/folders/sub sites&lt;br /&gt;&lt;br /&gt;Tier 3 – The leaves/pages with contents&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/radhelp/v6r0m1/index.jsp?topic=/com.ibm.etools.siteedit.doc/topics/tcrtsitestrut.html"&gt;website structure&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.buildwebsite4u.com/building/structure.shtml"&gt;website structure&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.netstrider.com/tutorials/HTML/structure/"&gt;website structure&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-3231864061174714545?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/3231864061174714545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/website-structure-does-matter_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/3231864061174714545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/3231864061174714545'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/website-structure-does-matter_30.html' title='Website structure does matter.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_HcrYWCYXQZM/SnGJeqMnU8I/AAAAAAAAAB4/Yo64aBvHKe0/s72-c/websitestr.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-5004156320078207460</id><published>2009-07-29T23:50:00.000-07:00</published><updated>2009-07-30T03:44:03.636-07:00</updated><title type='text'>Experts have listed Top 25 dangerous errors in the programming world.</title><content type='html'>&lt;a href="http://www.sans.org/top25errors"&gt; click here for Top 25 Errors&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-5004156320078207460?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/5004156320078207460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/experts-have-listed-top-25-dangerous.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/5004156320078207460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/5004156320078207460'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/experts-have-listed-top-25-dangerous.html' title='Experts have listed Top 25 dangerous errors in the programming world.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-7715411687713350301</id><published>2009-07-29T03:56:00.000-07:00</published><updated>2009-07-30T00:09:00.576-07:00</updated><title type='text'>SQL Reporting on Microsoft Sharepoint.</title><content type='html'>Guys, the listed links are very helpful in reporting on sharepoint lists. Reporting on sharepoint list is not that simple as you do with any of the database. It requires specialized skills and creativity. If you can think then you may discover a new method as well.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mssqltips.com/tip.asp?tip=1323"&gt;Click here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/dwise/archive/2007/11/28/connecting-sql-reporting-services-to-a-sharepoint-list-redux.aspx"&gt;Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/reporting-services/ReportFromSharePoint.aspx"&gt;and here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can do query the data from two different lists like you do with tables but then you need a third party tool like Enyses RS Extension.&lt;br /&gt;&lt;br /&gt;Hope this helps!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-7715411687713350301?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/7715411687713350301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/sql-reporting-on-microsoft-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/7715411687713350301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/7715411687713350301'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/sql-reporting-on-microsoft-sharepoint.html' title='SQL Reporting on Microsoft Sharepoint.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-1321261411637703127</id><published>2009-07-29T00:34:00.000-07:00</published><updated>2009-07-30T03:42:21.549-07:00</updated><title type='text'>How to pull Active Directory Users and populate into a drop down.</title><content type='html'>Sometimes it is very hard to get it done, use this code to pull all the users from your active directory. &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;private void populateUsers()&lt;br /&gt;    {&lt;br /&gt;        ddlUsers.Items.Clear();&lt;br /&gt;&lt;br /&gt;        using (HostingEnvironment.Impersonate()) // To break the security for some time&lt;br /&gt;        {&lt;br /&gt;            DirectoryEntry entry = new DirectoryEntry("your AD server name");&lt;br /&gt;            DirectorySearcher searcher = new DirectorySearcher(entry);&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;&lt;br /&gt;                searcher.Filter = " (&amp;(objectClass=user)(objectCategory=person)(DN=*) "; //DN is the distinguished name of the AD user&lt;br /&gt;&lt;br /&gt;                foreach (SearchResult sResultSet in searcher.FindAll())&lt;br /&gt;                {&lt;br /&gt;                    ListItem item = new ListItem();&lt;br /&gt;&lt;br /&gt;                    item.Text = GetProperty(sResultSet, "givenName") + SPACE + GetProperty(sResultSet, "sn"); // sn - Surname&lt;br /&gt;                    item.Value = "your domain" + GetProperty(sResultSet, "sAMAccountName"); // sAMAccountName - login name&lt;br /&gt;&lt;br /&gt;                    ddlUsers.Items.Add(item);&lt;br /&gt;                }&lt;br /&gt;&lt;br /&gt;                ddlUsers.Items.Insert(0, "Select User");&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                throw new AppException(ex);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    public static string GetProperty(SearchResult searchResult, string PropertyName)&lt;br /&gt;    {&lt;br /&gt;        if (searchResult.Properties.Contains(PropertyName))&lt;br /&gt;        {&lt;br /&gt;            return searchResult.Properties[PropertyName][0].ToString();&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            return string.Empty;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;Hope this helps!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-1321261411637703127?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/1321261411637703127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/how-to-pull-active-directory-users-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1321261411637703127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1321261411637703127'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/how-to-pull-active-directory-users-and.html' title='How to pull Active Directory Users and populate into a drop down.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-1765107362706313489</id><published>2009-07-28T21:49:00.000-07:00</published><updated>2009-07-28T21:55:22.643-07:00</updated><title type='text'>Custom webpart development using ASP .NET.</title><content type='html'>There are many references found on the web for custom webpart development, some of which I am adding here, if you want any specific functinality then let me know.&lt;br /&gt;&lt;br /&gt;http://www.codeguru.com/csharp/.net/net_asp/webforms/article.php/c12293/&lt;br /&gt;&lt;br /&gt;http://www.datasprings.com/Resources/ArticlesInformation/Sharepoint2007CustomWebParts/tabid/775/language/en-US/Default.aspx&lt;br /&gt;&lt;br /&gt;http://msdn.microsoft.com/en-us/library/ms452873.aspx&lt;br /&gt;&lt;br /&gt;Hope this helps!!&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-1765107362706313489?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/1765107362706313489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/custom-webpart-development-using-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1765107362706313489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1765107362706313489'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/custom-webpart-development-using-asp.html' title='Custom webpart development using ASP .NET.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-5990247087738462397</id><published>2009-07-28T06:50:00.000-07:00</published><updated>2009-07-28T06:54:05.094-07:00</updated><title type='text'>How to sort a drop down list in C#.</title><content type='html'>There is no built in method available to sort a dropdown or any list in C#, thought to share with you guys.&lt;br /&gt;&lt;br /&gt;#region SortDropDownList&lt;br /&gt;&lt;br /&gt;public void SortDropDownList(DropDownList ddl)&lt;br /&gt;{&lt;br /&gt;    //create a ListItem array the size of the items&lt;br /&gt;    //in your DropDownList&lt;br /&gt;    ListItem[] sorted = new ListItem[ddl.Items.Count];&lt;br /&gt;    //loop through all the items in your ListItem array&lt;br /&gt;    for (int i = 0; i &lt; sorted.Length; i++)&lt;br /&gt;    {&lt;br /&gt;        //resize the array on each iteration&lt;br /&gt;        Array.Resize(ref sorted, i);&lt;br /&gt;        //add the current index to the array&lt;br /&gt;        sorted[i] = ddl.Items[i];&lt;br /&gt;    }&lt;br /&gt;    //call Array.Sort to sort your ListItem array&lt;br /&gt;    Array.Sort(sorted);&lt;br /&gt;    //remove all items from the DropDownList&lt;br /&gt;    ddl.Items.Clear();&lt;br /&gt;    //add the sorted items to the DropDownList&lt;br /&gt;    ddl.Items.AddRange(sorted);&lt;br /&gt;}&lt;br /&gt;#endregion&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-5990247087738462397?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/5990247087738462397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/how-to-sort-drop-down-list-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/5990247087738462397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/5990247087738462397'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/how-to-sort-drop-down-list-in-c.html' title='How to sort a drop down list in C#.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-2279636375421724808</id><published>2009-07-27T02:13:00.000-07:00</published><updated>2009-07-27T02:17:07.151-07:00</updated><title type='text'>text with rotation displayed with no effect in crystal reports.</title><content type='html'>&lt;strong&gt;Problem&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Text with rotation have no effect on DHTML viewer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. locate default.css from C:\Program Files\Business Objects\common\3.5\crystalreportviewers115\css\&lt;br /&gt;&lt;br /&gt;2.Add the vertical text entry to the CSS file and save&lt;br /&gt;&lt;br /&gt; .verticalText&lt;br /&gt;{&lt;br /&gt;   writing-mode: tb-rl;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;3. Specify the vertical text tag in your report by right clicking on the field that you want vertical, selecting properties, and under the “common” tab, enter “verticalText” in the “CSS Class Name” field.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-2279636375421724808?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/2279636375421724808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/text-with-rotation-displayed-with-no.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/2279636375421724808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/2279636375421724808'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/text-with-rotation-displayed-with-no.html' title='text with rotation displayed with no effect in crystal reports.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-2509248161610696473</id><published>2009-07-27T02:02:00.000-07:00</published><updated>2009-07-27T02:05:45.926-07:00</updated><title type='text'>Images/Charts not displayed on view but fine when exported.</title><content type='html'>&lt;strong&gt;Symptom&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Charts/Images on crystal report are not dispalyed when viewed from viewer, but when you export it to any of the format for example "pdf", there you will find your charts/images. I have found a work around for this.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;1. Right-click My Computer and click Manage.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;2. Navigate to Services and Applications &gt; Internet Information Services (IIS) Manager &gt; Web Sites &gt; Default Web Site.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;3. Right-click crystalreportviewers115 and then click Properties.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;4. On the ASP.NET tab, choose a 2.0.x version from the ASP.NET Version list.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;5. Click the Apply button and then click OK.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;6. Right-click businessobjects and click Properties.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;7. On the Virtual Directory tab, click the Configuration button.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;8. Check the path of the mappings and note the version number (in the path ...\Framework\vX.X...)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;9. Repeat steps 2 to 5 for crystalreportsviewers115.If the paths for businessobjects and crystalreportviewers115 are different, change one or the other so that they point to the same version of .NET Framework.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;10. Stop and restart the Default Web Site.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Hope this helps&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Thanks.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-2509248161610696473?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/2509248161610696473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/imagescharts-not-displayed-on-view-but.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/2509248161610696473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/2509248161610696473'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/imagescharts-not-displayed-on-view-but.html' title='Images/Charts not displayed on view but fine when exported.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-380545848856116651</id><published>2009-07-27T01:01:00.000-07:00</published><updated>2009-07-27T01:12:22.777-07:00</updated><title type='text'>How to pass the logged in user name to the store procedure or query in Crystal Reports.</title><content type='html'>Crystal Report has this lilmitation that you cannot use or pass the Crystal Special fields to the stored procedure or command object as a parameter, say if you want to retrieve the data of the current logged in user as&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Select * from tUser where user_id = CurrentCEUserName&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#999900;"&gt;CurrentCEUserName&lt;/span&gt; is the crystal special field. To achieve the above thing, please follow the following steps.&lt;br /&gt;&lt;br /&gt;1) Create a blank report, suppress all the sections except the report footer.&lt;br /&gt;2) Add a formula field and place the special field CurrentCEUserName in the formula.&lt;br /&gt;3) Create a subreport in the and place in the report footer.&lt;br /&gt;4) Create the command with parameter UserId in the subreport.&lt;br /&gt;5) From main report link the formula field created with the subreports command parameter.This way the Current CE User Name will be available in the subreport which is actually our main report.&lt;br /&gt;&lt;br /&gt;Hope this helps,&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-380545848856116651?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/380545848856116651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/how-to-pass-logged-in-user-name-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/380545848856116651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/380545848856116651'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/how-to-pass-logged-in-user-name-to.html' title='How to pass the logged in user name to the store procedure or query in Crystal Reports.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2493419386142402168.post-1520691881707697245</id><published>2009-07-27T00:57:00.000-07:00</published><updated>2009-07-27T01:00:26.768-07:00</updated><title type='text'>Navigate to portal home from Mysite.</title><content type='html'>&lt;span style="color:#006600;"&gt;We had this problem of having Portal home link (to return to the portal home page) on Mysite of every user during one of our project, what we did was we created a link in&lt;/span&gt; &lt;strong&gt;SharedServices1 &gt; Personalization site links&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Easy enough to add a link in SharedServices1 &gt; Personalization site links.  Except that when you click and return to your Portal, the menu has retained the MySite navigation because the URL contains &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;"?MySiteView=1".&lt;/span&gt;&lt;/strong&gt;The solution (as per link) is to add a &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;#&lt;/strong&gt;&lt;/span&gt; on the end of the URL you enter, this makes the rest of the link an anchor so SP will ignore it and display your normal menu. Thought to share it with you guys.&lt;br /&gt;&lt;a href="http://portalhome/#"&gt;http://portalhome/#&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2493419386142402168-1520691881707697245?l=azharkazi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://azharkazi.blogspot.com/feeds/1520691881707697245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://azharkazi.blogspot.com/2009/07/navigate-to-portal-home-from-mysite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1520691881707697245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2493419386142402168/posts/default/1520691881707697245'/><link rel='alternate' type='text/html' href='http://azharkazi.blogspot.com/2009/07/navigate-to-portal-home-from-mysite.html' title='Navigate to portal home from Mysite.'/><author><name>Sayed Azharuddin</name><uri>http://www.blogger.com/profile/08789307161596576960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_HcrYWCYXQZM/Sm1cwPN1poI/AAAAAAAAAAs/Le0TUJgyQIk/S220/3f9ba6c.jpg'/></author><thr:total>0</thr:total></entry></feed>
