Not work in master pages

Jan 16, 2009 at 7:05 AM
I have creat master page and Default.aspx. Default.aspx inherit master page

This is code:
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Sites/Site.Master" CodeBehind="UploadMutil.aspx.vb" Inherits="SHTP.Web.UploadMutil" %>
<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderAdmin" runat="server">
         <fjx:FileUploader ID="FileUploader1" runat="server" >
            <Adapters>
                <fjx:FileSaverAdapter OnFileNameDetermining="FileNameDetermining" Runat="server" FolderName="~/Upload" />               
            </Adapters>
        </fjx:FileUploader>   
</asp:Content>

This is code behind:

Imports com.flajaxian
    Inherits System.Web.UI.Page

     Protected Sub FileNameDetermining(ByVal sender As Object, ByVal args As FileNameDeterminingEventArgs)
         args.FileName = (Path.GetDirectoryName(args.FileName) + Path.DirectorySeparatorChar & "_File_") + Path.GetFileNameWithoutExtension(args.FileName) + Path.GetExtension(args.FileName)   
    End Sub
End Class

But it is not work. Please help me!

Coordinator
Jan 16, 2009 at 4:08 PM
It must be inside form runat="server" element.