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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Gridview's cell values and PageMethods

Gridview's cell values and PageMethods

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studioquestionannouncement
6 Posts 3 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.
  • C Offline
    C Offline
    cocoonwls
    wrote on last edited by
    #1

    Hi all, I am newbie in web development. I am using vs 2005, ASP.NET with c#.Currently i am using UpdatePanel(AJAX) to update textbox value from gridview by adding a commandfield(SELECT) the DataKeyNames(values to be pass when event selectIndexChanged fired) in gridview. But it seem very slow in displaying/updating textbox. So,may i know is a possible to do it by using PageMethods?If yes, please direct me to the correct way :(( Any tips/helps are welcome, Thanks in advance. Regards cocoonwls

    M 1 Reply Last reply
    0
    • C cocoonwls

      Hi all, I am newbie in web development. I am using vs 2005, ASP.NET with c#.Currently i am using UpdatePanel(AJAX) to update textbox value from gridview by adding a commandfield(SELECT) the DataKeyNames(values to be pass when event selectIndexChanged fired) in gridview. But it seem very slow in displaying/updating textbox. So,may i know is a possible to do it by using PageMethods?If yes, please direct me to the correct way :(( Any tips/helps are welcome, Thanks in advance. Regards cocoonwls

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      cocoonwls wrote:

      But it seem very slow in displaying/updating textbox.

      Moving to PageMethods won't change the performance drastically. At the first first place, you need to know which action is so much taking time. As far as I think you need to optimise you SQL statement.

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      C 1 Reply Last reply
      0
      • M Manas Bhardwaj

        cocoonwls wrote:

        But it seem very slow in displaying/updating textbox.

        Moving to PageMethods won't change the performance drastically. At the first first place, you need to know which action is so much taking time. As far as I think you need to optimise you SQL statement.

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        C Offline
        C Offline
        cocoonwls
        wrote on last edited by
        #3

        Hi Manas Bhardwaj, Thanks for reply.I think my SQL is not a problem here. I had tried not to use updatepanel to update textbox, its looked fast than used updatepanel. My purpose to use updatepanel is aim to update certain data without refresh whole page.

        Manas Bhardwaj wrote:

        Moving to PageMethods won't change the performance drastically.

        I had read other resource that if using page methods will improve the performance instead of using updatepanel.Any comment/suggestion? Thanks in advance regards cocoonwls

        L 1 Reply Last reply
        0
        • C cocoonwls

          Hi Manas Bhardwaj, Thanks for reply.I think my SQL is not a problem here. I had tried not to use updatepanel to update textbox, its looked fast than used updatepanel. My purpose to use updatepanel is aim to update certain data without refresh whole page.

          Manas Bhardwaj wrote:

          Moving to PageMethods won't change the performance drastically.

          I had read other resource that if using page methods will improve the performance instead of using updatepanel.Any comment/suggestion? Thanks in advance regards cocoonwls

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Create a web service to process the business logic and call it in javascript. But you can update the textbox in javascript based on the returned content from webservice.

          C 1 Reply Last reply
          0
          • L Lost User

            Create a web service to process the business logic and call it in javascript. But you can update the textbox in javascript based on the returned content from webservice.

            C Offline
            C Offline
            cocoonwls
            wrote on last edited by
            #5

            Hi,Ramesh Is there a good example?And is possible to use it to pass a row data and display in textbox? thanks in advance regards cocoonwls

            L 1 Reply Last reply
            0
            • C cocoonwls

              Hi,Ramesh Is there a good example?And is possible to use it to pass a row data and display in textbox? thanks in advance regards cocoonwls

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Yes. you can pass any datatype supported in javascript to the web service. Look into the following links: Remote scripting - Calling a WebService with JavaScript and C#[^] http://www.codeguru.com/vb/vb_internet/webservices/article.php/c7781[^]

              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