hello friends
i need some help:
i have a form with detailsView controls bounded to an ObjectDataSource.
inside the detailsView i have some textBoxes, dropDownLists and FileUpload control.
now the ObjectDataSource has another class to handle the insert method.
without the fileUpload everting is ok, but when i try to insert the file upload to the InsertParameters of ObjectDataSource, its not working.
any help will be appreciated!
here is the code...

default.aspx:
<%--Data sources--%>
   
runat="server" ID="ObjectDataSource1" TypeName="ShopLogic" SelectMethod="SelectShop" InsertMethod="InsertNewShop" >
     

     
ControlID="FileUpload1" Type="Object" />
     

   

 
<%--Data sources--%>



   
<%--details view--%>
       
id="detailsview2" datasourceid="shopDataSource" autogeneraterows="false" runat="server" DefaultMode="Insert" >
       

             
HeaderText="title">
                 

                                             DataValueField="title" SelectedValue='
<%# Bind("title") %>' >
                 

             


           
DataField="name" HeaderText="name"/>
           
DataField="phone" HeaderText="phone"/>
           
DataField="site" HeaderText="site"/>

           
HeaderText="segment">
                 

                                             DataValueField="segment" SelectedValue='
<%# Bind("segment") %>' >
                 

             



               
HeaderText="image">
                 

                     
ID="FileUpload1" runat="server" />
                 

             


         
ButtonType="Image" showinsertbutton="true" InsertImageUrl="buttons/new.png" ShowCancelButton="false" showheader="true" headertext="???? ????" />
       

     

   
<%--details view--%>


AppCode/ShopLogic.cs:
public void InsertNewShop(string title, string name, string phone, string site, string segment, object FileUpload)
   
{
       
FileUpload FileUpload1 = FileUpload as FileUpload;
       
//upload picture
       
string imagePath = "~/ShopsImages/" + DateTime.Now.ToString("ddmmyy_hhmmss") + FileUpload1.FileName;
       
string fullPath = HostingEnvironment.MapPath(imagePath);
       
FileUpload1.SaveAs(fullPath);


       
//create shop object
        shop newShop
= new shop();
        newShop
.title = title;
       
//...more code...
        db
.AddToshops(newShop);
        db
.SaveChanges();
   
}