To get the count of messages in a MSMQ Queue in C#.NET
There is no direct property provided with MessageQueue class. We can use GetMessageEnumerator2 to get the enumerator to enumerate and get the count of number of messages present in the queue. The......
View ArticleValidating textbox to not allow invalid characters in all cases.
In order to allow user to enter only certain characters in a textbox and also to control the maximum length of multiline textbox use the below function by calling it on onkeypress for a textbox. ......
View ArticleJunior Software Developer
Job Description Position: Junior Software Developer Apply Now Requirements: • Knowledge and experience in C# ,ASP.NET SQL and XML (academic project in NET is Must) • Experience working in a variety......
View ArticleJSON Serialization in VS 2008
Say we need to convert serialize C# object to JSON string and transfer that to client side to be used in Javascript. DataContract attribute is added to a class and DataMember attribute is added for......
View ArticleVisual Studio 2010 and .NET 4.0 Beta 2 Released
Visual Studio 2010 and .Net Framework 4.0 Beta 2 is released this wednesday. This is available for download in MSDN here http://go.microsoft.com/fwlink/?LinkID=151797 Have a look at the style and......
View ArticleSolution: How to change css class for an element in jquery?
In order to change the CSS class applied to an element using jQuery we can use methods like addClass() and... (Click on the Article link to read full article. or visit...
View ArticleMS Excel like Round function in c#.
1. Excel Round function behaves differently when we compare with C# Math.Round() method. 2. Also Excel Round allows Round to -1, -2... example Round(121,-1) = 120. This is not allowed in... (Click on...
View ArticleMS Excel like Ceiling function in c#.
- EXcel Ceiling function returns a number rounded up based on a multiple of significance. - Example Ceiling(41.88, 10) will give 50 and Ceiling of 41.88 to 5 will give 45. - Below is the C# function......
View ArticleSharePoint Coding Practices
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 false false false false... (Click on the Article...
View ArticleSharePoint Architecture Diagram
(Click on the Article link to read full article. or visit http://interviews.dotnetthread.com for more!)
View ArticleBroken Authentication and Session Management
Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4 ... (Click on the Article link to read full article. or visit http://interviews.dotnetthread.com for more!)
View ArticleWhat do you mean by String objects are immutable?
String objects are immutable as its state cannot be modified once created. Every time when we perform any operation like copy, replace, case conversion or when we pass a string object as a parameter......
View ArticleWhat is the difference between System.Text.StringBuilder and System.String?
String is immutable and string builder is mutable. String is useful as some costly operations for copying and comparing can be omitted making program simple. However, making an object immutable is......
View ArticleWhat is the difference between int.Parse and int.TryParse methods?
int.Parse is a simple method used to convert string to integer. It throws exception when null or invalid input is provided. Hence it is slow. int.TryParse does not thow any exception instead we must......
View ArticleDifference Between Function Overloading and Overriding ?
Overloading means having functions with the same name but with different signature.Signature includes method name and Parameters. These functions can be part of base class or derived class. Whereas......
View ArticleWhat is Method Hiding?
Method hiding is to hide/mask method in base class by creating a similar function in derived class and by using new keyword in the derived class. Unlike Method overriding, When we refer base class......
View ArticleMicrosoft Jobs
1. SR Software Development Engineer SQL 2005/2008 .NET Framework 3.5/4.0 ASP.NET/ASP/C# WCF/WPF/WF/Silverlight SharePoint 2007/2010 Apply Now:... (Click on the Article link to read full article. or...
View ArticleWebMatrix - Microsoft new IDE (Free Tool)
Have a look at WebMatrix a new IDE for Web Development. (Simplifies Web development) http://www.microsoft.com/web/webmatrix Introduction and First... (Click on the Article link to read full article. or...
View ArticleParallel Computing in .NET Framework 4.0
Parallel Computing in .NET 4.0 – Task Parallel Library & PLINQ on Dec 05, 2010 by Anil Kumar Reddy Perugu .NET 4 introduces various parallel-programming primitives that abstract away some of the......
View ArticleHow to use Variable in SQL IN Clause
DECLARE @EmpID VARCHAR(8000) SET @EmpID = '''Emp1'',''Emp2''' Select * from emp where empid in(@empid) - This doesnt work... For solution check the below... (Click on the Article link to read full...
View ArticleSQL most efficient way to query xml nodes
Most efficient way to query nodes in XML is to use XQuery methods like .value, .nodes, .query and .exists methods For Examples, check below... (Click on the Article link to read full article. or visit...
View ArticleFeatured Job Posts of the week
Senior Software Engineer Bangalore, India SuccessFactors $1,000 Referral RewardLead Software Engineer (UI) Bangalore, India SuccessFactors $1,000 Referral RewardLead QA Engineer Bangalore,... (Click on...
View ArticleHighlight a keyword dynamically in any HTML document
How to highlight a word in a web page document using a simple javascript function. Consider any sample HTML page and write a JavaScript code to do the following: 1.Replace a word (ex: “HTML”) with a......
View ArticleCurrent Status of HTML5 Video
Is HTML5 player supported on all platforms and browsers?Which video and audio codecs are supported?Whether HTML5 video does Progressive download or Live Streaming?Is HTML5 video ready to replace......
View ArticleWindows Azure Web Sites Vs Web Role, When to use what?
Read this to understand the capability differences and know when to use Azure Web Sites, Web Role, Mobile Services and Virtual Machines.. Choosing between Windows Azure Web Sites, Web Roles and......
View Article
More Pages to Explore .....