Skip to main content

James Bouy's Library tagged .net   View Popular

08 Jul 08

REST Mechanisms In ASP.NET | e-chishiki.com

To represent the APIs in a Web Service as URLs, we need to use a feature in the ASP.NET framework to provide our own virtual paths within the web server. It will require us to parse the URL for incoming requests and map it to existing Web Service APIs. We will extend two abstract framework classes for this purpose:

e-chishiki.com/...rest_asp_dot_net - Preview

.net programming REST

.NET: A simple AJAX service using Plain Old XML (POX), Part 1: Server-side implementation

However, SOAP is often considered heavy, because it involves an XML envelope, serialization of objects, parameters, etc... and can often be advantageously replaced by leaner calls using Plain Old XML (POX) as a communication medium.

www.galasoft-lb.ch/...article-2006100601.aspx - Preview

.net pox programming ajax xml

01 Jul 08

Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing

MSDN article showing how to enable diagnostic tracing in ASP.NET.

msdn.microsoft.com/...b0ectfxd.aspx - Preview

c# logging trace .net

  • <system.codedom>
    <compilers>
    <compiler language="c#;cs;csharp"
    extension=".cs"
    compilerOptions="/d:TRACE"
    type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="1" />
    <compiler language="VB"
    extension=".vb"
    compilerOptions="/d:Trace=true"
    type="Microsoft.VisualBasic.VBCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    </compilers>
    </system.codedom>
13 Jun 08

Screen Scraping, ViewState, and Authentication using ASP.Net

With RSS, XML, and Web Services, the need to screen scrape has diminished, but is not extinct. In this article we will examine a few methods to grab the HTML from another URL and for display in your own page.

odetocode.com/162.aspx - Preview

.net webdesign screenscrape

30 May 08

Foundations of Programming - pt 8 - Back to Basics: Exceptions - Karl Seguin

Exceptions are such powerful constructs that developers can get a little overwhelmed and far too defensive when dealing with them. This is unfortunate because exceptions actually represent a key opportunity for developers to make their system considerably more robust. In this chapter we'll look at three distinct aspects of exceptions : handling, creating and throwing them. Since exceptions are unavoidable you can neither run nor hide, so you might as well leverage.

codebetter.com/...back-to-basics-exceptions.aspx - Preview

programming .net exceptions reference

21 May 08

Ukadc.Diagnostics - Home

The idea behind this project was to provide a framework that uses the inbuilt features of the System.Diagnostics namespace, and show how logging and tracing can be integrated into a client application whilst taking advantage of the services exposed by System.Diagnostics. There are many logging/tracing frameworks already available for .NET, however the .NET framework uses the services of System.Diagnostics and this project will utilise these inbuilt features and extend these where necessary.

www.codeplex.com/UkadcDiagnostics - Preview

.net logging framework

Visual LINQ Query Builder - Home

Visual LINQ Query Builder is an add-in to Visual Studio 2008 Designer that helps you visually build LINQ to SQL queries. Functionally it provides the same experience as, for instance the Microsoft Access Query Builder, but in the LINQ domain.

code.msdn.microsoft.com/vlinq - Preview

.net linq vistualstudio

Creating great thumbnails in ASP.NET

An alternative to the built in .NET way of producing thumbnails from images with better results and file sizes.

www.thebrainparasite.com/...reat-thumbnails-in-ASPNET.aspx - Preview

.net thumbnails programming

Matt Berseth: Master-Detail with the GridView, DetailsView and ModalPopup Controls

The grid shows 12 rows of customer data. The far right column in the grid contains a hyperlink that when clicked brings the detail view of the row into focus so the corresponding row can be edited. The detail view is a popup control and contains a Save and Close buttons. When close is clicked, the detail popup is dismissed and the user goes back to viewing the main grid. When they click Save, some simple validation checks are run (all are RequiredFieldValidators for this sample) and the new data values are persisted, and finally the detail popup is dismissed and the main grid is refreshed so that it displays the changes.

mattberseth.com/...rdetail_with_the_gridview.html - Preview

