|
IT SOLUTIONS
Your TECHNOLOGY partner!
|
|
|
Prestwood eMagazineSubscribe now! It's Free!
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| KB Article | ||||
Bryan Valencia |
1. 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
36 months ago
|
Code
6231
Hits |
||
khemebuen |
2. Extension Methods in C#
Add new methods to predefined types and objects with extension methods (no need to recompile the base code). To use this extension, all i have to do is include the namespace ExtensionExample. Posted to KB Topic: OOP
48 months ago, and updated 42 months ago
|
Blog
2731
Hits |
||
Bryan Valencia |
3. Using a Legacy Windows DLL in ASP.NET
This article will show how to access a function in a legacy COM dll from a ASP.NET web page. By legacy I mean a dll that is not a .NET managed code dll (a Win32 DLL). Posted to KB Topic: WebForms Coding Tasks
42 months ago
|
KB Post
3458
Hits |
||
Bryan Valencia |
4. 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
42 months ago
|
KB Post
4134
Hits |
||
Bryan Valencia |
5. Getting Website Root Directory in C# ASP.NET
This code shows how to ask the webserver where the site's root directory is, and how to convert a relative path (like /Uploads) to the full filesystem path. This will work across environments (i.e. Development/QA/Production). Posted to KB Topic: WebForms Coding Tasks
53 months ago, and updated 43 months ago
(1 Comments
, last by Anonymous )
|
Code
6165
Hits |
||
Mike Prestwood |
6. C# Base Class (System.Object)
In C#, the Object keyword is an alias for the base System.Object class and is the single base class all classes ultimately inherit from. Posted to KB Topic: OOP
55 months ago, and updated 43 months ago
|
Code
3067
Hits |
||
Mike Prestwood |
7. C# Case Sensitivity (Yes)
C# is case sensitive. The following does NOT: messagebox.Show("hello"); //Does not work!
The first time you type any other case for commands or variables, VS.Net will change it to the accepted or defined case. For example, if you type messagebox.show it is converted to MessageBox.Show. Once corrected, you can break it again by editing MessageBox to messagebox and the compiler will give you an error. Posted to KB Topic: Tool Basics
53 months ago, and updated 43 months ago
|
3140
Hits |
||
Mike Prestwood |
8. C# Empty String Check (String.IsNullOrEmpty)
The .Net framework offers a static method in the string class: String.IsNullOrEmpty. Posted to KB Topic: C#
44 months ago
|
Code
3761
Hits |
||
Mike Prestwood |
9. C# Member Method
In C# you can set the visibility of a member field to any visibility: private, protected, public, internal or protected internal. You can intialize a member field with a default when declared. If you set the member field value in your constructor, it will override the default value. Finally, you can use the static modifier (no instance required) and readonly modifier (similar to a constant). Posted to KB Topic: OOP
53 months ago, and updated 45 months ago
|
3831
Hits |
||
Bryan Valencia |
10. 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
5 years ago, and updated 46 months ago
(1 Comments
, last by Wes )
|
KB Post
14212
Hits |
|
||||||
| ||||||
|
©1995-2013 PrestwoodBoards [Security & Privacy]
A Prestwood IT Solutions website.
|