﻿<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="rssStyle.xsl"?><rss version="2.0"><channel><title>DotNetSparkCode</title><link>http://www.dotnetspark.com/</link><description>.NET , C#, SQL Server Code</description><item><title>String Format in SQL</title><description>Using This sql Function We can Use String In sql FunctionDROP FUNCTION dbo.fnFormatStringGOCREATE FUNCTION dbo.fnFormatString(@format varchar(6000), &amp;nbsp;&amp;nbsp;&amp;nbsp; @arg1 sql_variant, &amp;nbsp;&amp;nbsp;&amp;nbsp; @arg2 sql_variant='''', &amp;nbsp;&amp;nbsp;&amp;nbsp; @arg3 sql_variant='''')RETURNS varchar(8000)ASBEGINRETURN&amp;nbsp; REPLACE(&amp;nbsp;&amp;nbsp;&amp;n</description><link>http://www.dotnetspark.com/kb/1724-string-format-sql.aspx</link><pubDate>2010-03-19T05:42:50.0000000-05:00</pubDate></item><item><title>List All the Tables for All Databases Using System Tables-SqlServer</title><description>copy and paste the below script in Sql Query Analyzer and run it
sp_msforeachdb ''select&amp;nbsp;"?"&amp;nbsp;AS&amp;nbsp;db,&amp;nbsp;*&amp;nbsp;from&amp;nbsp;[?].sys.tables''</description><link>http://www.dotnetspark.com/kb/1718-list-all-tables-for-all-databases-using.aspx</link><pubDate>2010-03-17T10:51:54.0000000-05:00</pubDate></item><item><title>How to get a last inserted record or Row from a table without using any Id column?</title><description>Below is my data which is present in a table:
insert into dupemp(name,salary,deptno) values(''1sd'',4000,12)insert into dupemp(name,salary,deptno) values(''2sd'',4000,12)insert into dupemp(name,salary,deptno) values(''3sd'',4000,12)insert into dupemp(name,salary,deptno) values(''6sd'',4000,12)insert into dupemp(name,salary,deptno) values(''4sd'',4000,12)
&lt;FONT face=Georgia color=#00</description><link>http://www.dotnetspark.com/kb/1712-how-to-get-last-inserted-record-row-from.aspx</link><pubDate>2010-03-16T05:48:48.0000000-05:00</pubDate></item><item><title>Calculating the Size of folder</title><description>&amp;nbsp;Private Function GetFolderSize(ByVal FolderName As String) As Long&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim d As New DirectoryInfo(FolderName)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim TotalSize As Long = 0&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Each s As String In Directory.GetFiles(d.FullName, "*.*", SearchOption.AllDirectories)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TotalSize += New FileInfo(s).Length&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N</description><link>http://www.dotnetspark.com/kb/1705-calculating-size-folder.aspx</link><pubDate>2010-03-15T05:21:41.0000000-05:00</pubDate></item><item><title>Difference between Length() and DataLength() using SqlServer?</title><description>Difference between Length() and DataLength() ? Len( ):- Length function return the number of Characters of the specified string expression,excluding blank spaces. &lt;FONT fa</description><link>http://www.dotnetspark.com/kb/1702-difference-between-length-and-datalength.aspx</link><pubDate>2010-03-14T10:18:37.0000000-05:00</pubDate></item><item><title>How to Delete a Repeting(or)duplicate records from a Table using SqlServer?</title><description>create table dupemp(name varchar(20),salary int,deptno int)
insert into dupemp(name,salary,deptno) values(''inthiyaaz'',2000,10)insert into dupemp(name,salary,deptno) values(''inthiyaaz'',2000,10)insert into dupemp(name,salary,deptno) values(''inthiyaaz'',2000,10)insert into dupemp(name,salary,deptno) values(''inthiyaaz'',2000,10)insert int</description><link>http://www.dotnetspark.com/kb/1700-how-to-delete-repetingorduplicate-records.aspx</link><pubDate>2010-03-14T10:05:47.0000000-05:00</pubDate></item><item><title>Get the height and width using JQuery</title><description>if you would like to get the height and with of an element of HTML or asp.net control at the run time using JQuery than you can use height() for height and width() function to get width.Lets see an example to get height$("#myDiv").height();// this will give you the heightand to get the width of an element$("#myDiv").width(); // this will give width of an html object&lt;b</description><link>http://www.dotnetspark.com/kb/1686-get-height-and-width-using-jquery.aspx</link><pubDate>2010-03-11T18:41:15.0000000-06:00</pubDate></item><item><title>Error: Failed to access IIS metabase and solution</title><description>If you are getting error Failed to access IIS metabase ASP.NET while running asp.net website. Then you have to re register the asp_net to correct ISAPI mapping of the dll in IIS.To solve this error you have to open visual studio command prompt from start menu then typeaspnet_regiis -iand hit enterThis will solve the error Failed to access IIS metabase ASP.NET that you are getting to run asp.net website</description><link>http://www.dotnetspark.com/kb/1685-error-failed-to-access-iis-metabase-asp-net.aspx</link><pubDate>2010-03-11T18:28:35.0000000-06:00</pubDate></item><item><title>open PopUp Window in a button click</title><description>JavaScript code to open popup window:Method1:&amp;lt;SCRIPT LANGUAGE=''JAVASCRIPT'' TYPE=''TEXT/JAVASCRIPT''&amp;gt;
&amp;lt;!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){

if (pos == ''random'')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosi</description><link>http://www.dotnetspark.com/kb/1684-popup-window.aspx</link><pubDate>2010-03-11T05:01:45.0000000-06:00</pubDate></item><item><title>add remove items from one listbox to another using JQuery</title><description>Sometime in the web application we need to have functionality like move items between two listboxes in asp.net. Here is the solution using JQuery to Add, AddAll, Remove, RemoveAll items from one list box to another.
We are using Jquery appnedTo() method to move the items between two listboxes.
here is syntax to use appendTo if you want to move all items
$("#fromListBox option").appendTo("#toListBox");
&lt;P</description><link>http://www.dotnetspark.com/kb/1683-add-remove-items-from-one-listbox-to-another.aspx</link><pubDate>2010-03-10T18:21:55.0000000-06:00</pubDate></item></channel></rss>