Archive for June, 2009

Global Mouse Hooks in .NET

Global hooks are not supported in the .NET Framework
Except for the WH_KEYBOARD_LL low-level hook and the WH_MOUSE_LL low-level hook, you cannot implement global hooks in the Microsoft .NET Framework. To install a global hook, a hook must have a native DLL export to inject itself in another process that requires a valid, consistent function to [...]

Leave a Comment

TechEd 2009 Trivandrum Photos and Videos

Here are some photos and videos took while TechEd @ Technopark, Trivandrum.
Photos - http://www.flickr.com/photos/visualanand/
Videos - http://www.youtube.com/techedtvm
Source
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Article: Flex Communication with ASP.NET WebService

I just posted my new CodeProject article Flex Communication with ASP.NET WebService. This article demonstrates how to communicate our ordinary ASP.NET WebService with Adobe’s Flex.
Read here: http://www.codeproject.com/KB/aspnet/FlexASPWebService.aspx
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Active Directory Scalability – Maximum Limits

Maximum number of users:
So far, testing in this area has yet to reveal any new recommended limits to the number of members in a group or any other linked multivalued attribute. Production environments have been reported to exceed 4 million members, and Microsoft scalability testing reached 500 million members.

 
http://technet.microsoft.com/en-us/library/cc756101(WS.10).aspx
Above link explains these useful details:

Maximum Number [...]

Comments (1)

T-SQL Pass GETDATE() as a parameter for stored procedure

When you pass getdate() function as a parameter directly to a stored procedure, you will get an error: Incorrect syntax near ‘)’.

EXEC sp_GetProject GETDATE()
 
Error:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ‘)’.

To avoid this, you will need to create a variable and pass it to the stored procedure. Like this:

DECLARE @dt DATETIME;
SET @dt=GETDATE();
 
EXEC [...]

Leave a Comment

Invoke a ASP.NET WebService from Flex

Here, I used a basic WebService created with ASP.NET. Below is a basic hello world functionality we get when creating a new WebService with Visual Studio.

using System.Web.Services;
 
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
 
public class Service : System.Web.Services.WebService
{
public Service () {
 
}
 
[WebMethod]
public string [...]

Comments (1)

Article: Flex HTTPService with ASP.NET

My new article Flex HTTPService with ASP.NET posted to CodeProject.
Read it now
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Using HTTPService of Flex to get data from ASP.NET

Here goes the sample code:
ASP.NET – Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
 
<script runat="server">
 
protected void Page_Load(object sender, EventArgs e)
{
SqlDataAdapter da = new SqlDataAdapter("select id, name, email from test",
"Data Source=localhost;Initial Catalog=test;User Id=;Password=;");
[...]

Leave a Comment

Mini TechEd in Trivandrum

 

Kerala Microsoft user’s group (K-MUG) is organizing a Mini-TechEd in Trivandrum. Don’t miss this Free opportunity to learn about Windows 7,  Visual Studio 2010 features, WPF, What is new in ASP.NET 4.0, SQL server best practices,SQL logical query execution and optimization tips,Hidden Gems in SQL Server.
Date : 27th June 2009
Venue : Technopark, Trivandrum
 
Register Now!
Related Links:

http://kidoos.net/blogs/kidoos/archive/2009/06/15/mini_2D00_teched_2D00_in_2D00_trivandrum.aspx
http://anuraj.wordpress.com/2009/06/11/mini-teched-in-trivandrum/
http://blogs.windowsclient.net/vsdev/archive/2009/06/11/mini-teched-in-trivandrum.aspx
http://www.codegeeks.net/mini-teched-in-trivandrum
http://weblogs.asp.net/shijuvarghese/archive/2009/06/15/mini-teched-in-trivandrum.aspx

VN:F [...]

Comments (3)

C# ?? operator

Check example:

int? a = null;
int? b = 1;
int? c;
c = (a ?? b);
Text = c.ToString();

?? operator returns the left-hand (in our example ‘a’), if it is NOT null. Otherwize it will return the right-hand (‘b’).
Returns null if both operands are null.
You can read more about this on MSDN page.
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes [...]

Leave a Comment