IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
C#
Search C# Group:

Advanced
-Collapse +Expand C# To/From
To/FromCODEGuides
-Collapse +Expand C# Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C# Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KB ►► ProgrammingC#   Print This    All Groups  

C# (Visual C# & VS.Net) Most Read KB Posts

Page Contents


Most Read KB Articles Since 3/28/2008

C# (Visual C# & VS.Net) Group

  KB Article    

Adam Lum
1. Changing the Trust Level in your ASP.NET Web Applications

To restrict what an ASP.NET application can and cannot access and to provide an additional level of application isolation in a hosted environment, access security can be used. You do this by configuring the element in the machine-level Web.config file located in the following folder: %windir%\Microsoft.NET\Framework\{version}\CONFIG.

Posted to KB Topic: WebForms Coding Tasks
15 years ago, and updated 12 years ago
(77 Comments , last by Xarema.D )

KB Post
Nothing New Since Your Last Visit
55275
Hits

Bryan Valencia
2. How to open a URL in a pop-up window. Every now and then you want a link to open not only in a new browser, but you may want to give the new window the appearance of a pop-up window. This ASP/Javascript method gives you a lot of control and is easy to figure out and implement.
Posted to KB Topic: WebForms Coding Tasks
13 years ago, and updated 12 years ago
(1 Comments , last by Wes )

KB Post
Nothing New Since Your Last Visit
50169
Hits

