Click to See Complete Forum and Search --> : Code Behind file in Dreamweaver 8


fozail
09-10-2006, 01:39 PM
Hi I'm new to .net.I'm trying to implement the code behind technology in dreamweaver 8.On top of my aspx page i have this:
<%@ Page Language="vb" CodeBehind="FileUpload.aspx.vb"%>

when i try to view my aspx page, it gives me this error:
========================

Compiler Error Message: BC30456: 'Upload_Click' is not a member of 'ASP.FileUpload_aspx'.

Source Error:



Line 18: <Input ID="MyFile" Type="File" RunAt="Server" Size="40"> <BR>
Line 19: <BR>
Line 20: <Input Type="Submit" Value="Upload" OnServerclick="Upload_Click" RunAt="Server">
Line 21: <P>
Line 22: <Div ID="UploadDetails" Visible="False" RunAt="Server">


========================

WHERE Upload_Click is a function i have in the codebehind file.I thought I needed to add script tags with runat=server attribut and I tried that but it still does not work.Any suggestions !!
Thanks!

rjackb
09-21-2006, 07:53 PM
Try adding an ID to the second input tag.