Geeks With Blogs
kazim mehdi January 2011 Entries
Howto: know the version of windows

First command that I learned when I got pc

is ver & vol

windows still supports these commands. But now I learned a new command



its actually bring About Windows dialog.


that can be run directly from start\run


that gives more information as compare to ver command.

Posted On Monday, January 31, 2011 11:36 AM

Passing additional parameters to JQuery bind event function
To pass the additional parameter to the event function pass an array of key value, as the second parameter to the bind event bind('click', { message: time }, onClick); e.g { message: time } and access it in the function using event<function parameter>.data.message&... <div id="div1" style="border: 1px solid black; width: 100px; height: 100px">click me</div> <script type="text/javascript"> function onClick(event) { alert(; } var time = "loaded at:" ......

Posted On Monday, January 31, 2011 11:23 AM

Sql Server: Table row count b4 a blink complete.
Its always time consuming when ever we have to get the row count on the table that includes millions of rows but not any more get the result back b4 an eye complete its blink. EXEC sys.sp_spaceused N'tblename' Replace tablename with the name of your table and see the result. http://www.sqlservercentral... ......

Posted On Friday, January 28, 2011 4:38 PM AJAX Calling Prototype based client side function on button client click.

I developed a custom control that utilizing client side functionality also. What I needed is calling client side function on clicking button.

to accomplish this we need to find the clientside object for that we use $find passing clientId of the custom web control as mentioned below.


btn.OnClientClick = string.Format("$find('{0}').add({1});", this.ClientID, ‘add’);

Posted On Friday, January 28, 2011 12:10 PM

'Table' cannot have children of type 'ListViewDataItem'
I was using System.Web.UI.WebControls.T... System.Web.UI.WebControlsTa... System.Web.UI.WebControls.T... objects inside LayoutTemplate’s InstantiateIn method that’s inherited from ITemplateas stated below:Table = new Table(); when compile got the following error on the YPOD(Yellow page of Death) 'Table' cannot have children of type 'ListViewDataItem'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information ......

Posted On Thursday, January 27, 2011 5:34 PM

Copyright © kazim sardar mehdi | Powered by: