User Profile

Collapse

Profile Sidebar

Collapse
Tifosi
Tifosi
Last Activity: May 5 '06, 09:21 AM
Joined: Apr 5 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Tifosi
    replied to DataAdapter Connection Problem
    Hi,
    Got a solution for this one. The code above initializes everything except for one object reference that is SelectCommand . To initialize it we have to pass a command object to the reference of SelectCommand. Sadly it isnt possible to do so through DataAdapter. But still it works fine without it by just allocating the reference of SelectCommand to your command object.
    Thank You....
    See more | Go to post

    Leave a comment:


  • Tifosi
    started a topic DataAdapter Connection Problem

    DataAdapter Connection Problem

    Hi,
    I am trying to run the following code -:
    DataAccess Layer Function-:

    public DataSet getContacts(str ing Country, string Product)
    {
    DataSet dsContact = new DataSet();
    dsAdapter = new SqlDataAdapter( );
    string conString= ConfigurationSe ttings.AppSetti ngs["ConnectionStri ng"];
    mySqlConn = new SqlConnection(c onString);
    mySqlConn.Open( );
    dsAdapter.Selec tCommand.Connec tion...
    See more | Go to post
No activity results to display
Show More
Working...