Jump to content

DataTable em ASP


Recommended Posts

public  DataTable ComandoDataAdpter(string comando)
            SqlDataAdapter SQLDataAdapter = new SqlDataAdapter(comando, sql());
            DataTable dtResult = new DataTable();
            return dtResult;

Não funciona em asp, gostaria de ter uma solução para isto! SFF

o sql() é o que chama a ligação da BD, está certo!

Este pedaço de código funciona perfeitamente em programas, mas na web não!  :wallbash:

Compiler Error Message: CS1061: 'AEESGTS.SQL' does not contain a definition for 'ComandoDataAdapter' and no extension method 'ComandoDataAdapter' accepting a first argument of type 'AEESGTS.SQL' could be found (are you missing a using directive or an assembly reference?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.