Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Slow working of web application

Slow working of web application

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiohelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Girish481
    wrote on last edited by
    #1

    Hello, Using VS 2005 and ASP.NET One Update panel with following controls: sqldatasource. next and previous button to naviagate. 51 textboxes to show the data from orace table. This is select command of sqldatasource SELECT * FROM "SECM98" WHERE (("ROL" >= :ROL) AND ("ROL" <= :ROL2)) ORDER BY ROL

    Public Sub showdata(ByVal r As Integer)
    SqlDataSource1.EnableCaching = True
    dv = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
    TextBox1.Text = IIf(IsDBNull(dv.Table.Rows(r - 1)("rol")), "", dv.Table.Rows(r - 1)("rol"))
    TextBox2.Text = IIf(IsDBNull(dv.Table.Rows(r - 1)("cen")), "", dv.Table.Rows(r - 1)("cen"))
    TextBox3.Text = IIf(IsDBNull(dv.Table.Rows(r - 1)("dst")), "", dv.Table.Rows(r - 1)("dst"))
    ..
    ..
    End Sub

    It is taking lot of time to run dv = Ctype(SqlDataSource1....) Or How do i get the resultset returned by sqldatasource, so that i can show the data in the textboxes. Please guide and help me. Regards Girish Sharma

    A 1 Reply Last reply
    0
    • G Girish481

      Hello, Using VS 2005 and ASP.NET One Update panel with following controls: sqldatasource. next and previous button to naviagate. 51 textboxes to show the data from orace table. This is select command of sqldatasource SELECT * FROM "SECM98" WHERE (("ROL" >= :ROL) AND ("ROL" <= :ROL2)) ORDER BY ROL

      Public Sub showdata(ByVal r As Integer)
      SqlDataSource1.EnableCaching = True
      dv = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
      TextBox1.Text = IIf(IsDBNull(dv.Table.Rows(r - 1)("rol")), "", dv.Table.Rows(r - 1)("rol"))
      TextBox2.Text = IIf(IsDBNull(dv.Table.Rows(r - 1)("cen")), "", dv.Table.Rows(r - 1)("cen"))
      TextBox3.Text = IIf(IsDBNull(dv.Table.Rows(r - 1)("dst")), "", dv.Table.Rows(r - 1)("dst"))
      ..
      ..
      End Sub

      It is taking lot of time to run dv = Ctype(SqlDataSource1....) Or How do i get the resultset returned by sqldatasource, so that i can show the data in the textboxes. Please guide and help me. Regards Girish Sharma

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      I think the problem might be in the database. check how much time is required to fetch actual data from the database. If it is taking long then use of Index might cure the problem somehow. :cool:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      G 1 Reply Last reply
      0
      • A Abhishek Sur

        I think the problem might be in the database. check how much time is required to fetch actual data from the database. If it is taking long then use of Index might cure the problem somehow. :cool:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        G Offline
        G Offline
        Girish481
        wrote on last edited by
        #3

        Thanks for your reply and interest in the thread. I am using oracle 10G database with proper index on rol column. I cheked that oracle is returning the rows in only 1 second in sqlplus. It is returning the rows fast in the oracle; but taking lot of time to run dv=..... line. Please tell me what should i do to resolve the problem. Regards Girish Sharma

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups