<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Idris Gani&#039;s Weblog</title>
	<atom:link href="http://idrisgani.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://idrisgani.wordpress.com</link>
	<description>Just another way to Lead</description>
	<lastBuildDate>Wed, 12 Aug 2009 06:52:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='idrisgani.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/5bf3360ba5e90ba4b3180e4098a55926?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Idris Gani&#039;s Weblog</title>
		<link>http://idrisgani.wordpress.com</link>
	</image>
			<item>
		<title>Get all the Machine name under the Network</title>
		<link>http://idrisgani.wordpress.com/2009/08/12/get-all-the-machine-name-under-the-network/</link>
		<comments>http://idrisgani.wordpress.com/2009/08/12/get-all-the-machine-name-under-the-network/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 06:52:42 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=86</guid>
		<description><![CDATA[Goto -&#62; Add refrence -&#62; Add System.DirectoryServices
The following code will add the list of machine name under the network into the Combobox.
Use the following code in your .CS file
using System.DirectoryServices;
using System.Net;
DirectoryEntry parent = new DirectoryEntry(&#8220;WinNT:&#8221;);
foreach (DirectoryEntry dm in parent.Children)
{
if (dm.SchemaClassName == &#8220;Domain&#8221;)
Console.WriteLine(&#8220;Domain {0}&#8221;, dm.Name);
else
continue;
// Scan Computers on this domain
DirectoryEntry coParent = new DirectoryEntry(&#8220;WinNT://&#8221; + dm.Name);
foreach [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=86&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Goto -&gt; Add refrence -&gt; Add System.DirectoryServices</p>
<p>The following code will add the list of machine name under the network into the Combobox.</p>
<p>Use the following code in your .CS file</p>
<p>using System.DirectoryServices;</p>
<p>using System.Net;</p>
<p>DirectoryEntry parent = new DirectoryEntry(&#8220;WinNT:&#8221;);<br />
foreach (DirectoryEntry dm in parent.Children)<br />
{<br />
if (dm.SchemaClassName == &#8220;Domain&#8221;)<br />
Console.WriteLine(&#8220;Domain {0}&#8221;, dm.Name);<br />
else<br />
continue;</p>
<p>// Scan Computers on this domain<br />
DirectoryEntry coParent = new DirectoryEntry(&#8220;WinNT://&#8221; + dm.Name);<br />
foreach (DirectoryEntry client in coParent.Children)<br />
{<br />
if (client.SchemaClassName == &#8220;Computer&#8221;)<br />
Console.WriteLine(&#8220;    Computer {0}&#8221;, client.Name);<br />
else<br />
continue;<br />
// The computer may be in the directory, but not online<br />
try<br />
{<br />
comboBox1.Items.Add(client.Name);<br />
}<br />
catch (Exception) { }<br />
}<br />
}</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=86&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2009/08/12/get-all-the-machine-name-under-the-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>ReportService methods used in RSS File to deploy SQL reports</title>
		<link>http://idrisgani.wordpress.com/2009/06/04/reportservice-methods-used-in-rss-file-to-deploy-sql-reports/</link>
		<comments>http://idrisgani.wordpress.com/2009/06/04/reportservice-methods-used-in-rss-file-to-deploy-sql-reports/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 10:11:18 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[SQL Reports]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=80</guid>
		<description><![CDATA[CreateFolder(folder,parent,properties())
Parameters:
Folder as string
The name of the new folder.
Parent as string
The full path name of the parent folder to which to add the new folder.
Properties 
An array of Property[] objects that defines the property names and values to set for the folder.
Eg:
Public Sub Main()
Dim name As String = &#8220;ReportFolder&#8221;
Dim parent As String = &#8220;/&#8221;
Dim fullpath As [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=80&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-decoration:underline;"><strong>CreateFolder(folder,parent,properties())</strong></span><br />
<strong>Parameters:</strong><br />
<em><strong>Folder as string</strong></em><br />
The name of the new folder.<br />
<em><strong>Parent as string</strong></em><br />
The full path name of the parent folder to which to add the new folder.<br />
<em><strong>Properties </strong></em><br />
An array of Property[] objects that defines the property names and values to set for the folder.<br />
<strong>Eg:</strong><br />
Public Sub Main()<br />
Dim name As String = &#8220;ReportFolder&#8221;<br />
Dim parent As String = &#8220;/&#8221;<br />
Dim fullpath As String = parent + name</p>
<p>&#8216;Common CatalogItem properties<br />
Dim descprop As New [Property]<br />
descprop.Name = &#8220;Description&#8221;<br />
descprop.Value = &#8220;&#8221;<br />
Dim hiddenprop As New [Property]<br />
hiddenprop.Name = &#8220;Hidden&#8221;<br />
hiddenprop.Value = &#8220;False&#8221;</p>
<p>Dim props(1) As [Property]<br />
props(0) = descprop<br />
props(1) = hiddenprop</p>
<p>Try<br />
RS.CreateFolder(name, parent, props)<br />
Console.WriteLine(&#8220;Folder created: {0}&#8221;, name)<br />
Catch e As SoapException<br />
If e.Detail.Item(&#8220;ErrorCode&#8221;).InnerText = &#8220;rsItemAlreadyExists&#8221; Then<br />
Console.WriteLine(&#8220;Folder / Reports already exists and cannot be overwritten&#8221;)<br />
Else<br />
Console.WriteLine(&#8220;Error : &#8221; + e.Detail.Item(&#8220;ErrorCode&#8221;).InnerText + &#8221; (&#8221; + e.Detail.Item(&#8220;Message&#8221;).InnerText + &#8220;)&#8221;)<br />
End If<br />
End Try<br />
End Sub</p>
<p><span style="text-decoration:underline;"><strong>CreateReport(Report,parent,overwrite,definition,properties())</strong></span><br />
<strong>Parameters</strong>:<br />
<strong><em>Report as String</em></strong><br />
The name of the new report.<br />
<em><strong>Parent as String</strong></em><br />
The full path name of the parent folder to which to add the report.<br />
<em><strong>Overwrite</strong></em><br />
A Boolean expression that indicates whether an existing report with the same name in the location specified should be overwritten.<br />
<em><strong>Definition</strong></em><br />
The report definition to publish to the report server.<br />
<em><strong>Properties</strong></em><br />
An array of Property[] objects that contains the property names and values to set for the report.<br />
<strong>Return Value</strong>:<br />
An array of Warning[] objects that describes any warnings that occurred when the report definition was validated.<br />
<strong>Eg:</strong><br />
The following example demonstrates how to take backup of report, create/publish a report and set a datasource to it.</p>
<p>Public Sub Main()<br />
Dim Reportname as String = &#8220;SampleReport&#8221;<br />
Dim parent As String = &#8220;/ParentFolder/Subfolder&#8221;<br />
Dim location As String = parent + “\” + Reportname<br />
Dim overwrite As Boolean = True<br />
Dim reportContents As Byte() = Nothing<br />
Dim warnings As Warning() = Nothing<br />
Dim fullpath As String = parent + &#8220;/&#8221; + name</p>
<p>&#8216;Common CatalogItem properties<br />
Dim descprop As New [Property]<br />
descprop.Name = &#8220;Description&#8221;<br />
descprop.Value = &#8220;&#8221;<br />
Dim hiddenprop As New [Property]<br />
hiddenprop.Name = &#8220;Hidden&#8221;<br />
hiddenprop.Value = &#8220;False&#8221;</p>
<p>Dim props(1) As [Property]<br />
props(0) = descprop<br />
props(1) = hiddenprop</p>
<p>&#8216;Read RDL definition from disk<br />
Try<br />
Dim stream As FileStream = File.OpenRead(location)<br />
reportContents = New [Byte](stream.Length-1) {}<br />
stream.Read(reportContents, 0, CInt(stream.Length))<br />
stream.Close()</p>
<p>warnings = RS.CreateReport(name, parent, overwrite, reportContents, props)</p>
<p>If Not (warnings Is Nothing) Then<br />
Dim warning As Warning<br />
For Each warning In warnings<br />
Console.WriteLine(Warning.Message)<br />
Next warning<br />
Else<br />
Console.WriteLine(&#8220;Report: {0} published successfully with no warnings&#8221;, name)<br />
End If</p>
<p>&#8216;Set report DataSource references<br />
Dim dataSources(0) As DataSource</p>
<p>Dim dsr0 As New DataSourceReference<br />
dsr0.Reference = &#8220;/Data Sources/DatasourceName&#8221;<br />
Dim ds0 As New DataSource<br />
ds0.Item = CType(dsr0, DataSourceDefinitionOrReference)<br />
ds0.Name=&#8221;SMS&#8221;<br />
dataSources(0) = ds0</p>
<p>RS.SetItemDataSources(fullpath, dataSources)</p>
<p>Console.Writeline(&#8220;Report DataSources set successfully&#8221;)</p>
<p>Catch e As IOException<br />
Console.WriteLine(e.Message)<br />
Catch e As SoapException<br />
Console.WriteLine(&#8220;Error : &#8221; + e.Detail.Item(&#8220;ErrorCode&#8221;).InnerText + &#8221; (&#8221; + e.Detail.Item(&#8220;Message&#8221;).InnerText + &#8220;)&#8221;)<br />
End Try<br />
End Sub</p>
<p><span style="text-decoration:underline;"><strong>CreateDatasource(datasource,parent,overwrite,definition,properties())</strong></span><br />
<strong>Parameters:</strong><br />
<em><strong>DataSource</strong></em><br />
The name of the data source.<br />
<em><strong>Parent as String</strong></em><br />
The full path name of the parent folder that contains the data source.<br />
<em><strong>Overwrite</strong></em><br />
A Boolean expression that indicates whether an existing data source with the same name in the location specified should be overwritten.<br />
<em><strong>Definition</strong></em><br />
A DataSourceDefinition object that describes the connection properties for the data source.<br />
<em><strong>Properties</strong></em><br />
An array of Property[] objects that defines the property names and values to set for the data source.<br />
<strong>Eg:</strong></p>
<p>Public Sub Main()<br />
Dim name As String = &#8220;Datasourcename&#8221;<br />
Dim parent As String = &#8220;/Data Sources&#8221;</p>
<p>&#8216;Common CatalogItem properties<br />
Dim descprop As New [Property]<br />
descprop.Name = &#8220;Description&#8221;<br />
descprop.Value = &#8220;&#8221;<br />
Dim hiddenprop As New [Property]<br />
hiddenprop.Name = &#8220;Hidden&#8221;<br />
hiddenprop.Value = &#8220;False&#8221;</p>
<p>Dim props(1) As [Property]<br />
props(0) = descprop<br />
props(1) = hiddenprop</p>
<p>Dim definition As New DataSourceDefinition<br />
definition.CredentialRetrieval = CredentialRetrievalEnum.Store<br />
definition.ConnectString = &#8220;Data Source=; Initial Catalog= &#8220;<br />
definition.Enabled = True<br />
definition.EnabledSpecified = True<br />
definition.Extension = &#8220;SQL&#8221;<br />
definition.ImpersonateUser = False<br />
definition.ImpersonateUserSpecified = True<br />
definition.UserName = &#8220;&#8221;<br />
definition.Password = &#8220;&#8221;<br />
definition.WindowsCredentials = False<br />
definition.OriginalConnectStringExpressionBased = False<br />
definition.UseOriginalConnectString = False</p>
<p>Try<br />
RS.CreateDataSource(name, parent,True, definition, props)<br />
Console.WriteLine(&#8220;DataSource created successfully&#8221;)</p>
<p>Console.WriteLine(&#8220;You must supply the password using Report Manager to use this DataSource&#8221;)</p>
<p>Catch e As SoapException<br />
Console.WriteLine(&#8220;Error : &#8221; + e.Detail.Item(&#8220;ErrorCode&#8221;).InnerText + &#8221; (&#8221; + e.Detail.Item(&#8220;Message&#8221;).InnerText + &#8220;)&#8221;)<br />
End Try<br />
End Sub</p>
<p><span style="text-decoration:underline;"><strong>CreateLinkedReport(Report,parent,link,properties())</strong></span><br />
<strong>Parameters:</strong><br />
<em><strong>Report as String</strong></em><br />
The name of the new linked report.<br />
<em><strong>Parent as String</strong></em><br />
The full path name of the parent folder to which to add the new report.<br />
<em><strong>Link as String</strong></em><br />
The full path name of the report that will be used for the report definition.<br />
<em><strong>Properties</strong></em><br />
An array of Property[] objects that defines the property names and values to set for the linked report.<br />
<strong>Eg:</strong></p>
<p>Public Sub Main()<br />
Dim overwrite As Boolean = True<br />
Dim name As String = &#8220;OriginalReportName&#8221;<br />
Dim parent As String = &#8220;/path&#8221;<br />
Dim fullpath As String = parent + &#8220;/&#8221; + name</p>
<p>&#8216;Common CatalogItem properties<br />
Dim descprop As New [Property]<br />
descprop.Name = &#8220;Description&#8221;<br />
descprop.Value = &#8220;&#8221;<br />
Dim hiddenprop As New [Property]<br />
hiddenprop.Name = &#8220;Hidden&#8221;<br />
hiddenprop.Value = &#8220;False&#8221;</p>
<p>Dim props(1) As [Property]<br />
props(0) = descprop<br />
props(1) = hiddenprop</p>
<p>Try<br />
RS.CreateLinkedReport(name,parent, &#8220;/OrignalPath/Reportname&#8221;, props)</p>
<p>Console.WriteLine(&#8220;Linked Report published successfully&#8221;)<br />
Catch e As SoapException<br />
If e.Detail.Item(&#8220;ErrorCode&#8221;).InnerText = &#8220;rsItemAlreadyExists&#8221; Then<br />
If overwrite Then<br />
RS.DeleteItem(fullpath)<br />
RS.CreateLinkedReport(name,parent, &#8220;/GoldenGate/Ascend_Claims_Not_In_Golden_Gate&#8221;, props)</p>
<p>Console.WriteLine(&#8220;Linked Report: published successfully&#8221;)<br />
Else<br />
End If<br />
Else<br />
Console.WriteLine(&#8220;Error : &#8221; + e.Detail.Item(&#8220;ErrorCode&#8221;).InnerText + &#8221; (&#8221; + e.Detail.Item(&#8220;Message&#8221;).InnerText + &#8220;)&#8221;)<br />
End If<br />
End Try<br />
End Sub</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=80&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2009/06/04/reportservice-methods-used-in-rss-file-to-deploy-sql-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Object list from database</title>
		<link>http://idrisgani.wordpress.com/2009/04/22/get-object-list-for-database/</link>
		<comments>http://idrisgani.wordpress.com/2009/04/22/get-object-list-for-database/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 07:30:33 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=76</guid>
		<description><![CDATA[SELECT NAME,crdate FROM Sysobjects WHERE TYPE=&#8216;U&#8217; AND category=0 ORDER BY name &#8211; Get User  tables
SELECT NAME,crdate FROM Sysobjects WHERE TYPE=&#8216;FN&#8217; AND category=0 ORDER BY NAME &#8211;Get User Defined  Functions
Select NAME,crdate from sysobjects where type = &#8216;P&#8217; and category = 0 ORDER BY NAME &#8211;Get Stored  Procedures
SELECT NAME,crdate FROM Sysobjects WHERE TYPE=&#8216;V&#8217; AND [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=76&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal"><span style="font-family:Calibri;color:blue;font-size:x-small;"><span style="font-size:11pt;color:blue;font-family:Calibri;">SELECT</span></span><span style="font-family:Calibri;font-size:x-small;"><span style="font-size:11pt;font-family:Calibri;"> <span style="color:blue;"><span style="color:blue;">NAME</span></span><span style="color:gray;"><span style="color:gray;">,</span></span>crdate <span style="color:blue;"><span style="color:blue;">FROM</span></span> Sysobjects <span style="color:blue;"><span style="color:blue;">WHERE</span></span> <span style="color:blue;"><span style="color:blue;">TYPE</span></span><span style="color:gray;"><span style="color:gray;">=</span></span><span style="color:red;"><span style="color:red;">&#8216;U&#8217;</span></span> <span style="color:gray;"><span style="color:gray;">AND</span></span> category<span style="color:gray;"><span style="color:gray;">=</span></span>0 <span style="color:blue;"><span style="color:blue;">ORDER</span></span> <span style="color:blue;"><span style="color:blue;">BY</span></span> <span style="color:blue;"><span style="color:blue;">name</span></span> <span style="color:green;"><span style="color:green;">&#8211; Get User  tables</span></span></span></span></p>
<p class="MsoNormal"><span style="font-family:Calibri;color:blue;font-size:x-small;"><span style="font-size:11pt;color:blue;font-family:Calibri;">SELECT</span></span><span style="font-family:Calibri;font-size:x-small;"><span style="font-size:11pt;font-family:Calibri;"> <span style="color:blue;"><span style="color:blue;">NAME</span></span><span style="color:gray;"><span style="color:gray;">,</span></span>crdate <span style="color:blue;"><span style="color:blue;">FROM</span></span> Sysobjects <span style="color:blue;"><span style="color:blue;">WHERE</span></span> <span style="color:blue;"><span style="color:blue;">TYPE</span></span><span style="color:gray;"><span style="color:gray;">=</span></span><span style="color:red;"><span style="color:red;">&#8216;FN&#8217;</span></span> <span style="color:gray;"><span style="color:gray;">AND</span></span> category<span style="color:gray;"><span style="color:gray;">=</span></span>0 <span style="color:blue;"><span style="color:blue;">ORDER</span></span> <span style="color:blue;"><span style="color:blue;">BY</span></span> <span style="color:blue;"><span style="color:blue;">NAME</span></span> <span style="color:green;"><span style="color:green;">&#8211;Get User Defined  Functions</span></span></span></span></p>
<p class="MsoNormal"><span style="font-family:Calibri;color:blue;font-size:x-small;"><span style="font-size:11pt;color:blue;font-family:Calibri;">Select</span></span><span style="font-family:Calibri;font-size:x-small;"><span style="font-size:11pt;font-family:Calibri;"> <span style="color:blue;"><span style="color:blue;">NAME</span></span><span style="color:gray;"><span style="color:gray;">,</span></span>crdate <span style="color:blue;"><span style="color:blue;">from</span></span> sysobjects <span style="color:blue;"><span style="color:blue;">where</span></span> <span style="color:blue;"><span style="color:blue;">type</span></span> <span style="color:gray;"><span style="color:gray;">=</span></span> <span style="color:red;"><span style="color:red;">&#8216;P&#8217;</span></span> <span style="color:gray;"><span style="color:gray;">and</span></span> category <span style="color:gray;"><span style="color:gray;">=</span></span> 0 <span style="color:blue;"><span style="color:blue;">ORDER</span></span> <span style="color:blue;"><span style="color:blue;">BY</span></span> <span style="color:blue;"><span style="color:blue;">NAME</span></span> <span style="color:green;"><span style="color:green;">&#8211;Get Stored  Procedures</span></span></span></span></p>
<p class="MsoNormal"><span style="font-family:Calibri;color:blue;font-size:x-small;"><span style="font-size:11pt;color:blue;font-family:Calibri;">SELECT</span></span><span style="font-family:Calibri;font-size:x-small;"><span style="font-size:11pt;font-family:Calibri;"> <span style="color:blue;"><span style="color:blue;">NAME</span></span><span style="color:gray;"><span style="color:gray;">,</span></span>crdate <span style="color:blue;"><span style="color:blue;">FROM</span></span> Sysobjects <span style="color:blue;"><span style="color:blue;">WHERE</span></span> <span style="color:blue;"><span style="color:blue;">TYPE</span></span><span style="color:gray;"><span style="color:gray;">=</span></span><span style="color:red;"><span style="color:red;">&#8216;V&#8217;</span></span> <span style="color:gray;"><span style="color:gray;">AND</span></span> category<span style="color:gray;"><span style="color:gray;">=</span></span>0   <span style="color:blue;"><span style="color:blue;">ORDER</span></span> <span style="color:blue;"><span style="color:blue;">BY</span></span> <span style="color:blue;"><span style="color:blue;">NAME</span></span> <span style="color:green;"><span style="color:green;">&#8211;Get Views</span></span></span></span></p>
<p class="MsoNormal"><span style="font-family:Calibri;color:navy;font-size:x-small;"><span style="font-size:11pt;color:navy;font-family:Calibri;"> </span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=76&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2009/04/22/get-object-list-for-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Focusing a Div Element using JavaScript</title>
		<link>http://idrisgani.wordpress.com/2009/04/22/focusing-a-div-element-using-javascript/</link>
		<comments>http://idrisgani.wordpress.com/2009/04/22/focusing-a-div-element-using-javascript/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 07:28:46 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=74</guid>
		<description><![CDATA[The following code is used to focus a div element.It seems Focus is an inbuilt method which allows you to focus on the corresponding div element.
&#60;div id=&#8221;map_canvas&#8221;  onmouseover=&#8221;focus(this)&#8221;/&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=74&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following code is used to focus a div element.It seems Focus is an inbuilt method which allows you to focus on the corresponding div element.</p>
<p><strong>&lt;div id=&#8221;map_canvas&#8221;  onmouseover=&#8221;focus(this)&#8221;/&gt;</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=74&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2009/04/22/focusing-a-div-element-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Find For A Particular Column In A Database using SqlServer</title>
		<link>http://idrisgani.wordpress.com/2008/12/26/find-for-a-particular-column-in-a-database-using-sqlserver/</link>
		<comments>http://idrisgani.wordpress.com/2008/12/26/find-for-a-particular-column-in-a-database-using-sqlserver/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 06:44:24 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=72</guid>
		<description><![CDATA[SELECT so.name as tablename, sc.name as columnname from sysobjects so
JOIN syscolumns sc
on sc.id = so.id and sc.name like &#8216;&#60;&#60;Column Name&#62;&#62;&#8217;
and so.xtype = &#8216;U&#8217;
Source : http://www.sqlservercentral.com/scripts/TSQL/64706/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=72&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>SELECT so.name as tablename, sc.name as columnname from sysobjects so</p>
<p>JOIN syscolumns sc</p>
<p>on sc.id = so.id and sc.name like &#8216;&lt;&lt;Column Name&gt;&gt;&#8217;</p>
<p>and so.xtype = &#8216;U&#8217;</p>
<p>Source : http://www.sqlservercentral.com/scripts/TSQL/64706/</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=72&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2008/12/26/find-for-a-particular-column-in-a-database-using-sqlserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading and Writing Text Files</title>
		<link>http://idrisgani.wordpress.com/2008/09/09/reading-and-writing-text-files/</link>
		<comments>http://idrisgani.wordpress.com/2008/09/09/reading-and-writing-text-files/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 10:12:12 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=70</guid>
		<description><![CDATA[Writing Text Data to a File
using System;
using System.IO;
namespace SampleWrite1
{
class FileWriter
{
static void Main(string[] args)
{
// create a writer and open the file
TextWriter tw = new StreamWriter(&#8220;date.txt&#8221;);
// write a line of text to the file
tw.WriteLine(DateTime.Now);
// close the stream
tw.Close();
}
}
}
Reading Text Data from a File
using System;
using System.IO;
namespace SampleRead1
{
class FileReader
{
static void Main(string[] args)
{
// create reader &#38; open file
Textreader tr = new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=70&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-decoration:underline;"><strong>Writing Text Data to a File</strong></span><br />
using System;<br />
using System.IO;</p>
<p>namespace SampleWrite1<br />
{<br />
class FileWriter<br />
{<br />
static void Main(string[] args)<br />
{<br />
// create a writer and open the file<br />
TextWriter tw = new StreamWriter(&#8220;date.txt&#8221;);</p>
<p>// write a line of text to the file<br />
tw.WriteLine(DateTime.Now);</p>
<p>// close the stream<br />
tw.Close();<br />
}<br />
}<br />
}</p>
<p><span style="text-decoration:underline;"><strong>Reading Text Data from a File</strong></span><br />
using System;<br />
using System.IO;</p>
<p>namespace SampleRead1<br />
{<br />
class FileReader<br />
{<br />
static void Main(string[] args)<br />
{<br />
// create reader &amp; open file<br />
Textreader tr = new StreamReader(&#8220;date.txt&#8221;);</p>
<p>// read a line of text<br />
Console.WriteLine(tr.ReadLine());</p>
<p>// close the stream<br />
tr.Close();<br />
}<br />
}<br />
}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/idrisgani.wordpress.com/70/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/idrisgani.wordpress.com/70/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=70&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2008/09/09/reading-and-writing-text-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>SQLXMLCOMMAND</title>
		<link>http://idrisgani.wordpress.com/2008/09/09/sqlxmlcommand/</link>
		<comments>http://idrisgani.wordpress.com/2008/09/09/sqlxmlcommand/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 10:07:40 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=68</guid>
		<description><![CDATA[Fill Grid Using SQLXMLCOMMAND
string coString = &#8220;Provider=sqloledb;data source=&#8221;+
&#8220;diablo;userid=sa;password=mypassword;initial catalog=pubs&#8221;;
SqlXmlCommand co = new SqlXmlCommand(coString);
XmlReader xmlRead = new XmlReader();
DataSet ds = new DataSet();
co.CommandType = SqlXmlCommandType.Sql;
co.CommandText = &#8220;select * from Students for xml Auto&#8221;;
xmlRead = co.ExecuteXmlReader;
ds.ReadXml(xmlRead);
this.DataGrid1.DataSource = ds.Tables[0];
SQLXMLCOMMAND AND SQLXMLADAPTER
string coString = &#8220;Provider=sqloledb;data source=diablo;&#8221; +
&#8220;userid=sa;password=mypassword;initial catalog=pubs&#8221;
SqlXmlCommand cmd  = new SqlXmlCommand(coString);
cmd.RootTag = &#8220;Root&#8221;;
cmd.CommandText = @&#8221; Students [@St_lname = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=68&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-decoration:underline;"><strong>Fill Grid Using SQLXMLCOMMAND</strong></span><br />
string coString = &#8220;Provider=sqloledb;data source=&#8221;+<br />
&#8220;diablo;userid=sa;password=mypassword;initial catalog=pubs&#8221;;<br />
SqlXmlCommand co = new SqlXmlCommand(coString);<br />
XmlReader xmlRead = new XmlReader();<br />
DataSet ds = new DataSet();<br />
co.CommandType = SqlXmlCommandType.Sql;<br />
co.CommandText = &#8220;select * from Students for xml Auto&#8221;;<br />
xmlRead = co.ExecuteXmlReader;<br />
ds.ReadXml(xmlRead);<br />
this.DataGrid1.DataSource = ds.Tables[0];</p>
<p><span style="text-decoration:underline;"><strong>SQLXMLCOMMAND AND SQLXMLADAPTER</strong></span><br />
string coString = &#8220;Provider=sqloledb;data source=diablo;&#8221; +<br />
&#8220;userid=sa;password=mypassword;initial catalog=pubs&#8221;<br />
SqlXmlCommand cmd  = new SqlXmlCommand(coString);<br />
cmd.RootTag = &#8220;Root&#8221;;<br />
cmd.CommandText = @&#8221; Students [@St_lname = "Stringer"]&#8220;;<br />
cmd.CommandType = SqlXmlCommandType.XPath;<br />
cmd.SchemaPath = &#8220;..\ Students.xsd&#8221;;<br />
DataSet ds  = new DataSet();<br />
SqlXmlAdapter ad  = new SqlXmlAdapter(cmd);<br />
ad.Fill(ds);<br />
this.DataGrid1.DataSource = ds;</p>
<p><span style="text-decoration:underline;"><strong>SQLXMLCOMMAND TO SAVE XML FILE</strong></span><br />
string coString = &#8220;Provider=sqloledb;data source=&#8221;+<br />
&#8220;diablo;userid=sa;password=mypassword;initial catalog=pubs&#8221;<br />
SqlXmlCommand cmd = new SqlXmlCommand(coString);<br />
XmlReader xr;<br />
XmlDocument xDoc = new XmlDocument();<br />
DataSet ds = new DataSet();<br />
cmd.RootTag = &#8220;Authors&#8221; ;<br />
cmd.ClientSideXml = True;<br />
cmd.CommandText = &#8220;exec spAllStudents for XML nested&#8221;;<br />
xr = cmd.ExecuteXmlReader();<br />
xDoc.Load(xr);<br />
xDoc.Save(&#8220;c:\testClientside.xml&#8221;); //save the output to a file<br />
ds.ReadXml(&#8220;c:\testClientside.xml&#8221;);  //read the file into a dataset<br />
this.DataGrid1.DataSource = ds; //bind the datagrid to the dataset</p>
<p><span style="text-decoration:underline;"><strong>Using Parameters with SqlXMLCommand</strong></span><br />
string coString = &#8220;Provider=sqloledb;;datasource=tpol;&#8221; +<br />
&#8220;userid=sa;password=mypassword;initial catalog=pubs&#8221;<br />
SqlXmlCommand cmd = new SqlXmlCommand(coString);<br />
SqlXmlParameter param;<br />
xAdp = New SqlXmlAdapter(cmd);<br />
xDs = New DataSet();<br />
cmd.RootTag = &#8220;Students&#8221;;<br />
cmd.CommandType = SqlXmlCommandType.Sql;<br />
cmd.CommandText = &#8220;select * from Students where st_lname = ? for xml auto&#8221;;<br />
param = cmd.CreateParameter;<br />
param.Value = this.ListBox1.SelectedItem;<br />
xAdp.Fill(xDs);<br />
this.DataGrid1.DataSource = xDs;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/idrisgani.wordpress.com/68/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/idrisgani.wordpress.com/68/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=68&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2008/09/09/sqlxmlcommand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Split Multiline text using VB</title>
		<link>http://idrisgani.wordpress.com/2008/06/20/split-multiline-text-using-vb/</link>
		<comments>http://idrisgani.wordpress.com/2008/06/20/split-multiline-text-using-vb/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 09:57:21 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=66</guid>
		<description><![CDATA[Dim i As Integer
Dim line() As String
Dim j As Integer
Dim str As String
Dim str1 As String
line = Split(Text1.Text, vbCrLf)
For i = 0 To UBound(line)
If Len(line(i)) &#62; 10 Then
str = line(i)
While Not Len(str) = 0
str1 = Mid(str, 1, 10)
Label1.Caption = Label1.Caption &#38; str1 &#38; vbLf
str = Mid(str, Len(str1) + 1, Len(line(i)))
Wend
Else
Label1.Caption = Label1.Caption &#38; line(i) &#38; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=66&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Dim i As Integer<br />
Dim line() As String<br />
Dim j As Integer<br />
Dim str As String<br />
Dim str1 As String<br />
line = Split(Text1.Text, vbCrLf)<br />
For i = 0 To UBound(line)<br />
If Len(line(i)) &gt; 10 Then<br />
str = line(i)<br />
While Not Len(str) = 0<br />
str1 = Mid(str, 1, 10)<br />
Label1.Caption = Label1.Caption &amp; str1 &amp; vbLf<br />
str = Mid(str, Len(str1) + 1, Len(line(i)))<br />
Wend<br />
Else<br />
Label1.Caption = Label1.Caption &amp; line(i) &amp; vbLf<br />
End If<br />
Next</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/idrisgani.wordpress.com/66/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/idrisgani.wordpress.com/66/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=66&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2008/06/20/split-multiline-text-using-vb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide Frame using Same Button</title>
		<link>http://idrisgani.wordpress.com/2008/05/28/hideunhide-frame-using-same-button/</link>
		<comments>http://idrisgani.wordpress.com/2008/05/28/hideunhide-frame-using-same-button/#comments</comments>
		<pubDate>Wed, 28 May 2008 04:23:45 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[Code Snippets]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=65</guid>
		<description><![CDATA[ &#60;script type=&#8221;text/javascript&#8221;&#62; 
var tabShow=0; 
function hideremote()  
 
 

{if (tabShow == 1)
 {if(document.all) {parent.document.body.cols=&#8220;25%,75%&#8221;;
tabShow = 0;
return;
}}
if(tabShow == 0) {
if (document.all) 
{parent.document.body.cols=&#8220;0%,100%&#8221; ;
tabShow = 1;
}} &#60;/script&#62;

 
&#8221;Call the script in HTML code, Add a Button in a Page
&#60;input type=&#8221;button&#8221; value=&#8221;Show/Hide&#8221; onclick=&#8221;javascript:hideremote()&#8221;&#62;

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=65&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#800000;">script</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#ff0000;">type</span><span style="font-size:x-small;color:#0000ff;">=&#8221;text/javascript&#8221;&gt; </span></span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">var </span><span style="font-size:x-small;">tabShow=0; </span></span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">function </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">hideremote() </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> </span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> </span></span></div>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> </p>
<p></span></span></p>
<p><span style="font-size:x-small;">{</span><span style="font-size:x-small;color:#0000ff;">if</span><span style="font-size:x-small;"> (tabShow == 1)</span></p>
<p><span style="font-size:x-small;"> {</span><span style="font-size:x-small;color:#0000ff;">if</span><span style="font-size:x-small;">(document.all) {<span style="font-size:x-small;">parent.document.body.cols=</span><span style="font-size:x-small;color:#800000;">&#8220;25%,75%&#8221;</span><span style="font-size:x-small;">;</span></span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;">tabShow = 0;</span></span></div>
<p><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;">;</span></p>
<p><span style="font-size:x-small;">}}</span></p>
<p><span style="font-size:x-small;color:#0000ff;">if</span><span style="font-size:x-small;">(tabShow == 0) {</span></p>
<p><span style="font-size:x-small;color:#0000ff;">if</span><span style="font-size:x-small;"> (document.all) </span></p>
<p><span style="font-size:x-small;">{<span style="font-size:x-small;">parent.document.body.cols=</span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#800000;">&#8220;0%,100%&#8221;</span> <span style="font-size:x-small;">;</span></span></span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">tabShow = 1;</span></span></span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">}}</span> </span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;/</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#800000;">script</span><span style="font-size:x-small;color:#0000ff;">&gt;</span></span></span></span></span></div>
<div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"> </span></span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">&#8221;Call the script in HTML code, Add a Button in a Page</span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;</span></span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#800000;">input</span><span style="font-size:x-small;color:#000000;"> </span><span style="font-size:x-small;color:#ff0000;">type</span><span style="font-size:x-small;color:#0000ff;">=&#8221;button&#8221;</span><span style="font-size:x-small;color:#000000;"> </span><span style="font-size:x-small;color:#ff0000;">value</span><span style="font-size:x-small;color:#0000ff;">=&#8221;Show/Hide&#8221;</span><span style="font-size:x-small;color:#000000;"> </span><span style="font-size:x-small;color:#ff0000;">onclick</span><span style="font-size:x-small;color:#0000ff;">=&#8221;javascript:hideremote()&#8221;&gt;</span></span></span></span></div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/idrisgani.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/idrisgani.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=65&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2008/05/28/hideunhide-frame-using-same-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
		<item>
		<title>Pass Query String using Window.open Method</title>
		<link>http://idrisgani.wordpress.com/2008/05/10/pass-query-string-using-windowopen-method-3/</link>
		<comments>http://idrisgani.wordpress.com/2008/05/10/pass-query-string-using-windowopen-method-3/#comments</comments>
		<pubDate>Sat, 10 May 2008 07:32:13 +0000</pubDate>
		<dc:creator>idrisgani</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://idrisgani.wordpress.com/?p=59</guid>
		<description><![CDATA[ 
 
 
 

Dim 

popupScript As String = &#8220;window.open(&#8216;ITES_vgrid.aspx?batchid=&#8221; &#38; _ ddlbatchname.SelectedValue &#38; &#8220;&#8216;&#8221; &#38; &#8220;, &#8216;CustomPopUp&#8217;, &#8220;
 &#38; _
 

 

 
&#8220;&#8216;width=500, height=500, menubar=no, resizable=yes&#8217;);&#8221;

 

 

If (Not ClientScript.IsStartupScriptRegistered(&#8220;popup&#8221;)) Then

ClientScript.RegisterStartupScript(

Me.GetType(), &#8220;popup&#8221;, popupScript, True
)
 

 

 
End If
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=59&subd=idrisgani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> </p>
<p> </p>
<p> </p>
<p> </p>
<div><span style="font-size:x-small;color:#0000ff;"></p>
<div><span style="font-size:x-small;color:#0000ff;">Dim </span></div>
<p></span></div>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">popupScript </span><span style="font-size:x-small;color:#0000ff;">As</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">String</span><span style="font-size:x-small;"> = </span><span style="font-size:x-small;color:#800000;">&#8220;window.open(&#8216;ITES_vgrid.aspx?batchid=&#8221;</span><span style="font-size:x-small;"> &amp; _ ddlbatchname.SelectedValue &amp; </span><span style="font-size:x-small;color:#800000;">&#8220;&#8216;&#8221;</span><span style="font-size:x-small;"> &amp; </span><span style="font-size:x-small;color:#800000;">&#8220;, &#8216;CustomPopUp&#8217;, &#8220;</span></p>
<div><span style="font-size:x-small;"> &amp; _</p>
<div><span style="font-size:x-small;"> </span></div>
<p></span></div>
<p></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"> </p>
<p></span></span></p>
<p> </p>
<p><span style="font-size:x-small;color:#800000;">&#8220;&#8216;width=500, height=500, menubar=no, resizable=yes&#8217;);&#8221;</span></p>
<div><span style="font-size:x-small;"></p>
<div><span style="font-size:x-small;"> </span></div>
<p></span></div>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"> </p>
<p></span></span></p>
<p><span style="font-size:x-small;color:#0000ff;">If</span><span style="font-size:x-small;"> (</span><span style="font-size:x-small;color:#0000ff;">Not</span><span style="font-size:x-small;"> ClientScript.IsStartupScriptRegistered(</span><span style="font-size:x-small;color:#800000;">&#8220;popup&#8221;</span><span style="font-size:x-small;">)) </span><span style="font-size:x-small;color:#0000ff;">Then</span></p>
<div><span style="font-size:x-small;"></p>
<div><span style="font-size:x-small;">ClientScript.RegisterStartupScript(</span></div>
<p></span></div>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">Me</span><span style="font-size:x-small;">.GetType(), </span><span style="font-size:x-small;color:#800000;">&#8220;popup&#8221;</span><span style="font-size:x-small;">, popupScript, </span><span style="font-size:x-small;color:#0000ff;">True</span></p>
<div><span style="font-size:x-small;">)</p>
<div><span style="font-size:x-small;"> </span></div>
<p></span></div>
<p></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"> </p>
<p></span></span></p>
<p> </p>
<p><span style="font-size:x-small;color:#0000ff;">End</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">If</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/idrisgani.wordpress.com/59/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/idrisgani.wordpress.com/59/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idrisgani.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idrisgani.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/idrisgani.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/idrisgani.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/idrisgani.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/idrisgani.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/idrisgani.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/idrisgani.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/idrisgani.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/idrisgani.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idrisgani.wordpress.com&blog=3187543&post=59&subd=idrisgani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://idrisgani.wordpress.com/2008/05/10/pass-query-string-using-windowopen-method-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7940fb2869a498d34bc6c4cd67a6a4b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chellappa</media:title>
		</media:content>
	</item>
	</channel>
</rss>