January 2005
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Search
Site Sections
Recent Entries
Archives




Powered by
Movable Type 2.62

Home About Contact


code news people thinking about
design research music ramblings
projects stories    

September 21, 2004 - Cool Tools

ICode Library

iCodeLibrary.NET is an application for C++, C#, Java, Visual Basic and other language developers.. The application allows you to store snippets of code in a hierarchical structure in a local database viewed in a treeview. Code can be searched, exported to HTML, or XML for importing into other copies of the iCodeLibrary.NET.

In addition to storing snippets of code, the iCodeLibrary.NET can also store files of any type alongside each code snippet as attachments.

http://www.sofotex.com/iCodeLibrary-download_L23465.html

Posted by sachauncey at 12:52 PM permalink

August 14, 2004 - 01-ASP.Net

Add 2nd Line to Grid Item



I'm trying to add a custom row for each Item and Alternating 
Item that is added to my datagrid.  The idea is for each row created, 
to create another row beneath it, so I can have one cell that spans 
all the columns to display a lot of text.


Heres the code i'm using for the OnItemCreated event:


private void dgAlerts_ItemCreated(object sender,

System.Web.UI.WebControls.DataGridItemEventArgs e)
{
DataGridItem item = e.Item;
// if its not an item or alternating item, get out of here
if (item.ItemType != ListItemType.Item & item.ItemType !=
ListItemType.AlternatingItem)
return;
// we need to access the datarow to get the text, so lets get it
DataRow dataRow = ((DataRowView) item.DataItem).Row;
//now we need to create the new row, add the cell and put in some text.

DataGridItem oNewItem = new

DataGridItem(item.ItemIndex,item.DataSetIndex,item.ItemType);

TableCell oNewCell = new TableCell();
oNewItem.Cells.Add( oNewCell);
oNewCell.ColumnSpan = item.Cells.Count;
Label oFullText = new Label();
oFullText.Text = (string)
dataRow[(int)enumAlertDataGridColumns.Details];
oNewCell.Controls.Add(oFullText);

// now w need to add it to the table (is always first item in
datagrid controls) and we're done!

dgAlerts.Controls[0].Controls.Add(oNewItem);

}

If you change the event from ItemCreated to ItemDataBound
and use the same code, you will get the custom row below instead of
above your items.

<asp:DataGrid id="dgAlerts" OnItemDataBound="dgAlerts_ItemDataBound" .... />



and change the name of the private void, to dgAlerts_
ItemDataBound instead of ItemCreated.The created event has
not created your item yet, so when you append to the Controls[0]
you get it before the DataBound one. So when you change
it to the DataBound one, the Item is already created and you can
then append the new row AFTER the DataBound one.


Posted by sachauncey at 03:02 PM permalink

August 03, 2004 - 01-ASP.Net

Dot Net Learning Guide

Link ...This SearchWebServices.com guide introduces you to .NET, explains best practices and pitfalls to avoid and provides troubleshooting help and advice. You'll find .NET articles, tutorials, tips, tools, white papers, expert advice and more to pump up your .NET know-how quickly. Drop me an e-mail to let me know what other learning guides you'd like to see on SearchWebServices. Catherine Ketcher, Editor.
TABLE OF CONTENTS
.NET Quick Start
.NET Expert Advice
.NET Migration Tips
.NET White Papers and Chapter Downloads
.NET Code Samples and Tutorials
.NET Tools and Downloads
.NET Online Resources
More Learning Guides
http://searchwebservices.techtarget.com/originalContent/0,289142,sid26_gci995718,00.html?track=NL-130&ad=488175

Posted by sachauncey at 03:39 AM permalink

July 24, 2004 - 01-ASP.Net

dotNetD2d.com

Excellent .dot site recommended by Tom Preuss. MSD2D is a resource for the Microsoft Exchange, SharePoint, .NET and Security communities. We felt that there were two basic needs in the communities. First, tools that administrators and developers need on a daily basis such as sample code, administration tips, discussion rooms with mentors, and more. We try to keep these resources easy to find and fun to use. Second, Microsoft customers want to take full advantage of their large investment in server products. Therefore, we put together a search engine to access all the information available on products and services for these platforms. Listings of add-on products and services are FREE as is access.
http://www.msd2d.com/default_section.aspx?section=dotnet

Posted by sachauncey at 09:54 PM permalink

May 06, 2004 - 01-ASP.Net

Using the SQLDMO COM Object to Control SQL Server from ASP.NET - Stored Procedure Creation Example

By Shannon Horn MCAD, MCSD, MCT (5/4/2004)
Most applications expose themselves as an object and Microsoft SQL Server is no exception. The functionality of SQL Server is exposed through a COM component called SQLDMO (SQL Server Distributed Management Objects). It is very easy to communicate with a COM component from within a .NET application, and you'll learn how to do so in this tutorial. Example shows creation of Stored Procedure. (From SQLJunkies)
http://www.sqljunkies.com/Tutorial/1BFBD444-DCB2-4318-A315-56BCA1D8C97D.scuk

