Author: KushKashyap | Posted on: 7/13/2009 10:19:31 AM | Views : 365

Hi there,
Is it possible to use a VB class in a C# page? Because i have created a BLL class in VB and i am trying to use it in a C# page.
I am trying to create a sort of document manager and the fields of my database are FileID, FileName, FileDesc and FilePath. The FilePath contains the path where the file is stored on the server. What i want is to delete the file when i delete the record in the gridview.
This is working perfectly fine when my page is VB.Net one... but when i am trying to do the same thing in a C# page, the record gets deleted but the file stays on the server. I due to some reasons have to use C# for some reasons. I am totally confused as there are no errors..
My .aspx page
<asp:AccessDataSource ID="adsFiles" runat="server" DataFile="~/App_Data/dbFiles.mdb" DeleteCommand="DELETE FROM [tblFiles] WHERE [FileID] = ?" SelectC ...

Go to the complete details ...