Tags: , , | Posted by AlexanderZeitler on 7/31/2006 6:16 AM | Comments (0)

Ich hatte eben mit folgendem Code ein interessantes Erlebnis:

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {
   if (e.Row.RowType == DataControlRowType.DataRow) {
      if (e.Row.RowState != DataControlRowState.Selected && this.GridView1.SelectedIndex > -1) {
         e.Row.Visible = false;
      }
   }
}

Dies führte dazu, dass die Alternating Items (also die geradzahligen Items 2, 4, 6) niemals sichtbar wurden.

Beim Debuggen zeigte sich dann des Rätsels Lösung: Der RowState wurde als "Alternate | Selected" angezeigt, d.h. als Kombinitaion zweier States.

Wie lässt sich nun feststellen, ob der DataControlRowState.Selected vorhanden ist?

Die Lösung liegt in der Verwendung des bitweisen UND-Operators (&):

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {
   if (e.Row.RowType == DataControlRowType.DataRow) {
      if ((e.Row.RowState & DataControlRowState.Selected) == 0 && this.GridView1.SelectedIndex > -1) {
         e.Row.Visible = false;
      }
   }
}

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , , | Posted by AlexanderZeitler on 7/31/2006 4:20 AM | Comments (0)

"The first official release of the Web Service Software Factory is now available to download. In addition to providing great written and automated guidance on building service-oriented applications with .NET, the Service Factory includes a Reference Implementation which shows three Enterprise Library application blocks (Data, Logging and Exception Handling) in an end-to-end service oriented application. Grab it while it's hot!"

Web Service Software Factory Beschreibung und Downloads

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , | Categories: Note to self Posted by AlexanderZeitler on 7/20/2006 7:26 PM | Comments (3)

Will man ein serverseitiges Event (ASP.NET) clientseitig (JavaScript) auslösen, ist folgender Code notwendig - am Beispiel einer GridView-Row, die per Klick selektierbar sein soll. Dazu muß sich in der Row z.B. ein ImageButton (der vorher noch per FindControl in der GridView gesucht wurde) für den Select befinden, dessen Postback-Argument dann dem Client-Event zugewiesen wird:

e.Row.Attributes.Add("onclick", Page.GetPostBackEventReference(mySelectButton));

So - jetzt  muß ich es hoffentlich nicht nochmal aus der MSDN oder meinem eigenen Posting bei glengamoi suchen ;-)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: .NET News, Enterprise Library 2.0, German Posted by AlexanderZeitler on 7/18/2006 5:26 PM | Comments (0)

"Manageability extensions for Enterprise Library Jan 2006 allows you to use Group Policy to update application configuration information, and to publish a running applications configuration to WMI, so that it can be consumed by any WMI-aware management application. The manageability extensions can be used with any application that makes use of Enterprise Library v 2.0, and does not require any recoding of the application itself."

Manageability Extensions CTP for Enterprise Library Download

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: .NET News, German, Orcas Posted by AlexanderZeitler on 7/18/2006 9:06 AM | Comments (0)

Seit gestern - gerade mal etwas mehr als halbes Jahr nach dem Release von Visual Studio 2005 - ist der "Microsoft Visual Studio Code Name “Orcas” Community Technology Preview – Development Tools for .NET Framework 3.0" zum Download verfügbar.

Neu sind unter anderem:

  • XAML-IntelliSense-Unterstützung für den Editor
  • Projekttemplates für Windows Presentation Foundation und Windows Communication Foundation
  • Integration der .NET Framework 3.0 SDK Dokumentation.
  • Vorschau auf den Visual Designer for Windows Presentation Foundation

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: .NET News, Artikel.NET, German Posted by AlexanderZeitler on 7/18/2006 7:15 AM | Comments (0)

In der aktuellen ASP.NET Professional wurde mein Artikel "Alles Einstellungssache - Wie Sie das Web Site Administration Tool ohne Visual Studio 2005 nutzen können" veröffentlicht.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: .NET News, German, Tools, Development Posted by AlexanderZeitler on 7/18/2006 6:34 AM | Comments (0)

Seit gestern ist die Final von SharpDevelop 2.0 verfügbar.

Details gibts bei Chris, heise und natürlich auf der Projektseite.

Im #develop-Wiki existieren bereits Infos zu Features der Version 2.1.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Architecture, German Posted by AlexanderZeitler on 7/17/2006 7:55 PM | Comments (0)

"Readings on Service Orientation" ist ein PDF-Dokument mehrerer Microsoft Architekten zu verschiedenen Themen der Software-Entwicklung unter dem Aspekt der Service-Orientierung:

Design and Modeling: Aligning Business and IT

  • Introduction
  • A Business-Oriented Foundation for Service Orientation
  • Modeling Languages for Distributed Applications
  • The Case for Software Factories
  • Design and Implementation of a Software Factory
  • Understanding the System Definition Model
Data: Information Management for Services
  • Introduction
  • Entity Aggregation
  • Data on the Outside versus Data on the Inside
Process: Services Composition and Consumption
  • Introduction
  • Dealing with Concurrency: Designing Interaction Between Services and Their Agents
  • Choosing the Right Presentation Layer Architecture
  • Build Applications on a Workflow Platform
  • Of People, Processes and Programs
Identity: Who are you? Can you use my service?
  • Introduction
  • The Laws of Identity
  • Microsoft’s Vision for an Identity Metasystem
  • Identity and Access Management

Protocols and Practice: Services-based Infrastructure

  • Introduction
  • Planes, Trains and Automobiles: Choosing Alternate Transports for Web Services
  • Principles of Service Design: Service Versioning

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, ASP.NET 2.0, German, Security.NET Posted by AlexanderZeitler on 7/16/2006 2:35 PM | Comments (0)

Rocky Heckman, seines Zeichens Security MVP, zeigt in dem Screen Recording "Assembly Hijacking" was man dank SQL Injection mit einer ASP.NET Website so alles anstellen kann (und das ausnahmsweise im negativsten aller Sinne).

Wenn man bedenkt, dass Chris bereits vor über 5 Jahren geeignete Gegenmittel mit .NET vorgestellt hat, ist es doch erstaunlich (genauer: erschreckend), wie häufig einem SQL Injection heute noch tagtäglich begegnet.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, ASP.NET 2.0, German, Security.NET, Threat Modeling Posted by AlexanderZeitler on 7/15/2006 10:40 PM | Comments (0)

Bei Channel9 gibt es die "Input Validation Training Modules", in welchen folgende (ASP.NET 2.0)Security-Themen in Screen Recordings (je ca. 5-10 Min. lang) behandelt werden:

Für jedes Thema steht der entsprechende Source-Code zum Download bereit sowie Links zu existierenden Microsoft Guidances zum jeweiligen Thema.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5