Not work in master pages

Jan 16, 2009 at 8: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" >
                <fjx:FileSaverAdapter OnFileNameDetermining="FileNameDetermining" Runat="server" FolderName="~/Upload" />               

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!

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