select * from sysobjects
where xtype='U'
Friday, 22 August 2008
Wednesday, 20 August 2008
To convert Text into Title Case..
Use following Name Spaces
-------------------------------------------------------------
using System.Globalization;
using System.Threading;
------------------------------------------------------------
CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
TextInfo textInfo = cultureInfo.TextInfo;
Label1.Text = textInfo.ToTitleCase(txttext.Text);
-------------------------------------------------------------
using System.Globalization;
using System.Threading;
------------------------------------------------------------
CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
TextInfo textInfo = cultureInfo.TextInfo;
Label1.Text = textInfo.ToTitleCase(txttext.Text);
Avoid Special Characters
var r={'special':/[\W]/g}
function valid(o,w)
{
o.value = o.value.replace(r[w],'');
}
function valid(o,w)
{
o.value = o.value.replace(r[w],'');
}
For Search Text Box (Execute Search Button by Pressing Enter Key)
function Fun_Search()
{
if (event.keyCode==13)
{
if(document.getElementById('search_txt').value==''||(document.getElementById('search_txt').value)=='Enter the search string')
{
alert('Search string can not be blank.');
return false;
}
document.getElementById('search_btn').disabled=true;
self.location.href='http://www.nitinkumar.com/home/search_new.aspx?find='+document.getElementById('search_txt').value;
return false;
}
}
{
if (event.keyCode==13)
{
if(document.getElementById('search_txt').value==''||(document.getElementById('search_txt').value)=='Enter the search string')
{
alert('Search string can not be blank.');
return false;
}
document.getElementById('search_btn').disabled=true;
self.location.href='http://www.nitinkumar.com/home/search_new.aspx?find='+document.getElementById('search_txt').value;
return false;
}
}
Subscribe to:
Posts (Atom)