James Bouy's Library tagged → View Popular
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:
.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.
CodeProject: Everything about REST web services - what and how - Part 2 - design. Free source code and programming help
Part 2 of an article about developing REST services in .NET.
Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing
MSDN article showing how to enable diagnostic tracing in ASP.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>
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.
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.
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.
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.
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.
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.
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.
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.
-
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 } 17 return 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.
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.
-
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);
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.
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.
LINQ - Ian Cooper [MVP]
codebetter.com page of articles tagged with LINQ including the series Architecting LINQ To SQL Applications.
Efficient Data Paging with the ASP.NET 2.0 DataList Control and ObjectDataSource - ScottGu's Blog
Efficient Data Paging with the ASP.NET 2.0 DataList Control and ObjectDataSource
ASP.NET Runtime Cheat Sheet: HttpRequest, HttpRuntime, AppDomain and friends
This article has cheat sheets for retrieving various bits of ASP.NET runtime information.
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in .net
-
eBooks Space for download FREE!!
Many eBooks files Space for...
Items: 1 | Visits: 72
Created by: Kim So Hee
-
C# and VB .net Programing
Codes and techniques of pro...
Items: 43 | Visits: 101
Created by: stefan stoichev
-
.NET Programming Services, ASP.NET Web Programming, .NET Application Development
Outsourcing .NET Programmin...
Items: 1 | Visits: 59
Created by: outsourcingops
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
