22. Oktober 2005

Linkliste

DotNET
.NET Framework & allgemeines
Design Guidelines for Class Library Developers
Scripting and .NET: Visual Studio for Applications Provides Customized Scripting Facilities for Your .NET Project
Häufig gestellte Fragen zu Visual C# .NET 2003
Microsoft patterns and practices for Application Architecture and Design
.NET Potale
ONDotnet.com
GotDotNet User Samples
C# Corner: C-Sharp, C#.NET, .NET Developer's Network, CSharp, VB.NET, ASP.NET, Visual Studio .NET
msdn TechTalk > Home ( DNN 2.1.2 )
Microsoft .NET
.NET Development (General) MSDN
DevX
Willkommen auf Codezone
ASP.NET
ASP.NET Web: The Official Microsoft ASP.NET Site : Home Page
411 ASP.NET: Scripts, Applications Controls, ASP.NET hosting
123aspx.com ASP.NET Resource Directory
asp.netPRO
C++ DotNet
Windows Forms: .NET Framework 1.1 Provides Expanded Namespace, Security, and Language Support for Your Projects -- MSDN Magazine, March 2003
Tools&Frameworks
log4net - log4net Project
MSDN: Crystal Reports
NUnitForms : An NUnit extension for testing Windows Forms applications.
FxCop Team Page
NAnt Help
OJB.NET - OJB.NET Features
Crystal Reports Forum
WinForms
Windows Forms FAQ
Windows Forms FAQ - Windows Forms Datagrid
Windows Forms .NET: The Official Microsoft Windows Forms Community Site
Wonders of Windows Forms
Smart Client Developer Center Home: Windows Forms FAQ - Controls and Components (Specific)
.Net Developers Group Stuttgart
Die .NET-Ecke von Bernd Marquardt
Microsoft Webcasts: Live or On-Demand
MSDN Zukünftige Webcasts - Microsoft Deutschland GmbH
TechNet: Bisherige Webcasts - Microsoft Deutschland GmbH
Visual Studio 2005 (Codename Whidbey) Webcast
MediaPortal - The ultimate HTPC / mediacenter
Enterprise Library (MS Patterns)
C# Tutorials, .NET Tutorials, C-Sharp, C Sharp tutorials
Open Source Software in C#
International .NET Association (INETA)
Download
32 Bit Download Center
FTP search
FTP Server WU-Archive
NT Internet Clients
Shareware.com
TUCOWS de
Walnut Creek CD-ROM
Win Sock Product Summary
Windows95.com
Winsite
Winsock- und Win95-Software

Java
Java Web
Data Grid Tag Library
Welcome to JSPTags.com
Welcome to JSPTags.com
Apache Wiki
Cewolf - Chart Enabling Web Object Framework
JavaScript Tree Menu
JSTL API Reference
Oracle ADF JSF Components
taglibs-user@jakarta.apache.org Mailing Lists
The Jakarta Taglibs Project
Java Struts
The Struts User's Guide - Table of Contents
The Struts User's Guide - Logic Taglib Guide
The Struts User's Guide - Bean Taglib Guide
The Struts User's Guide - HTML Taglib Guide
The Struts User's Guide - Validator Guide
Apache Struts API Documentation
Struts Wiki
Java allgemein
AXIS-Maillist
Commons DBCP - Overview
Eclipse plugin resource center and marketplace for Eclipse and Plugin Ecosystem :: Eclipse Plugin Central
Eclipse Web Tools Platform Project
Eclipse.org Main Page
EclipsePlugins : hi! Find your plugin for Eclipse here.
http://www.objectlearn.com/index.jsp
Java 2 Platform SE v1.3.1
Log4j project - Introduction
Overview (Java 2 Platform SE 5.0)
Overview (Java 2 Platform SE v1.4.2)
Overview (JFreeChart Class Library (version 1.0.0-rc1))
Regular Expression Syntax
WebServices - Axis
www.jfree.org - JFreeChart
Programmierung allgemein
Ascii Table - ASCII character codes and html, octal, hex and decimal charts
vb@rchiv · Willkommen in der Welt der VB Programmierung
SELFHTML 8.1 (HTML-Dateien selbst erstellen)
ConnectionStrings.com - Forgot that connection string? You will find it right here!
JavaScript Reference: HTML DOM Window Object
Rational Unified Process - Extended Help
developerWorks : Rational : Forums : Rational XDE
SQL Tutorial
SQL Reference
Suchdienste und Services
AltaVista_ Translations
linguatec - Business English online
ArztService.de die bundesweite Suchmaschine
AutoRoutenplaner
c't - Heft-Archiv
c't-Register-Recherche
DENIC
Gesetze d e j u r e . o r g
InterNIC Domain Registration Services
NetDoktor.de - Das unabhängige Gesundheitsweb für Deutschlan
OSIANDERSCHE BUCHHANDLUNG_Recherche
Query the RIPE Whois Database
RIPE NCC Homepage
Schwackeliste - Eurotax
Willkommen beim Flughafen Stuttgart, wir freuen uns auf Ihre
Bibel-Online.NET
DasÖrtliche Telefonbuch, Telefonauskunft für Telefonnummern
Leo's Icon Archive - 10,000+ free icons, desktop icons, clip art, cartoons, buttons
Hauptseite - Wikipedia

