New to ASP.Net : Help Database

Discussion in 'C#' started by priyakochin, Aug 7, 2008.

  1. #1
    I am new to ASP.Net and using VS 2008.Can anyone plz help me with a sample database code to try with ?

    I want to insert into table fields and retrive it.

    I tried many codes from net.But its not workingh.

    Plz help!
     
    priyakochin, Aug 7, 2008 IP
  2. candychip

    candychip Active Member

    Messages:
    272
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    priya which db u r using

    secondly post your code here

    so that i can seewhat wrong in that code

    problem could be with connection string or u have not used required namespace.

    it is easy will work in seconds

    or email me at candychip gmail
     
    candychip, Aug 8, 2008 IP
  3. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am using MsSql

    The database connection is ok.But I don't know how to code it ?

    Can anyone help ?
     
    priyakochin, Aug 8, 2008 IP
  4. candychip

    candychip Active Member

    Messages:
    272
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    k, u r using MSSQL

    c#

    U HAVE INCLUDED SQL NAMESPACE


    and how do u know ur connection string is correct?
    what erro message u r getting ?

    without code it will be difficult to help.
     
    candychip, Aug 8, 2008 IP
  5. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I want to code using ASP.Net/MsSql.
    I don't even to do a simple database program.So can anyone plz post a code.
     
    priyakochin, Aug 8, 2008 IP
  6. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #6
    Have you searched for samples on the web? There are literally thousands on ASP.NET and related technologies. I would also suggest you download some of the samples on the ASP.NET site and watch the tutorials. Here you go: http://www.asp.net/learn/data-access/tutorial-16-vb.aspx (Overview of Inserting, Updating, and Deleting data).
     
    Social.Network, Aug 8, 2008 IP