|
已詳細測試過你的程式,SQL Server 部分沒有問題,問題在 photo 欄位,將其移除即可。請在 memberAdd1.aspx 檔中把 UpdateCommand 修改為: UpdateCommand="UPDATE [memberData] SET [m_name] = @m_name, [m_nick] = @m_nick, [m_sex] = @m_sex, [m_birthday] = @m_birthday, [m_job] = @m_job, [m_cellphone] = @m_cellphone, [m_address] = @m_address, [m_favorite] = @m_favorite, [m_self] = @m_self WHERE [m_id] = @m_id"> 同時在參數中將 photo 移除:於 <UpdateParameters> 中移除下面這一列: <asp:Parameter Name="m_photo" Type="Object" /> |