20. Oktober 2005

SQL-FAQ

Eine Default-Wert setzen, wenn eine Spalte in einem SQL-Select null ist, ansonsten wird der normale wert gesetzt

ISNULL(column, 0)

9. Oktober 2005

ASP.NET FAQ

Q: Kann man Forms-Authentication ohne Cookies verwenden?
A: Nein, geht nicht. Das setzen von

<sessionState cookieless="true" …

hat darauf auch keine Auswirkung, sondern ist nur für Session-Objekte zuständig, nicht aber für das Authentication-Ticket.

- - -

Q: Wie kann man den Timeout für die Forms-Authentication verstellen?

A:
<authentication mode="Forms" >
    <forms name="MyApp" loginUrl="Views/login.aspx" timeout="1"/>
</authentication>

Voraussetzung ist, dass kein persistenter Auth-Cookie verwendet wird. Dazu wird beim Authentifizieren folgendes gemacht:

FormsAuthentication.RedirectFromLoginPage(“UserID1”, false);

- - -

Q: Wie kann man verschiedene Zugriffsrechte für Unterverzeichnisse vergeben
A: Über Location können verschiedene Verzeichnisse oder Dateien explizit geschützt werden
Asdasd


<location path="Views/member">
     <system.web>     
          <authorization>
               <deny users="?" /> <!-- Alle Benutzer zulassen -->
               
          </authorization>  
    </system.web>
  </location>

Q: Wie kann man den Start-Pfad einer Web-Applikation bekommen, um z.B. in einer .ASMX-Datei, die von unterschiedlichen Verzeichnissen aufgerufen wird, auf die selbe Seite zu verweisen?

A: Tilde (~) bedeutet in ASP.NET den Startpfad der Web-Applikation

Response.Redirect("~/Views/member/default.aspx");

Q: Visual Studio.NET kann ein WebProjekt nicht über http://xxx.csproj öffnen
A: Prüfen, ob die Seite im IE auf geht -> evtl. Proxyeinstellungen korrigieren

Q: Wie kann man aus einem Child-Window das aufrufende Parent Window refreshen?
A: Lösung ist JavaScript:

onclick="window.opener.location.reload();window.close()"
Q: Ein ASP.NET-Projekt läßt sich nicht über http://hostname/project.cjproj öffnen
A:
  • Prüfen, ob  Frontpage-Server-Extensions auf dem Webserver installiert sind

  • Prüfen, ob die Seite im IE auf geht -> evtl. Proxyeinstellungen korrigieren

  • Prüfen, ob der Benutzer auf den Ordner, in dem das Projekt liegt Zugriffsrechte hat (Freigabe)


Q:
A:

26. September 2005

Preventing dB connection pool leaks

A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already
existing connections to a dB is more efficient than opening a new connection.
There is one problem with connection pooling. A web application has to explicetely close ResultSet's, Statement's,
and Connection's. Failure of a web application to close these resources can result in them never being available
again for reuse, a db connection pool "leak". This can eventually result in your web application db connections
failing if there are no more available connections.
There is a solution to this problem. The Jakarta-Commons DBCP can be configured to track and recover these
abandoned dB connections. Not only can it recover them, but also generate a stack trace for the code which opened
these resources and never closed them.
To configure a DBCP DataSource so that abandoned dB connections are removed and recycled add the following
paramater to the ResourceParams configuration for your DBCP DataSource Resource:
<parameter>
<name>removeAbandoned</name>
<value>>true</value>
</parameter>
When available db connections run low DBCP will recover and recyle any abandoned dB connections it finds. The
default is false.
Use the removeAbandonedTimeout parameter to set the number of seconds a dB connection has been idle before it
is considered abandoned.
<parameter>
<name>removeAbandonedTimeou</name>
<value>60</value>
</parameter>
The default timeout for removing abandoned connections is 300 seconds.
The logAbandoned parameter can be set to true if you want DBCP to log a stack trace of the code which
abandoned the dB connection resources.
<parameter>
<name>logAbandoned</name>
<value>true</value>
<</parameter>
The default is false.