Adam Lum
3. Deploying your .NET Application with ClickOnce (quick tutorial) A basic introduction to deploying an application using Visual Studio .NET 2005's ClickOnce
Posted to KB Topic: C#
14 years ago, and updated 12 years ago
(1 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
42357
Hits

Mike Prestwood
4. C# Abstraction (abstract, override)

C# supports abstract class members and abstract classes using the abstract modifier. An abstract class is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the abstract keyword.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago
(3 Comments , last by eion.r )

Code

Article
Nothing New Since Your Last Visit  
34726
Hits

Mike Prestwood
5. C# Partial Classes (partial)

C# uses the keyword partial to specify a partial class. All parts must be in the same namespace.

A partial class, or partial type, is a class that can be split into two or more source code files and/or two or more locations within the same source file. Each partial class is known as a class part or just a part. Logically, partial classes do not make any difference to the compiler. The compiler puts the class together at compile time and treats the final class or type as a single entity exactly the same as if all the source code was in a single location.

You can use them for many things including to separate code generator code, organize large classes, divice a class up so you can split ownwership among multiple developers, have different versions of the same class, and to utilize multiple languages with a single class.

Posted to KB Topic: OOP
12 years ago, and updated 12 years ago
(1 Comments , last by Assignment.H )

Code

Article
Nothing New Since Your Last Visit  
28274
Hits

Mike Prestwood
6. C# Overriding (virtual, override)

Method overriding allows you to define or implement a virtual method in a parent class and then replace it in a descendant class. In C#, you specify a virtual method with the virtual keyword in a parent class and replace it in a descendant class using the override keyword.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago
(6 Comments , last by Bert.G )

Code

Article
Nothing New Since Your Last Visit
27285
Hits

Mike Prestwood
7. C# Associative Array (Dictionary)

General Info: Associative Array

A set of unique keys linked to a set of values. Each unique key is associated with a value. Think of it as a two column table. MyArray['CA'] = 'California' MyArray['AR'] = 'Arizona'

Languages Focus: Associative Array

Associative arrays are also known as a dictionary or a hash table in other languages.

C# Associative Array

Posted to KB Topic: Language Details
13 years ago, and updated 12 years ago
(4 Comments , last by David.T8 )

Code
Nothing New Since Your Last Visit
25876
Hits

Mike Prestwood
8. C# Self Keyword (this)

To refer to the current instance of a class, use the this keyword. The this keyword provides a way to refer to the specific instance in which the code is currently executing. It is particularly useful for passing information about the currently executing instance.

The this keyword is also used as a modifier of the first parameter of an extension method.

You cannot use this with static method functions because static methods do not belong to an object instance. If you try, you'll get an error.

Posted to KB Topic: OOP
12 years ago
(4 Comments , last by Mike.B3 )

Code
Nothing New Since Your Last Visit
25504
Hits

Stephen Berry
9. Get UserID using ASP.NET Built-in Membership

How do you resolve the UserID of a user when using ASP.NET 2.0's built in Membership utility?

Posted to KB Topic: WebForms Beginners Corner
13 years ago, and updated 12 years ago

FAQ
Nothing New Since Your Last Visit
20695
Hits

Bryan Valencia
10. Consuming an RSS feed in ASP.NET

Using this quickie code snippet, you can attach an ASP:Gridview  to an external RSS Feed.

All you need to accomplish this is the URL of a usable feed.

Posted to KB Topic: WebForms Coding Tasks
11 years ago
(2 Comments , last by Hanvi.j )

Code
Nothing New Since Your Last Visit
19286
Hits



Most Read by Members

C# (Visual C# & VS.Net) Group

  KB Article    

Adam Lum
1. Changing the Trust Level in your ASP.NET Web Applications

To restrict what an ASP.NET application can and cannot access and to provide an additional level of application isolation in a hosted environment, access security can be used. You do this by configuring the element in the machine-level Web.config file located in the following folder: %windir%\Microsoft.NET\Framework\{version}\CONFIG.

Posted to KB Topic: WebForms Coding Tasks
15 years ago, and updated 12 years ago
(77 Comments , last by Xarema.D )

KB Post
Nothing New Since Your Last Visit
55275
Hits

Wes Peterson
2. Using Win32 DLLs in .NET

Can I use a Win32 DLL in my Visual Studio.Net application?

Posted to KB Topic: WinForms
14 years ago
(18 Comments , last by Jessica.B )

FAQ
Nothing New Since Your Last Visit
15029
Hits

Bryan Valencia
3. A 10 Minute C# Console Application Quick Start

This will show how to make a "hello world" console application in Visual Studio 2008 with C#. Let VS.Net do the work and create a new console application using the menu. Use Console.WriteLine and Console.ReadLine for simple input and output.

Posted to KB Topic: C#
13 years ago, and updated 13 years ago
(5 Comments , last by Alize.F )

Article
Nothing New Since Your Last Visit
15728
Hits

Wes Peterson
4. [DllImport] attribute

This code allows you to use Win32 DLLs in your .NET applications.

Posted to KB Topic: WinForms
14 years ago
(8 Comments , last by Bizease.B )

Code
Nothing New Since Your Last Visit
12423
Hits

Stephen Berry
5. Applying the Built-in ASP.NET User-Login Functionality to Your Database Using aspnet_regsql.exe to set up a database to support the functionality of ASP.NET 2.0's built-in membership.
Posted to KB Topic: C#
13 years ago, and updated 13 years ago
(5 Comments , last by coca.m2 )

KB Post
Nothing New Since Your Last Visit
6787
Hits

NE Ohio Computer Guy
6. An Inventory Transaction Report in C#

This article describes a C# module I created that will generate an inventory transaction report.

Posted to KB Topic: C#
11 months ago, and updated 10 months ago
(8 Comments , last by mason.e )

Article
Nothing New Since Your Last Visit
313
Hits

Mike Prestwood
7. C# Inlining (Automatic)

In C#, inlining is automatically done for you by the JIT compiler for all languages and in general leads to faster code for all programmers whether they are aware of inlining or not.

Posted to KB Topic: Language Details
12 years ago
(7 Comments , last by Megha.M )

Code
Nothing New Since Your Last Visit
9148
Hits

Mike Prestwood
8. C# Multiple Line Comment (// or /* */)

Commenting Code
C# uses "//" for a single line comment and /* */ for a multiple line comment.

Posted to KB Topic: Tool Basics
13 years ago, and updated 12 years ago
(6 Comments , last by Carver.L3 )

Code
Nothing New Since Your Last Visit
9533
Hits

Bryan Valencia
9. Get all components in an ASPX page recursively

Retrieves an array of all the components of any given type within a starter control (such as a page, table, panel, etc.)  This routine is recursive and will keep iterating down until all the embedded components are found.

This C# code can be invoked to produce an array as  follows:

CheckBox[] myCheckboxes = GetAllCheckboxes(Table1);
Posted to KB Topic: WebForms Coding Tasks
13 years ago, and updated 12 years ago
(16 Comments , last by coca.m2 )

Code
Nothing New Since Your Last Visit
10984
Hits

Bryan Valencia
10. Using GenericIdentity for Cross Platform Authentication in the .NET framework

When designing a WinForms application, the most straightforward way to authenticate a user is using NTLM or Active Directory using WindowsIdentity.GetCurrent. Over the Internet, you can use the whole ASP.Net security setup with Membership.GetUser. The GenericPrincipal object works well when you deploy to a mixed web/WinForms environment. See new GenericIdentity.

Posted to KB Topic: WebForms Coding Tasks
12 years ago
(7 Comments , last by aol.l )

KB Post
Nothing New Since Your Last Visit
15383
Hits
Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]