|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
Destructors are called by the CLR when the Garbage Collector
destroys an object. In VB.NET it is called the Finalize() method. In C# it
is declared by putting a til '~' in front of the class name (~MyClass()
{}).
Since when exactly GC will call Finalize method is not know you might land
up holding critical resources like database connections. it not advice to
leave connection close statements in finalized methods, instead use
dispose. The Dispose() method is simply a
method you call manually to clean up your object. In reality, this is just
another method of your class and you can call. Dispose()
is the recommended naming standard. You should put all cleanup code here
rather than in the
Finalizer |
|
| One of my site visitor ask me a query that he wants Numeric
Textbox in ASP. NET, I suggested him to use JavaScript but he was having problem on how to write it in
JavaScript. I send him this code
function IsNumeric(e)
{
if (isNaN(e.value) == true)
{
alert("VALUE SHOULD BE NUMERIC");
e.value = "";
e.focus();
return false;
}
else
return true;
}
<INPUT type="text" name="amount" onkeyup="return IsNumeric(this)">
but then i thought can't we do that in a simple one line. the thought lead me to Investigate and i found one can use RegEX to do the same in ONE Line...
<INPUT type="text" name="decimal" onkeyup='this.value=this.value.replace(/[^\d]*/gi,"");' />
That's Pretty Cool man... isn't it.
|
|
About Virtual India:
Virtual India is a research project by Microsoft Research India, in collaboration with the Government of India's
Department of Science and Technology, powered by Microsoft Virtual Earth™ technology
http://virtualindia.msresearch.in/
Language choices for the UI and map labels include English, Hindi, Kannada, and Tamil.
See Bangalore at less then 300 yds
Do anyone knows any other URL showing detailed India MAPs.? |
|
| SQL Server login 'sa' and password '<blank>' is
known universally. it is always recommended that you change your loginid
sa password immediately after installation. In SQL Server 2005 you can
also change login name. Yes your login sa can be renamed to the name of
your choice.
ALTER LOGIN (Transact-SQL) can be used to change the properties of a SQL Server login account
Eg: ALTER LOGIN sa WITH NAME = GumNamAdmin;
WITH NAME = : The new name of the login that is being renamed. If this is a Windows login, the SID of the Windows principal corresponding to the new name must match the SID associated with the login in SQL Server. The new name of a SQL Server login cannot contain a backslash character (\).
|
|
| Most
of you must have worked on paging feature of DataGrid. its works fine as
long as you have more no of records to show, but if you have configured 20
records per page and no of records you retrieved is less then 20 then also
pager gets rendered at the bottom of the grid showing "1". most
of us do not bother about it , but Clients yes...... if
you also encounter such things this is how you solve
SQLDataAdapter.Fill(DS,"Emp")
If DS.Tables("Emp").Rows.Count
> MyDataGrid1.PageSize then
MyDataGrid1.AllowPaging = True
Else
MyDataGrid1.AllowPaging = False
End if
MyDataGrid1.DataBind()
what say ....any
better ways?
Ya
perhaps this could have been reduced to one line also eg.
MyDataGrid1.AllowPaging = (
DS.Tables("Emp").Rows.Count > MyDataGrid1.PageSize )
Anything better then this?
|
|
|
For the
first time ever, Microsoft and Palm have teamed up to offer the first and
so far only Palm device that runs Windows Mobile! The
Palm Treo 700w smartphone is one of the hottest new devices introduced
this year
Palm
Treo 700w Smartphone Overview: The
Palm Treo 700w smartphone combines a smarter phone with broadband-like
speeds, wireless email, and rich-media capabilities all in one –
bringing Palm’s world-class ease of use to the Windows Mobile®
platform. The PluggedIn
Program offers developers a wide range of technical and marketing
resources to inspire new products, streamline the development process and
get solutions to market quickly.
http://www.palm.com/us/products/smartphones/treo700w/
|
|
|
|
|
|
|
|
|
|
|