Tuesday, October 26, 2010

10 days of the seventh day learn ASP.net


Learning Objective: Learn to add remove modify the record

ASP in the past, whether we add or delete records or to use SQL statements with EXECUTE () or is directly RECORDSET of NEW, DELETE, UPDATE and other methods to add delete modify records. Which we use in ASP.NET with SQL statement object to execute SQL statements COMMAND way to add delete modify records. This is up from that record is also easy to read. Actually only one difference, the ExecuteReader () was revised to ExecuteNonQuery () can, because we do not need the return value ah.
string strConnection = "Provider = Microsoft.Jet.OleDb.4.0; Data Source =";
strConnection + = Server.MapPath (strDb);
OleDbConnection objConnection = new OleDbConnection (strConnection);
OleDbCommand objCommand = new OleDbCommand ("Here is the SQL statement", objConnection);
objConnection.Open ();
OleDbDataReader objDataReader = objCommand.ExecuteNonQuery ();

-----------------------
dim objConnection as OleDbConnection
dim objCommand as OleDbCommand
objConnection = new OleDbConnection (Provider = Microsoft.Jet.OleDb.4.0; Data Source = "+ Server.MapPath (strDb))
objCommand = new OleDbCommand ("Here is the SQL statement", objConnection)
objConnection.Open ()
objDataReader = objCommand.ExecuteNoQuery ()

Cite the following examples illustrate the SQL statement (ACCESS):

Add record: insert int
o table name (field 1, field 2) values (string 1, string 2) where the conditions
Delete records: delete from table name where conditions
Modify the record: update table name set field 1 = 脳 脳, field 2 = 脳 脳 where conditions

Require special attention, if it is to delete record delete Sql Server table name, do not need to add from the.

Here today, tomorrow, said inside the most famous ASP.NET DATAGRID.






相关链接:



Reviews Seasonal - Screen Savers



Directory Web Development



AMD expects Q4 REVENUE to fall about 25%



Terminal promotion on doing SOME of the views



Telnet in RHEL 5 on the OPENING process



comparison Personal Finance



Correctly UNDERSTAND the IPD of the "structured process"



Younger's Quickstep



M2TS to MKV



Easy Food And Drink



Photoshop Rendering Realistic Beautiful Necklace



The Rise Of Domestic Erp Market Share In 2010



MKV to VOB



Cool I am a LEADING online high quality music box



Flash to MPEG



TMPGEnc --- MPEG Compression King



INSURANCE Goes to focus on risks and preventive measures



10 comments:

  1. Observe them and see what your partner talks about and if
    he's flirting with someone, making date plans or denying that he has a wife. Then with the iPhone spy take all the evidence you've collected, the emails and the calls
    and texts and confront your partner about his lies and his unfaithfulness.
    Instead of trying to Track A Cell Phone for Free, no one is going to offer
    this technology when they can charge for it and get many
    many paying customers. So stop totally wasting
    your time and install software that's proven to work and has a history behind it. http://linkedout.co/groups/cell-phone-repair-ensures-best-services/ Trace the harassing calls using a private-number: For this, you must be alert starting from the time you receive the call. Proceed to document few details like: date, duration, and time of call. What can make things worse is that your spouse grabs the cell and walks off to a private spot to converse silently - which means you can't hear.

    This, in turn, drives you even more crazy.
    .. You ask yourself, Who is the individual calling?
    The next obvious question running through your mind is, Can he/she
    be having an affair? Desperate to find the truth, you sneakily grab your spouse's cell while he/she is taking a shower or is out of the house. You browse through the latest calls list. You then see all of your wife/husband's contacts and
    friends are clearly labeled by name-names you recognize.
    However, after further study, you notice an unidentified phone number that keeps repeating itself, both
    as an outgoing and incoming call, and more importantly, the
    time periods match those odd hours that raised the red flags in
    the first place. You say to yourself, I think
    I have something here.
    My weblog :: reverse cell phone look up

    ReplyDelete
  2. I want to change my homepage to a different page with wordpress, is it feasible?
    .

    Feel free to surf to my web-site: forum.cm77.com
    My website ; paxil lawsuit settlements

    ReplyDelete
  3. The bank is under investigation by regulators for its relationship with
    the failed brokerage firm MF Global . It is also being sued for allegedly aiding and abetting MF Global misuse of customer
    money. She already also faces three charges
    of perverting the course of justice arising from
    the investigation into phone hacking - charges she has denied.
    http://is.gd/aRXuXc From looking at Virgin Mobile's online coverage map, I wouldn't recommend the Venture to someone
    who travels a lot. Coverage looks pretty scant out west and seems to leave out many rural areas in the eastern U.
    S. However, for someone who's not much of a road warrior and is looking for a smart phone with an extremely low monthly outlay, Virgin Mobile's PCD Venture is definitely
    worth checking out. The crash happened about
    20 minutes after sunrise, and weather conditions were clear with no wind gusts along the north-south highway heavily used by
    tractor-trailers.
    Here is my weblog - reverse cell phone look up

    ReplyDelete
  4. Choosing The Right Mulch For Your Garden - 3 Factors To Consider Mulch Your Flower Bulbs In
    The Fall For A Beautiful Spring Display

    Feel free to surf to my web blog; http://linkedout.co/groups/cheap-landscaping-ideas-mulch-your-garden/

    ReplyDelete
  5. Right here is the perfect blog for anybody who really wants
    to find out about this topic. You understand a whole lot its almost tough to argue with you (not that I actually would want to…HaHa).
    You certainly put a new spin on a subject which has been discussed for decades.
    Great stuff, just excellent!

    Feel free to visit my homepage - affordable dental Plans

    ReplyDelete
  6. My family all the time say that I am killing my time here at net,
    except I know I am getting know-how daily by reading thes pleasant content.


    Also visit my homepage rootcanal.pba-dental.com

    ReplyDelete
  7. I think that what you posted was actually very logical.
    But, think on this, what if you were to write a killer headline?
    I ain't saying your content is not good, however what if you added something that grabbed folk's attention?
    I mean "10 days of the seventh day learn ASP.net" is a little plain.
    You could glance at Yahoo's home page and note how they create article titles to get viewers to click. You might add a video or a related picture or two to grab people excited about what you've
    got to say. In my opinion, it could make your website a little bit more
    interesting.

    my web site ... root canal costs

    ReplyDelete
  8. I was recommended this web site by my cousin.

    I am not sure whether this post is written by him
    as no one else know such detailed about my difficulty.
    You're wonderful! Thanks!

    my web site: Individual Dental Plan

    ReplyDelete
  9. It is often suggested to Type 2 diabetics they don't limit milk to breakfast; it can be a quick and easy lunch, dinner or snack. It is also a great way to work in another fruit serving, for instance, by blending in a serving of fruit with vanilla, you will have a cold shake.

    My blog: raspberry ketone results

    ReplyDelete
  10. I'm into photography and want to start we have work and attracting more clients. My question is how would I go about starting a web site where people can buy my photos or contact me about taking photos? I'm
    looking for a method to maximize my advertising and wants to begin an internet
    site. Any advice could be greatly appreciated.
    .

    Look into my homepage: http://wiki.spiltirsdag.dk

    ReplyDelete