I.T. Discussion Community!
-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

June 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
13 years ago, and updated 10 years ago
(68 Comments , last by Aditi.S )

KB Post
Nothing New Since Your Last Visit
52587
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
11 years ago, and updated 10 years ago
(1 Comments , last by Wes )

KB Post
Nothing New Since Your Last Visit
49502
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#
12 years ago, and updated 10 years ago
(1 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
41737
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
11 years ago, and updated 10 years ago

Code

Article
Nothing New Since Your Last Visit  
33334
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
10 years ago, and updated 10 years ago
(1 Comments , last by Assignment.H )

Code

Article
Nothing New Since Your Last Visit  
26902
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
11 years ago, and updated 10 years ago
(1 Comments , last by Anonymous )

Code

Article
Nothing New Since Your Last Visit
25652
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
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
22652
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
10 years ago
(4 Comments , last by Mike.B3 )

Code
Nothing New Since Your Last Visit
21901
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
11 years ago, and updated 10 years ago

FAQ
Nothing New Since Your Last Visit
20000
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
9 years ago
(2 Comments , last by Hanvi.j )

Code
Nothing New Since Your Last Visit
18441
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
13 years ago, and updated 10 years ago
(68 Comments , last by Aditi.S )

KB Post
Nothing New Since Your Last Visit
52587
Hits

Mike Prestwood
2. 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
10 years ago
(7 Comments , last by Megha.M )

Code
Nothing New Since Your Last Visit
8329
Hits

Bryan Valencia
3. 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
9 years ago
(2 Comments , last by Hanvi.j )

Code
Nothing New Since Your Last Visit
18441
Hits

Mike Prestwood
4. Coding for Application Virtualization How do I take advantage of Application Virtualization in the application I'm coding?
Posted to KB Topic: C#
11 years ago, and updated 11 years ago

FAQ
Nothing New Since Your Last Visit
14577
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#
11 years ago, and updated 11 years ago
(1 Comments , last by chris.l4 )

KB Post
Nothing New Since Your Last Visit
6174
Hits

Adam Lum
6. 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#
12 years ago, and updated 10 years ago
(1 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
41737
Hits

Mike Prestwood
7. C# Pointers

Although pointer data types in C# coding are less important than in other languages such as C++, C# does support developer defined pointers. Use the * operator to declare a pointer data type. Use the & operator to return the current address of a variable.

In .Net managed coding the use of pointers is not safe because the garbage collector may move memory around. To safely use pointers, use the unsafe keyword.

C++/CLI has more extensive support for pointers than C#. If you have needs that go beyond what C# offers, you can code in C++/CLI and add it to your project.

Posted to KB Topic: Language Details
10 years ago

Code
Nothing New Since Your Last Visit
8484
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
10 years ago
(4 Comments , last by Mike.B3 )

Code
Nothing New Since Your Last Visit
21901
Hits

Mike Prestwood
9. 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
11 years ago, and updated 10 years ago

Code

Article
Nothing New Since Your Last Visit  
33334
Hits

Mike Prestwood
10. 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
11 years ago, and updated 10 years ago
(3 Comments , last by Priscilla.B )

Code
Nothing New Since Your Last Visit
8652
Hits
Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 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).
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech