Below is the following code. Here is the problem when I choose a file and upload it works fine. However when I select a file and then choose reset form I get a runtiem error pointing the line containing Dim intFileCntr As System.Int32 . Any ideas try running it if you want, thanks and much appreciated...<BR><BR><%@ Page Language="vb" %> <BR><%@ Import Namespace="System.Data" %><BR><%@ Import Namespace="System.Data.OleDb" %><BR><script runat="server"> <BR>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load <BR> If (Me.IsPostBack) Then Me.SaveImages() <BR> 'checks for login<BR> Dim strURL as string = Request.ServerVariables("HTTP_Referer")<BR> if session("aspxhere")=true then<BR> else<BR> If strURL="http://www.eliasonforjudge.com/admin/aspx/" then<BR> 'do nothing show image upload page<BR> 'sets aspx session variable<BR> session("aspxhere")=true<BR> response.write (session("aspxhere"))<BR> else<BR> response.redirect("http://www.eliasonforjudge.com/admin/")<BR> end if<BR> end if<BR> Dim connString as String<BR> connString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=\premfs4sitespremium9eliasondatabaseevents. mdb;"<BR> <BR> Dim objConnection as OleDbConnection<BR> objConnection = New OleDbConnection(connString)<BR> objConnection.Open() 'open the connection<BR> <BR><BR>End Sub <BR><BR>Private Function SaveImages() As System.Boolean <BR> 'loop through the files uploaded <BR> Dim colFiles As System.Web.HttpFileCollection = System.Web.HttpContext.Current.Request.Files <BR><BR> 'Message to the user <BR> Dim strMessage As New System.Text.StringBuilder("Files Uploaded:<BR><BR>") <BR> Dim intFileCntr As System.Int32 <BR>Try <BR><BR> For intFileCntr = 0 To colFiles.Count - 1 <BR><BR> Dim objCurrentFile As System.Web.HttpPostedFile = colFiles(intFileCntr) <BR> Dim strCurrentFileName, strCurrentFileExtension As System.String <BR><BR> strCurrentFileName = System.IO.Path.GetFileName(objCurrentFile.FileName ) <BR><BR> If strCurrentFileName <> "" Then <BR> <BR> strCurrentFileExtension = System.IO.Path.GetExtension(strCurrentFileName) <BR><BR> If (strCurrentFileExtension = ".gif") Then <BR><BR> 'Save File to the proper directory <BR> objCurrentFile.SaveAs("\premfs4sitespremium9eliasonwebrootimages\" + strCurrentFileName) <BR><BR> strMessage.Append(strCurrentFileName + " successfully uploaded.<BR>") <BR><BR> ElseIf (strCurrentFileExtension = ".jpg") Then <BR><BR> 'Save File to the proper directory <BR> objCurrentFile.SaveAs("\premfs4sitespremium9eliasonwebrootimages\" + strCurrentFileName) <BR><BR> strMessage.Append(strCurrentFileName + " successfully uploaded.<BR>") <BR><BR> Else <BR> strMessage.Append(strCurrentFileName & " <font color=""red"">failed!! Only .gif and .jpg images allowed!</font> <BR>") <BR> End If <BR> Else<BR> strMessage.Append("No file Selected to upload, please try again.<BR>")<BR> End If <BR> Next <BR><BR> Label1.Text = strMessage.ToString() <BR> Return True <BR>Catch Ex As System.Exception <BR> Label1.Text = Ex.Message <BR> Return False <BR>End Try <BR><BR>End Function <BR><BR></script><BR><BR><!-- #include file="header.asp" --><BR><form id="UPLOAD" method="post" runat="server" enctype="multipart/form-data"> <BR><table><BR><tr><BR> <td><b>Image Uploader</b> <BR> </td><BR></tr><BR><tr><BR> <td><font size=-1>To upload images simply click browse and select your GIF or JPG Format Image, then press upload images or reset form. Only these formats can be accepted.<BR><BR><BR> </td><BR></tr><BR><tr><BR> <td><BR> <INPUT type="file" runat="server" size="30" ID="File1" NAME="File1"><BR> </td><BR></tr><BR><BR><tr><BR> <td><BR><asp:LinkButton id="LinkButton1" runat="server" Font-Names="Verdana" Font-Bold="True" Font-Size="XX-Small">Upload Images</asp:LinkButton><BR> <A href="javascript:document.forms[0].reset()" id="LinkButton2" style="FONT-WEIGHT:bold;FONT-SIZE:xx-small;FONT-FAMILY:verdana">Reset Form</A><BR> <asp:Label id="Label1" runat="server" Font-Names="verdana" Font-Bold="True" Font-Size="XX-Small" Width="400px" BorderStyle="None" BorderColor="White"></asp:Label><BR></td><BR></tr><BR></table><BR></form> <BR></td></tr> <BR><!-- #include file="footer.asp" --> <BR><BR>the include files are simply page formatting<BR><BR>Thanks again