Skip to posts
  • About

Win Web Hosting

Web Hosting Information
  • Home
  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

C Sharp C# ASP.net tutorial 2 (Inserting Data into a SQL database

December 4, 2011 James 7 comments
ASP.NET ASP.NET, data, database, Inserting, Into, Sharp, Tutorial

Comments

Leave a comment Trackback
  • Written by Aang6678 about 5 months ago.

    I have 2 tables in 1 database, what do I do to specify the table?

  • Written by alex0789a about 5 months ago.

    when you specify the database name and the column name to insert to don’t you need to specify a table name too?

  • Written by mscrodrigosantos about 5 months ago.

    Firstly, Thank you so much Vadlak12. It´s very good video. Congratulations! Very interesting! thanks and Regards – Rodrigo Santos – Brazil.

  • Written by 991razor about 5 months ago.

    thank you

  • Written by sweatyhot about 5 months ago.

    @vadlak12 well as I said before I appreciate you doing what you do. You are definately helping me to learn C# and I really appreciate it. Just thought for someone else who is a beginner no point in learning bad habits. Also noticed you sometimes when quoting code don’t point out that the = sign in C# is an assignment operand and doesn’t mean equal but you say equal. Thats different from VB where = does mean equal.

  • Written by vadlak12 about 5 months ago.

    @sweatyhot Thank you For you suggestion i havent had much time lately to do the video preps i usually do. I will keep that into consideration

  • Written by sweatyhot about 5 months ago.

    The way you have it you end up squandering some resources. On a desktop system it matters less(it still matters but not as much as web system.
    I would rearrange a little
    Do the declarations but don’t call the connection.open as early as you did
    wrap the connection.open with a try catch, finally group
    try
    {
    //Declarations here
    connection.open():
    command.ExecuteNonQuery :
    Catch exception
    {
    *Do something with the exception
    like notify the user*/
    }
    Finally
    {Connection.Close();}

Comment Pages:

Leave a Comment

Cancel Reply

You must be logged in to post a comment.

RSS

Win Web Hosting Home Page

Cheap Windows Hosting

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

  • May 2012 (45)
  • April 2012 (81)
  • March 2012 (82)
  • February 2012 (79)
  • January 2012 (92)
  • December 2011 (163)
  • November 2011 (205)
  • October 2011 (339)
  • September 2011 (367)
  • August 2011 (367)
  • July 2011 (322)
  • June 2011 (338)
  • May 2011 (358)
  • April 2011 (94)
  • March 2011 (40)
  • February 2011 (36)
  • January 2011 (41)
  • December 2010 (30)
  • November 2010 (40)
  • October 2010 (41)
  • September 2010 (52)
  • August 2010 (150)
  • July 2010 (165)
  • June 2010 (159)
  • May 2010 (238)
  • April 2010 (248)
  • March 2010 (202)
  • February 2010 (576)

Recent Posts

  • 02 – Custom CMS In Asp.Net 4 – Preparing Our Database
  • Mr Percival Live Performance at Microsoft Remix 2011, Sydney
  • Using a Security Token Service with an ASP.NET Application
  • PlayBits – Silverlight Game Engine
  • asp 10 add menu control and sitemap datasource

Tags

.NET 2010 about AJAX Application Applications ASP.NET best Business cheap cloud Company Computing Control Create data Dedicated Development Free from help Host hosting India Introduction Linux Microsoft more need Page Part private Server servers service Services Silverlight Site Software Source Tutorial Using Video website Windows

Categories

  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

Meta

  • Register
  • Log in
  • Valid XHTML
Powered by WordPress Web Design by SRS Solutions © 2012 Win Web Hosting