Sunday, January 15, 2006

Creating a Template column for a datagrid dynamically


.NET 247 : Formatting a String in a DataGrid Column on microsoft.public.dotnet.framework.sdk: "What I've done is create Template Columns for the DataGrid... you'd
create a class that implements System.Web.UI.ITemplate and the code
would look something like this..

using System;

namespace Cte_Net.Templates
{
///
/// Summary description for EditTemplate.
///

public class TextboxTemplate: System.Web.UI.ITemplate
{
private string columnName = null;
private string controlName = null;

public TextboxTemplate(string newColumnName)
{
columnName = newColumnName;
}

public TextboxTemplate(string newControlName, string newColumnName)
{
columnName = newColumnName;
controlName = newControlName;
}

public void InstantiateIn(System.Web.UI.Control container)
{
System.Web.UI.WebControls.TextBox label = new
System.Web.UI.WebControls.TextBox();
label.DataBinding += new EventHandler(this.BindLabel);

container.Controls.Add(label);
}

public void BindLabel(Object sender, EventArgs e)
{
System.Web.UI.WebControls.TextBox label =
(System.Web.UI.WebControls.TextBox)sender;
System.Web.UI.WebControls.DataGridItem container =
(System.Web.UI.WebControls.DataGridItem)label.NamingContainer;

label.Text = ((System.Data.DataRowView)container.DataItem)[columnName].ToString().Trim();
"

Thursday, January 12, 2006

Interesting topics to be refered.
"XML
Introduction
moving from MSXML to .NET
how to use XmlDocument, XslTransform, XPathDocument etc
Intermediate topics (suggestions welcome)
Advanced topics (suggestions welcome)
Flash
Using XML - navigating the DOM, referring to Text Nodes, etc
Hosting in .NET Compact Framework apps (related to the HTML Viewer article idea)
Remoting and .NET (I'm currently reviewing FlashORB)
Talking to Web Services
Pocket PC and the .NET Compact Framework
HTML Viewer - getting the IE control to work in your .NET CF app
SQL Server
Introduction to using XML in SQL Server 2000
XML EXPLICIT - the pleasure and the pain
Tips and Tricks for faster queries
SQL Reporting Server (once I get a chance to play with it!)
Exposing your Stored Procedures as Web Services using SOAP"

This message is posted from
Tim Walters .NET Blog:
Application Blocks for faster coding

this is an older message .
here's some links:
Microsoft patterns and practices for Application Architecture and Design (the main page)
Smart Client Offline
Asynchronous Invocation
Caching
Configuration Management
Data Acces - NOTE: has been updated to version 3, GotDotNet Workspace for DAABAF (supports Abstract Framework)
Exception Management, there are two:
Exception Management (basic exception management)
Enterprise Instrumentation Framework (advanced exception tracking, logging, performance counters etc)
Logging Application Block (based on the EIF)
Updater (can auto-download and install updates to your application)
Some of the Application Blocks that aren't as applicable for me, but here for reference:
Authorization and Profile
Aggregation
User Interface Process
Quite a few great bits of code there.
PS: I will be posting an update to my Heirarchial XML into SQL article, as well as it's companion article (SQL->XML), hopefully later this week"

Wednesday, January 11, 2006

XSLT - Advanced: "XSLT - Advanced
Web Design/HTML Blog
How to Create a Web Site with HTML Main What HTML Can't Do
From Jennifer Kyrnin,"

this is a best source for XSLT Style sheets.

Blog Search: XSLT style html: "[Doing it WithStyle] HOW TO: Style XML with CSS
8 Jan 2006 by James A. Robertson
... an XML document in WithStyle is as per the W3 Recommendation on Associating Style Sheets with XML documents. ... If we want to make things look radically different, we can also transform the XML into a different document using XSLT. ...
Cincom Smalltalk Blogs - http://www.cincomsmalltalk.com/blog/blogView "

Blog Search: client side script: "4 Jan 2006 by sougata
Net, a common technique was to post back the page � when a user made a selection in a selection box for example � using some client side script. The ASP.Net Web Controls like ASP:CheckBox, etc. expose an AutoPostBack property that takes ...
techtonics - http://www.sougata-sarkar.com/blogs/tech "