Results 1 to 3 of 3

Thread: What would be more benefical to learn 1st in .NET...any ideas?

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    What would be more benefical to learn 1st in .NET...any ideas?

    OK, I've played with web services. Can use them.
    Have played with IIS and ASP.NET can do that.
    Can do basic DB stuff, only loading into Datasets and executing SQL string commands.

    What I want to do is go right back to basics and look at one things and build up my skills in that area. Although what area I do not know.

    Does anyone have any suggestions and what would be the most beneficial area to start learning? SQL, Datasets and databinding? Strongly typed datasets (that's somthing I will look at in a second), DLLs, more web service? Using datasets to update DB's??? or something else?

    Woof

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Datasets and databinding I guess....

    Webservices are great, but in .Net they're pretty straitforward, so even if you know how to make a basic webservice, you pretty much have it nailed anyway.

    As far as strongly-typed datasets....

    They are faster than untyped datasets that do late-binding.

    Early-binded untyped datasets are of course faster than strongly typed datasets. Early binding being a misnomer in this case, but anyway, you are directly mapping the resultant output to a field or variable, and using ordinal indexing for speed.


    For instance, the below code runs faster than strongly-typed datasets...
    VB Code:
    1. Dim SqlConnection1 As New SqlClient.SqlConnection(Application("SQLConnectionString"))
    2.             Dim SqlCommand1 As New SqlClient.SqlCommand
    3.  
    4.             SqlCommand1.CommandText = "dbo.[CitationSearch]"
    5.             SqlCommand1.CommandType = System.Data.CommandType.StoredProcedure
    6.             SqlCommand1.Connection = SqlConnection1
    7.  
    8.             SqlCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@fk_User", System.Data.SqlDbType.Int, 4))
    9.             SqlCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@SearchString", System.Data.SqlDbType.VarChar, 50))
    10.             SqlCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DaysBack", System.Data.SqlDbType.Int, 4))
    11.             SqlCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsUnpaidPaidOnly", System.Data.SqlDbType.Bit, 1))
    12.             SqlCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsOverdueOnly", System.Data.SqlDbType.Bit, 1))
    13.          
    14.             With SqlCommand1.Parameters
    15.                 .Item(0).Value = Me.Session.Item("userguid")
    16.                 If Not Me.tbSearch.Text = String.Empty Then .Item(1).Value = Me.tbSearch.Text
    17.                 If Not Me.RadioButtonList1.SelectedValue.Length < 1 Then
    18.                     If Not Me.RadioButtonList1.SelectedValue = "No Limit" Then
    19.                         .Item(2).Value = Integer.Parse(Me.RadioButtonList1.SelectedValue)
    20.                     End If
    21.                 End If
    22.  
    23.                 .Item(3).Value = Me.cbUnpaidOnly.Checked
    24.                 .Item(4).Value = Me.cbOverDueOnly.Checked
    25.             End With
    26.             Dim dr As System.Data.SqlClient.SqlDataReader
    27.             SqlConnection1.Open()
    28.             dr = SqlCommand1.ExecuteReader(CommandBehavior.CloseConnection)
    29.             Me.SearchResultsStatusPanel.Visible = True
    30.             If Not dr.HasRows Then
    31.                 Me.lblNoResults.Visible = True
    32.                 Me.lblSearchResults.Visible = False
    33.                 Me.SearchResultsPanel.Visible = False
    34.             Else
    35.                 Me.lblSearchResults.Visible = True
    36.                 Me.lblNoResults.Visible = False
    37.                 Me.SearchResultsPanel.Visible = True
    38.             End If
    39.  
    40.             Me.SearchResultRepeater.DataSource = dr
    41.             Me.SearchResultRepeater.DataBind()

  3. #3
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    I would say the OOD. There is alot of powering in mastering all aspects of it.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

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