Results 1 to 3 of 3

Thread: [RESOLVED] VB.NET: site+taking data from MSSQL

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    19

    Resolved [RESOLVED] VB.NET: site+taking data from MSSQL

    I've just bought Visual Studio 2005. I hope my questions will be smarter soon. The last time I wrote code was C++ 5.0. So, I'm sorry for my question.

    I'm watching tutorials about creating Web Site and about controls.
    I think I added SQL Database to the project (it's not empty) properly. Suppose it has two columns: FirstName, LastName.
    I have TextBox1, TextBox2 and Button1 on the web site form.
    I enter any integer number (5, 10, 15 or whatever) into TextBox1. I want to press Button1 and get a value of 5th person (10th, 15th or whatever) from SQL Database into TextBox2.
    Who can help me with that? Should I read about ADO.NET and use something from there?

    Later I want to use VB for work with that strings.


    Thank you.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: VB.NET: site+taking data from MSSQL

    Quote Originally Posted by farmer View Post
    I've just bought Visual Studio 2005.
    That wasn't a smart move I'm afraid. VS 2008 has been available for several years and VS 2010 is only a couple of months away. For those starting out, VB Express and Visual Web Developer are both free.
    Quote Originally Posted by farmer View Post
    I'm watching tutorials about creating Web Site and about controls.
    I think I added SQL Database to the project (it's not empty) properly. Suppose it has two columns: FirstName, LastName.
    I have TextBox1, TextBox2 and Button1 on the web site form.
    I enter any integer number (5, 10, 15 or whatever) into TextBox1. I want to press Button1 and get a value of 5th person (10th, 15th or whatever) from SQL Database into TextBox2.
    Who can help me with that? Should I read about ADO.NET and use something from there?
    Yes, I'd suggest that you do some reading on the basics of ADO.NET and then post more specific questions if you don't understand something. There are several links in my signature that you'll find useful for data access.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    19

    Re: VB.NET: site+taking data from MSSQL

    Quote Originally Posted by jmcilhinney View Post
    That wasn't a smart move I'm afraid. VS 2008 has been available for several years and VS 2010 is only a couple of months away. For those starting out, VB Express and Visual Web Developer are both free.
    I bet you are right. The only problem is VS2008 cost 4 times more than I paid for VS2005. Also, I'd better buy a newer laptop for VS2008 as it needs more resources. It's like a browser - I can read news using old version of Internet Explorer. To read news I don't need to upgrade IE5 to IE6.
    Probably, I'm wrong.


    Quote Originally Posted by jmcilhinney View Post
    Yes, I'd suggest that you do some reading on the basics of ADO.NET and then post more specific questions if you don't understand something. There are several links in my signature that you'll find useful for data access.
    Thank you. Now my Text forms take some data from the database. Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width