April 2008 Entries
When Wednesday June 11, 2008 @ 6:30PM
Want to know what you need to do to keep your DBA
happy and make your application run really fast? Wondering if stored
procedures are really faster than dynamic sql? Need some good
guidelines for adding indexes? We'll spend an hour talking about
performance in this very interactive presentation.
Andy Warren of End to End Training will be speaking.
Register if you plan to attend this event
When: Wednesday May 21, 2008 @ 6:30 PM
Where: Space Coast Credit Union corp headquarters
Silverlight 2 includes a cross-platform, cross-browser version of
the .NET Framework, and enables a rich .NET development platform that
runs in the browser. Developers can write Silverlight applications
using any .NET language (including VB, C#, JavaScript, IronPython and
IronRuby). We will ship Visual Studio 2008 and Expression Studio tool
support that enables great developer / designer workflow and
integration when building Silverlight applications.
Jeff Barnes of Microsoft will be presenting
There will be pizza and magazines available at this meeting. There
will be a raffle for a Office 2007 pro at the end of the meeting.
Register...
I got an regualr expression question today from one of my friends. Basically she was using a regular expression to validate a number was 4 or 6 digits long but the expression she was using ^\d{4,6}$ would validate numbers 5 digits long. Lets look at this regular expression ^ means starts with. The \d means number and the {4,6} means 4 to 6 digits long. The $ means ends with. The answer is to use a regular express with an or (the | means or)
Dim regNum As New Regex("^\d{4}$|^\d{6}$")
Debug.Print(regNum.IsMatch("1234").ToString)
Debug.Print(regNum.IsMatch( "12345").ToString)
Debug.Print(regNum.IsMatch("123456").ToString)
Output
True
False
True
The .Net framework provides a print document class for printing. There are times that it would be nice to redirect what you are printing to a pdf. In this example we are going to use the Sharp Pdf lib version 1.3.1 to print to a pdf.
The sharp pdf lib allows you to add an image to a page in a pdf. To make it possible to print to a pdf we are going to create a new print controller class which creates a bitmap and has the print document draw the page on the bitmap. Then it adds the...
Here is simple VB example of the AjaxToolkit's CascadingDropDown extender. For this example I use the CarsService.Xml found in the AjaxToolkits sample site. The xml file needs to be placed in the App_data directory
Here is the Pages Html
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="sm1" EnablePageMethods="true" runat="server">
</asp:ScriptManager>
<table>
<tr>
<td>
Make
</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" Width="341px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Model
</td>
<td>
<asp:DropDownList ID="DropDownList2" runat="server" Width="341px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Color
</td>
<td>
<asp:DropDownList...