Categories: ASP.NET, Controls, ASP.NET 2.0 Posted by AlexanderZeitler on 10/26/2005 7:57 PM | Comments (0)

Dino Esposito has written an article on Control development through inheritance based on ASP.NET 2.0 bits.

Currently rated 1.3 by 12 people

  • Currently 1.333333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Controls Posted by AlexanderZeitler on 9/7/2005 6:28 AM | Comments (4)

Bill Pierce created an ASP.NET Server Control wrapper for the Google Maps API. He's posted the first of three articles on Code Project: Lat Lays Flat - Part 1 : A Google Maps .Net Control.

If you want to see the control in action, just look up the demo page.

Currently rated 1.0 by 5 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Controls Posted by AlexanderZeitler on 8/21/2005 9:10 PM | Comments (1)

ActiveWidgets Grid is a really cool scrollable WebForm DataGrid which has fixed headers, resizable columns and client-side sorting.

activewidgetsgrid.png

ActiveWidgets Grid is free of charge and open source for private use.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Controls Posted by AlexanderZeitler on 3/3/2005 9:06 PM | Comments (0)
Eben tauchte bei mir das Problem auf, dass ich den Pfad zu einem UserControl innerhalb eben dieses UserControls erhalten wollte - also praktisch die Info: "wo stehe ich (das UserControl) selbst im FileSystem?"

Lösung:

this.TemplateSourceDirectory

innerhalb des UserControls auslesen.

Currently rated 1.2 by 5 people

  • Currently 1.2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Artikel.NET, ASP.NET, Controls Posted by AlexanderZeitler on 2/4/2005 8:34 AM | Comments (0)

Auf ASPAlliance.com ist ein Artikel erschienen, der beschreibt, wie man ein dem ASP.NET 2.0 Wizard Control ähnliches Control mit ASP.NET 1.x realisieren kann.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Basics, Controls, FAQ Posted by AlexanderZeitler on 1/22/2005 5:39 PM | Comments (0)

Scott Mitchell zeigt in seinem Artikel "Creating Dynamic Data Entry User Interfaces", wie man Formulare zur Erfassung von Daten basierend auf Informationen über Datenbankfelder, die mit den Daten befüllt werden sollen, dynamisch erzeugt.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Basics, Controls, FAQ Posted by AlexanderZeitler on 12/28/2004 9:56 AM | Comments (0)

Der heutige ASP.NET Daily Article befasst sich mit dem Datenaustausch zwischen ASP.NET Seiten und in ihnen befindlichen User Controls - ASP.NET Basics, die man gelesen und verinnerlicht haben sollte ;-)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Controls Posted by AlexanderZeitler on 12/13/2004 9:11 PM | Comments (0)

In der FindControl-Methode von ASP.NET gibt es ein undokumentiertes Feature, welches das Auffinden von Controls innerhalb von Controls vereinfacht - die Verwendung von Doppelpunkten:

LinkButton myButton = (LinkButton)this.FindControl("DataGrid1:_ctl19:_ctl2") ;

würde z.B. auf der Seite http://alexonasp.net/dotnetfu/datagridpager/ den LinkButton finden, der im Pager die Seite 2 aufruft.
Somit spart man sich also mehrere (teilweise eigentlich gar nicht benötigte) FindControl-Aufrufe.

Feine Sache ;-)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Basics, Controls, DataGrid, FAQ Posted by AlexanderZeitler on 12/10/2004 7:11 AM | Comments (0)

Um das ItemCommand des DataGrids durch ein User Control, das im DataGrid liegt, auszulösen, ist das sog. Event Bubbling notwendig. Wie das funktioniert zeigt der Artikel "How to add a control to the datagrid that bubbles events.." von Richard Cockerham.

Currently rated 1.4 by 5 people

  • Currently 1.4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: ASP.NET, Controls Posted by AlexanderZeitler on 11/24/2004 10:06 AM | Comments (1)

Problem: Ich will die Attribute eines HTML-Tags (im konkreten Fall das <label>-Tag) serverseitig dynamisch befüllen (z.B. das for-Attribut).

Lösung:

Dem HTML-Tag eine ID und runat="server" zuweisen.

Um im CodeBehind auf das Control zugreifen zu können, muß nun ein HtmlGenericControl mit der ID des HTML-Tags instanziert werden und schon kann man über Attributes.Add die entsprechenden Attribute dynamisch steuern.

Der Code:

<label style="line-height:20px" id="lblPermanentLogin" runat="server" >Anmeldedaten speichern</label>

CodeBehind (komprimiert):

protected System.Web.UI.HtmlControls.HtmlGenericControl lblPermanentLogin;
lblPermanentLogin.Attributes.Add("for",chkPermanentLogin.ClientID);

Danke Claudius ;-)

Be the first to rate this post

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