How to show the task manager if it is blocke by some virus / administrator

If some virus/program has blocked your task manager in windows and gives messages like "Task manager has been disabled by your administrator", you can enable it by running this command in the run command box:

REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f

How to retrieve the next value from identity column of a table

Syntax:
Select Ident_Current('table name here') +1

Example:
Select Ident_Current('Inquiry') +1

Karachi Bloggers Meetup

Karachi Bloggers Meetup has been announced and it is being organized by "CIO Pakistan", I am looking forward to this event. It is going to be very informative as many experienced bloggers will be there to share their thoughs and experiences. Another such meetup has already been organized by the same team in lahore as well.

The details as mentioned on event's facebook page are as under;

===============

Register Here:
==========
Since we have limited seats, PLEASE register here (registration is FREE!):
http://tinyurl.com/karachi-bloggers-meetup OR
https://spreadsheets.google.com/viewform?key=pw33ACoJeTaUkNkyS6NGdCw

Who Can Benefit From Blogging?
====================
Students: Discover how you can earn your own pocket money
Housewives: Learn how you can earn & support your family while staying at home
Professionals: See how you can enjoy a second income while still doing a full-time job
Everybody: Other than the monetary perspective, learn how to share your thoughts/opinions with the world

Event Summary:
==========
The idea is to encourage Internet users & bloggers to meet offline as well. Senior bloggers get a chance to share knowledge & experience. New wanna-be bloggers can learn from the local success stories and network with leaders & professionals in this field.

Organizer:
======
CIO Pakistan [ http://www.ciopakistan.com/ ]
in association with Google Pakistan [ http://www.google.com.pk/ ]

Venue:
====
TBA soon

Agenda (draft/tentative):
================
Keep watching... Coming soon...

Requests:
======
- Please help spread the word in any way you can
- Karachi Bloggers: please help post about it on your blogs, twitter, FB, Digg, Stumbleupon, etc.
- You may bring your laptops as we hope to have WiFi connectivity there; Enjoy live blogging, Tweeting, etc.
- Please DON'T be shy at the event to ask even the silliest of questions!

Punctuality is virtue!

Dodging the Modal Popup Extender

I wanted the ASP .Net AJAX Toolkit's Modal Popup Extender to appear at some condition, not at the click of a button, that checks that condition.

I accomplished this extender to some dummy button and made that button hide. Whereas called PopupObj.Show() method on the desired condition. But there is still a problem that the popup appear without PostBack only on the click event of the button with whcih it was made. You cannot set TargetControlID of the popupExtender object to any other button on runtime and achieve that functionality.

Instead you can use Update panel for this pupose.

How to Access DataTable from a SqlDataSource Control

First convert source of a SQLDataSource into a DataView,
DataView dv1 =  (DataView)SqlDataSource2.Select(new DataSourceSelectArguments());

then Cast it as DataTable using ToTable() method of DataSet,
DataTable dtSpecTable1 = (DataTable)dv1.ToTable();

Now 'dtSpecTable1' contains your desired DataTable. If u know how to convert such
a dataTable into a named DataTable, please share here in comments.

ASP .Net DataList Strange Errors

I am using ASP .Net's DataLIst control for Data binding in one of my projects. Everything was working fine. In the item command event, I was using value of text from a label which is databound to a primary key (datatype float). But it was rounding off the float value to 13 decimal places when storing as Text of Label. So I could not use it anymore as a primary key for the row which is represented by the current item.

Then I switched to the dataKeys collection of DataList and it was working fine because DataKeys also storss the whole set of primary key values of the current dataset/datatable. But suddenly it started storing DBNull instead of the primary key value in some specific kinds of records, not all of them. I tried it amny times but nothing worked. Naturally I had to switch towards the Text property of Label for those specific Items. 

LinkWithin

Related Posts with Thumbnails