﻿<?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>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><item><title>clear all textboxes using jquery</title><description>If you need to have reset button functionality in your asp.net web page and you wanted to use JQuery to clear all the textbox available in the form that you can use below JQuery function to reset all the textbox to empty. This will clear or delete all the data from text box in one button click
Make sure that all the textbox should be in one container. It could be html div tag. In below function I have use one div tag with id ="myDiv".
Syntax.
&lt;FONT color=#0000f</description><link>http://www.dotnetspark.com/kb/1682-clear-all-textboxes-using-jquery.aspx</link><pubDate>2010-03-10T17:24:22.0000000-06:00</pubDate></item><item><title>Remove spaces from string using JQuery Trim()</title><description>JQuery.trim() function is used to trim white spaces embedded along with the string . It will remove the spaces before and after the string.
syntax
var str = jQuery.trim("your string which need to be trim");
Lets see how to use it&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    // Add JQuery Reference
    &amp;lt;script src="jquery-1.3.2.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    
    
    &amp;lt</description><link>http://www.dotnetspark.com/kb/1681-remove-spaces-from-string-using-jquery.aspx</link><pubDate>2010-03-10T16:11:01.0000000-06:00</pubDate></item><item><title>CAST( ) function in SqlServer</title><description>Converting a&amp;nbsp;&amp;nbsp;varchar data type to int data type using CAST( ) function
declare @a varchar(2)
declare @b varchar(2)
set @a=10
&lt;FONT face=Arial color=#0</description><link>http://www.dotnetspark.com/kb/1669-cast--function-sqlserver.aspx</link><pubDate>2010-03-06T05:09:15.0000000-06:00</pubDate></item><item><title>Convert() function in SqlServer</title><description>declare @a varchar(2)
declare @b varchar(2)
set @a=10
set @b=20
Select COVERT(int,&lt;FO</description><link>http://www.dotnetspark.com/kb/1668-convert-function-sqlserver.aspx</link><pubDate>2010-03-06T04:59:46.0000000-06:00</pubDate></item><item><title>Date Formating in GridView</title><description>Date Formating in GridView?
This article will discuss how you can format data that is displayed in grid view rows
&amp;lt;asp:BoundField DataField="MyDate"&amp;nbsp; DataFormatString="{0:d}" HeaderText="DaDate"&amp;nbsp; /&amp;gt; 
&amp;nbsp;&lt;</description><link>http://www.dotnetspark.com/kb/1658-date-formating-gridview.aspx</link><pubDate>2010-03-05T08:37:25.0000000-06:00</pubDate></item><item><title>How to convert the date time in all format.</title><description>Many people are facing problem while converting date format.Here I am giving some tips to convert datetime format.
string date = "01/11/2009";//in the format month /date/year

DateTime dt = DateTime.Parse(date);

string result = dt.ToString("yyyy-MM-dd");//IN THE FORMAT YEAR /MONTH/DATE

string result1 = dt.ToString("yyyy-dd-MM");//IN THE FORMAT YEAR /DATE/MONTH

You have</description><link>http://www.dotnetspark.com/kb/1655-how-to-convert-date-time-all-format.aspx</link><pubDate>2010-03-04T02:11:05.0000000-06:00</pubDate></item></channel></rss>