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
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
ActiveWidgets Grid is a really cool scrollable WebForm DataGrid which has fixed headers, resizable columns and client-side sorting.

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
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
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
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
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
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
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
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