.net ajax gridview webdesign

20 May 08

AJAX : The Official Microsoft ASP.NET Site

ASP.NET AJAX is a free framework for quickly creating efficient and interactive Web applications that work across all popular browsers.

asp.net/ajax - Preview

ajax .net framework webdesign programming

DotNetDonkey.com - Removing duplicate entries from Array in C#

This code demonstrates how to remove the duplicate entries in array of any data type. Using a combination of ArrayList and Hashtable this method can take array of any type.

www.dotnetdonkey.com/...CodeSnippets.aspx - Preview

.net array duplicates programming c#

  • Following is another more efficient implemetaion of the above method.
    It makes use of System.Collections.Generic namespace in .NET 2.0.


    1   
    2  public static T[] removeDuplicate<T>(T[] array) 
    3 { 
    4  // use a Dictionary to track duplicates 
    5  Dictionary<T, object> dict = new Dictionary<T, object>(); 
    6  
    7  List<T> list = new List<T>(); 
    8 
    9  foreach (T item in array) 
    10  { 
    11    if (!dict.ContainsKey(item)) 
    12    { 
    13      list.Add(item); 
    14      dict.Add(item, null); 
    15    } 
    16  } 
    17return list.ToArray(); 
    18
    19   

C# SMTP Mail without SMTP Service or CDO

One of the problems we had was either finding or writing code that would enable the app to send this email without relying on her having the SMTP service present and running on her machine, and without relying on the presence of CDO either. The .NET System.Web.Mail.SmtpMail class uses Collaboration Data Objects for Windows 2000 (CDOSYS) message component under the hood, so if Mom is running Windows ME, for example, you are plum out of luck with your app. Since then, we've had several additional requests for this type of code, so I thought it would be worthwhile to investigate this further.

www.eggheadcafe.com/...20030316.asp - Preview

c# .net smtp programming

01 May 08

InformIT: .NET Reference Guide > Manipulating Query Strings

When working with URIs, you’ll often want to examine and modify, or add individual query string parameters. The problem is that parsing query strings is tedious work. Unless you use the System.Web.HttpUtility.ParseQueryString static function. ParseQueryString parses the string into a NameValueCollection of query parameters and values. You can then change, delete, or add parameters and values, and then re-construct the query string.

www.informit.com/...content.aspx - Preview

.net query programming

  • UriBuilder urib = new UriBuilder("http://www.mischel.com/index.htm?sessid=23&username=jim");
    Console.WriteLine(urib);

    NameValueCollection qparams = HttpUtility.ParseQueryString(urib.Query);
    qparams.Set("sessid", "328");

    StringBuilder sbQuery = new StringBuilder();
    foreach (string key in qparams.Keys)
    {
    if (sbQuery.Length != 0)
    sbQuery.Append(’&’);
    sbQuery.Append(key);
    sbQuery.Append(’=’);
    string val = qparams[key];
    if (val != null)
    sbQuery.Append(val);
    }
    urib.Query = sbQuery.ToString();
    Console.WriteLine(urib);
30 Apr 08

CodeProject: Understanding Embedded Resources in Visual Studio .NET. Free source code and programming help

Time and again questions have come up in the C# and .NET forums relating to the use of embedded resources in VS.NET. For most projects there are no problems, but as you get into more complicated projects this quickly becomes a problem. This article will attempt to put the information needed in a more permanent place, making it easier to find and link to.

www.codeproject.com/...embeddedresources.aspx - Preview

c# resources embedded programming .net

14 Apr 08

ComponentOne - Components Focused on Visual Development

ComponentOne product lines encompass a diverse range of high-quality, cutting-edge tools and solutions enabling users to successfully build powerful, robust applications.

www.componentone.com - Preview

.net controls library programming c#

08 Apr 08

LINQ - Ian Cooper [MVP]

codebetter.com page of articles tagged with LINQ including the series Architecting LINQ To SQL Applications.

codebetter.com/...default.aspx - Preview

.net linq reference tutorial

1 - 20 of 114 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo