CrazyEngineers
  • Please tell me how to create a DLL file in asp.net 4.0

    This is my code. Please tell me if there is any problem with this code.

    namespace databaselogic
    {


    public class mycomponent
    {
    public DataSet getdata(string sql1)
    {
    SqlConnection con = new SqlConnection("datasource=.\\sqlexpress;attachdbfile=e:\\aspnet\\databaselogic2\\app_data\\peers.mdf;integrated security=true;user instance=true");
    SqlDataAdapter da = new SqlDataAdapter(sql1, con);
    DataSet ds=new DataSet ();
    da.Fill (ds,"d");
    return (ds);
    }
    }
    }
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register