Navigation

Search

Categories

On this page

SQL Server PIVOT Function
FamFamFam Icon Sets
Installing Sharepoint Foundation 2010 On Windows 7
Sharepoint Web Parts
ASP.NET Controls Suite–oBout Software
Fonts
Creating and Using a VB Class
Microsoft Ajax Content Delivery Network
SQL Server: Handling Multiple Result sets in a Procedure
SQL Server–CSVExpress

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 405
This Year: 33
This Month: 14
This Week: 0
Comments: 17

Sign In
Pick a theme:

# Friday, January 27, 2012
Friday, January 27, 2012 4:07:03 PM (GMT Standard Time, UTC+00:00) ( HTML )


This is a great freeware site for icons for sites http://famfamfam.com/lab/icons/ 

2 of the sets are available here:

Full Set

Mini Icons

Comments [0] | | # 
# Wednesday, January 25, 2012
Wednesday, January 25, 2012 12:05:47 PM (GMT Standard Time, UTC+00:00) ( Sharepoint )


Unlike Sharepoint 2007 which required that it be installed on a Windows Server product (2003 or 2008), Sharepoint 2010 can be installed on Windows Vista or Windows 7 as long as they are x64 versions.  This is great for developers and for those who just want to learn more about the product.

It takes a few steps but I got it working on Windows 7 using these instructions:

http://msdn.microsoft.com/library/ee554869(office.14).aspx

Comments [0] | | # 
# Monday, January 23, 2012
Monday, January 23, 2012 8:18:13 PM (GMT Standard Time, UTC+00:00) ( Sharepoint )


Here is a huge list of free Sharepoint Web parts

http://www.amrein.com/apps/page.asp?Q=5794

Comments [0] | | # 
Monday, January 23, 2012 2:31:10 PM (GMT Standard Time, UTC+00:00) ( ASP.NET | ASP.NET AJAX )


This is a really nice (and free) suite of ASP.NET controls

http://www.obout.com/

Comments [0] | | # 
# Friday, January 20, 2012
Friday, January 20, 2012 3:49:45 PM (GMT Standard Time, UTC+00:00) ( HTML )


This is a nice site for free fonts: http://www.fontsquirrel.com/

Comments [0] | | # 
# Wednesday, December 28, 2011
Wednesday, December 28, 2011 7:06:29 PM (GMT Standard Time, UTC+00:00) ( ASP.NET | VB.NET )

 

This is kind of a basic overview of how to create a class file in VB.NET and use it in your Web application.

image

Here is the code for the CallHistory class.  Notice where the file needs to be located in the application.

Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient

Public Class CallHistory

    Public Sub AddCallHistory(ByVal ReviewID As Integer, ByVal UserID As Integer, ByVal EventName As String)
        Dim strSQLConn As SqlConnection
        Dim cmd As SqlCommand

        strSQLConn = New SqlConnection(ConfigurationManager.ConnectionStrings("CCMConnectionString").ConnectionString)
        cmd = New SqlCommand("p_AddCallHistory", strSQLConn)
        cmd.CommandType = CommandType.StoredProcedure

        cmd.Parameters.AddWithValue("@ReviewID", ReviewID)
        cmd.Parameters.AddWithValue("@UserID", UserID)
        cmd.Parameters.AddWithValue("@DateChanged", Now())
        cmd.Parameters.AddWithValue("@EventName", EventName)

        Try
            strSQLConn.Open()
            cmd.Connection = strSQLConn
            cmd.ExecuteNonQuery()
        Finally
            strSQLConn.Close()
        End Try
    End Sub

End Class

Now we can use this class anywhere in our web application using the following technique.

First import our CallHistory namespace

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="CallHistory" %>

Next, we create an instance of the class:

'Add the call to the CallHistory table
Dim newCallHistory As New CallHistory
then we call the method
newCallHistory.AddCallHistory(ReviewID, lblUserID.Text, "Call Added")
Comments [0] | | # 
# Saturday, December 24, 2011
Saturday, December 24, 2011 3:45:14 AM (GMT Standard Time, UTC+00:00) ( ASP.NET AJAX | jQuery )

 

I’ve been using the Microsoft Ajax CDN for a while but didn’t know that they had an official page for it. Includes not only links to jQuery but also to jQuery UI, jQuery Validate, jQuery Mobile and Modernizr.

http://www.asp.net/ajaxlibrary/cdn.ashx#Modernizr_Releases_on_the_CDN_6

Here is an example of how to call these files from the CDN:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestjQueryUICDN.WebForm1" %>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Using jQuery UI from the CDN</title>
    <link rel="Stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/redmond/jquery-ui.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:TextBox ID="txtStartDate" ClientIDMode="Static" runat="server" />

    </div>
    </form>

    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.js"></script>

    <script>

        $("#txtStartDate").datepicker();

    </script>
</body>
</html>

Comments [0] | | # 
# Wednesday, November 16, 2011
Wednesday, November 16, 2011 2:36:36 PM (GMT Standard Time, UTC+00:00) ( SQL )

 

Suppose you have a SQL Server stored procedure that returns multiple result sets and you want to store all these results into another table.

CREATE procedure [dbo].[mytest] 
as 
select 1 as id, 'test1' as myname 
select 2 as id, 'test2' as myname

When you execute this procedure, it returns two result sets. The following code will copy these two result sets in a table variable.

declare @t table(id int, names varchar(100)) 
insert into @t 
exec mytest
select * from @t

Comments [0] | | # 
Wednesday, November 16, 2011 2:01:55 PM (GMT Standard Time, UTC+00:00) ( SQL )


http://csvexpress.expressor-software.com/

Some cool software to move CSV data around to different databases.

Comments [0] | | #