October 2008 - Posts

0
Comments

Checking for file extensions method by stoian bucovich

A sample method for checking image file extension which can be used for exaple to check upload file control uploaded file types: Public Shared FileExt As New ArrayList Public Shared Sub InitImageExt() FileExt.Add( ".jpeg" ) FileExt.Add( ".jpg" ) FileExt...
4
Comments

Catching page level errors and writing them in log file with auto controlled file size by stoian bucovich

This is preaty handy for catching page errors and writing them down in log file which is automaticaly deleted if he reaches defined file size. Imports System.IO Public Shared Sub PageErr( ByVal ErrorMessage As String , ByVal UserIPAddress As String ,...
3
Comments

Encrypt decrypt string by stoian bucovich

There is a class to encrypt ot decrypt strings Imports System.IO Imports System.Text.Encoding Imports System.Security.Cryptography Public Class Crypto Private Shared PKey As String = "My key string goes here" Private Shared IV() As Byte = {&H12, &H34...
2
Comments

Storing image in database and retriving image from database by stoian bucovich

Here is the code for storing image in database (ms sql server 2005): - Default.aspx < asp : FileUpload ID ="FileUpload1" runat ="server" /> < asp : Button ID ="Button1" runat ="server" Text ="Upload" /> - Default.aspx.vb Imports System.Data...
More Posts