Posted by sachauncey at 12:02 PM permalink

November 18, 2003 - 06-Web Services

Web Services Journal

A great online journal with timely articles, source code, product reviews etc.

Posted by sachauncey at 12:02 PM permalink

November 13, 2003 - 01-ASP.Net

ASP Net Email

What is aspNetEmail? aspNetEmail is a .NET email component, also known as an assembly. It is written in 100% C# for speed and efficiency. It does not have any dependencies on CDO or any unmanaged code. aspNetEmail only requires the .NET framework to be installed on the computer.

Posted by sachauncey at 03:39 PM permalink

October 03, 2003 - 02-VB Code

Convert String to Mixed Case


1:     Convert String to Upper/Lower Case: 

2: <%
3: Function PCase(strInput)
4:
5: Dim iPosition
6: Dim iSpace
7: Dim strOutput
8:
9: iPosition = 1
10:
11: Do While InStr(iPosition, strInput, " ", 1) <> 0
12: iSpace = InStr(iPosition, strInput, " ", 1)
13: strOutput = strOutput & UCase(Mid(strInput, iPosition, 1))
14: strOutput = strOutput &
15: LCase(Mid(strInput, iPosition + 1, iSpace - iPosition))
16: iPosition = iSpace + 1
17: Loop
18: strOutput = strOutput & UCase(Mid(strInput, iPosition, 1))
19: strOutput = strOutput & LCase(Mid(strInput, iPosition + 1))
20: PCase = strOutput
21: End Function
22: %>

Posted by sachauncey at 09:59 PM permalink

October 01, 2003 - 01-ASP.Net

Self Configuring Form Mailer Control

A web control for emailing the content of an HTML form.

Posted by sachauncey at 01:10 PM permalink

Ezyedit

ezyEdit - ASP Web Portal and Content Management System - RickEastes
Realtime page editing, Simple, "on-the-fly" menu construction, Modifiable permissions for users and groups, Built-in search engine optimization.
Free and includes source code.

Posted by sachauncey at 01:08 PM permalink

September 22, 2003 - 07-MS Access

Senior & Junior Subforms

Get the Sub-Subform You've Always Wanted (and Other Tricks) Access won't let you have a subform within a subform if the data has to be displayed in a continuous form. But Peter Heskett found a way by using senior and junior subforms. He also shares a few other tricks for handling forms. (MSDN Newsletter)

Posted by sachauncey at 01:04 PM permalink

September 01, 2003 - 11-Javascript Code

Open Link In New Window

This code shows how to open a hyperlinked page in a new window. The open statement is included in the hyperlink itself -- not calling a routine in the page header...
1:<a href="http://careo.elearning.ubc.ca/weblogs/vschools/walking.gif" 

2:onclick="window.open
3:('http://careo.elearning.ubc.ca/weblogs/vschools/walking.html','popup'
4:,'width=188,height=294,scrollbars=no,resizable=no,
5:toolbar=no,directories=no,
6:location=no,menubar=no,status=no,left=0,top=0');
7:return false">Walking Man</a>..


Posted by sachauncey at 04:00 PM permalink

August 26, 2003 - 05-RSS

RSS Web Based Parser

RSS Utilities: A Tutorial By Rodrigo Oliveira August 2003 "RSS ("Really Simple Syndication") is a web content syndication format. RSS is becoming the standard format for syndicating news content over the web. As part of my recent contract with Sun Microsystems, I was tasked with the development of a JSP Tag Library to be used by anybody with a basic understanding of RSS, JavaServer Pages, and HTML. The taglib is mostly geared towards non-technical editors of web sites that use RSS for aggregating news content. My goal was to develop a JSP tag library that would simplify the use of RSS content (versions 0.91, 0.92 and 2.0) in web pages."

Posted by sachauncey at 12:30 AM permalink

August 21, 2003 - 05-RSS

RSSlets

RSSlets - Functional RSS Feeds "My ultimate vision for RSSlet is a service that allows users to generate dynamic RSS feeds that actually do something functional from any web page." (Take a look at this...)

Posted by sachauncey at 04:25 AM permalink

August 20, 2003 - 11-Javascript Code

Bookmark Site


1:     You can do this in two simple steps.
Add the following JavaScript somewhere within the
<body></body> tags of each page in which you want to use the bookmark code:
2:
3: <script type="text/javascript">
4: sitetitl = "Pat Wong's Music Around The World"
5: siteurl = "http://www.napathon.net/"
6: function addBookmark(title,url) {
7: if (window.sidebar) {
8: window.sidebar.addPanel(title, url,"");
9: } else if( document.all ) {
10: window.external.AddFavorite( url, title);
11: } else if( window.opera && window.print ) {
12: return true;
13: }
14: }
15: </script>
16:
17: Be sure to change the values
of sitetitl and siteurl to match your website
's title and URL.
18:
19: Here's an example
of how to call the above JavaScript function:

20: <a href="#"
21: onmousedown="addBookmark(sitetitl,siteurl)">Bookmark</a>
22:
23:
24:


Posted by sachauncey at 01:50 PM permalink