kulveer

Stories submitted by kulveer

ASP.NET, HTML, JavaScript Snippet Support in VS2010(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 8 months ago

This is the sixth in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release. Today’s post covers another useful improvement in VS 2010 – HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing. Visual Studio has supported the concept of “snippets” for VB and C# in previous releases – but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well. Using ASP.NET Snippets Let’s walkthrough how we can use snippets to quickly implement a common security scenario. Specifically, we’ll implement the functionality necessary to display either a “[ Login ]” link or a “[ Welcome UserName ]” message at the the top right of a site depending on whether or not the user is logged in: step1 The above functionality is automatically added for you when you create a project using the new ASP.NET Project Starter Template in VS 2010. For the purpose of this walkthrough, though, we’ll assume we are starting with a blank master page and will build it entirely from scratch. read more...

add a comment |category: |Views: 9

tags: another

How to use Visual Inheritance in VS2010 .(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 8 months ago

This blog explains about the new feature of VS 2010 that is Visual Inheritance. in windows applciations . read more...

add a comment |category: |Views: 90

tags: another

What Silverlight Class Libraries developer should know ?(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 8 months ago

In order to write practical code, you need to know quite a bit about the classes you have to work with. That means acquiring a thorough knowledge of the core class libraries that ship with Silverlight. Silverlight includes a subset of the classes from the full .NET Framework. Although it would be impossible to cram the entire .NET Framework into Silverlight—after all, it’s a 4MB download that needs to support a variety of browsers and operating systems—Silverlight includes a remarkable amount of functionality. The Silverlight version of the .NET Framework is simplified in two ways. First, it doesn’t provide the sheer number of types you’ll find in the full .NET Framework. Second, the classes that it does include often don’t provide the full complement of constructors, methods, properties, and events. Instead, Silverlight keeps only the most practical members of the most important classes, which leaves it with enough functionality to create surprisingly compelling code. read more...

add a comment |category: |Views: 15

tags: another

How to use Flash objects in C#(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 8 months ago

This is tutorial forHow to use Flash objects in C# http://aspnetcsharp4.blogspot.com/2009/08/how-to-use-flash-objects-in-c.html http://aspnetcsharp4.blogspot.com/2009/08/how-to-use-flash-objects-in-c.html read more...

add a comment |category: |Views: 8

tags: another

How to use Windows media in C#(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 8 months ago

This is tutorial for How to use Windows media in C# read more...

add a comment |category: |Views: 10

tags: another

What is polymorphism?(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

Polymorphism in C# read more...

add a comment |category: |Views: 8

tags: another

Query XML using LINQ(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

* * ADO.NET (4) * JQuery (4) * LINQ (4) * SharePoint (4) * nHibernate (3) * .NET (2) * Answers (2) * Java (2) * .NETFramework (1) * Free ASP.NET Hosting (1) * JSON (1) * Microsoft (1) * SilverLight (1) * Visual Studio 2010 (1) * WCF (1) Followers User Map Locations of visitors to this page MSDN: Visual C# Headlines * Arrays of Arrays * Live Geometry Screen Cast * Windows 7 Code Pack v. 1.0 Released * Silverlight 3 and .NET RIA Part 18: Custom Linq Providers * TreeSelector : Playing with Generics and Type Inference B# .NET Blog * LINQ to Ducks – Bringing Back The Duck-Typed foreach Statement To LINQ * (Mis)using C# 4.0 Dynamic – Type-Free Lambda Calculus, Church Numerals, and more * Statement Trees With Less Pain – Follow-Up on System.Linq.Expressions v4.0 * Expression Trees, Take Two – Introducing System.Linq.Expressions v4.0 * A Whirlwind Tour through the Managed Extensibility Framework This Blog Linked From Here The Web This Blog Linked From Here The Web Query XML using LINQ Posted On Saturday, August 22, 2009 at at 3:21 PM by kulveer Save page as PDF Query XML Example below given shows that how easy it is to displays the ease with which one can interact with and query Extensible Markup Language (XML) data utilizing the LINQ to XML API. You should pay particular attention to how I construct the XML data into an object named books that I can programmatically interact with. read more...

add a comment |category: |Views: 83

tags: another

Comparision between Silverlight vs. Flash(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

The most successful browser plug-in is Adobe Flash, which is installed on over 90 percent of the world’s web browsers. Flash has a long history that spans more than ten years, beginning as a straightforward tool for adding animated graphics and gradually evolving into a platform for developing interactive content. read more...

add a comment |category: |Views: 34

tags: another

ASP.NET,C# ,VS 2008, SQL ,ADO.NET, LINQ,WPF,WCF,SilverLight: nHibernat(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

In the last article we saw that how we can insert the data into the database using only few lines and without stored procedures. In this article we will look at some of the other cool features of NHibernate. Retrieving a single record from the database: read more...

add a comment |category: |Views: 8

tags: another

Loading User Control Dynamically in C#(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

Abstract: User Controls are great in ASP.NET. They let us divide the page into small sections. You can easily use User Controls on a ASP.NET page by simply dragging and dropping the control from the solution explorer. Sometimes we need to load the User Control dynamically. In this small article we will learn how to load the User Control dynamically. read more...

add a comment |category: |Views: 54

tags: another

What is Static Constructor:(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

What is Static Constructor: C# supports two types of Constructor 1.Class Constructor or Static Constructor-used to initialize static data members as soon as the class is referenced first time 2.Instance Constructor or non-Static Constructor-used to create an instance of that class with new keyword. Static Data Member can be initialized at the time of their declaration(clsWithoutStaticConstructor in the following example) but there are times when value of one static member (clsWithStaticConstructor in the following example)may depend upon the value of another static member. read more...

add a comment |category: |Views: 5

tags: another

Factory Pattern(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

What is a Factory Pattern :Factory Pattern creates an instance of several derived classes. read more...

add a comment |category: |Views: 21

tags: another

Implementing the Singleton Pattern in C#(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

Implementing the Singleton Pattern in C# The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, and usually gives simple access to that instance. Most commonly, singletons don't allow any parameters to be specified when creating the instance - as otherwise a second request for an instance but with a different parameter could be problematic! (If the same instance should be accessed for all requests with the same parameter, the factory pattern is more appropriate.) This article deals only with the situation where no parameters are required. Typically a requirement of singletons is that they are created lazily - i.e. that the instance isn't created until it is first needed. There are various different ways of implementing the singleton pattern in C#. I shall present them here in reverse order of elegance, starting with the most commonly seen, which is not thread-safe, and working up to a fully lazily-loaded, thread-safe, simple and highly performant version. Note that in the code here, I omit the private modifier, as it is the default for class members. In many other languages such as Java, there is a different default, and private should be used. read more...

add a comment |category: |Views: 6

tags: another

CAPTCHA Functionality using C#(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

According to wikipedia, CAPTCHA ("Completely Automated Public Turing test to tell Computers and Humans Apart") is a challenge response test which is used to check that if the user is human or not. CAPTCHA is used exclusively in applications where the user input is required. These applications include Blogs, Forums and Portals. In this article I will demonstrate how to create a simple webpage that uses CAPTCHA functionality. Introduction: According to wikipedia, CAPTCHA ("Completely Automated Public Turing test to tell Computers and Humans Apart") is a challenge response test which is used to check that if the user is human or not. CAPTCHA is used exclusively in applications where the user input is required. These applications include Blogs, Forums and Portals. In this article I will demonstrate how to create a simple webpage that uses CAPTCHA functionality. read more...

add a comment |category: |Views: 46

tags: another

AJAX Features in ASP.NET MVC(aspnetcsharp4.blogspot.com)

submitted by kulveerkulveer(110) 2 years, 9 months ago

AJAX Features in ASP.NET MVC Discover How to Place AJAX Requests in ASP.NET MVC Applications For a few moments when I first approached ASP.NET MVC I really thought it was the negation of AJAX. With a programming model heavily based on REST principles, I thought all that one could do is invoke a URL. And when you get, or post to, a URL, you inevitably involve the browser and get a full-page refresh. As I’ve explored it more, and as the facts have largely shown, my first impression was dead wrong. AJAX is definitely possible in ASP.NET MVC. read more...

add a comment |category: |Views: 4

tags: another