Help me with Grid View (Page Refresh) Urgent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aspamit
    New Member
    • Jan 2007
    • 38

    Help me with Grid View (Page Refresh) Urgent

    Hi all,

    I have created a page using Gridview.

    Say my Gridview displays:
    =============== =============== =============== ==========
    Id City Country
    =============== =============== =============== ==========
    2 DDD CCC
    3 AAA EEE
    4 WWW CCC

    when I click on the row whose id is 2,the data in it i.e,city & country are displayed in text boxes respectively.
    same for 3,textboxes are filled with AAA & EEE respectively.

    This works fine for me.

    But my problem is that for each click on Gridview the whole page gets refreshed which is a bad experience.

    How can I solve it.

    Pls help.It's really urgent.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    You could try the prerender event or use the onclick event and have a not page.ispostback there. If you have a deadline please state it, rather than just saying its very urgent. Otherwise your request has the same urgency as every other post.

    Comment

    • aspamit
      New Member
      • Jan 2007
      • 38

      #3
      Originally posted by kenobewan
      You could try the prerender event or use the onclick event and have a not page.ispostback there. If you have a deadline please state it, rather than just saying its very urgent. Otherwise your request has the same urgency as every other post.
      I need to complete it within next two days.
      Please let me know the solution.

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Have you tried either of the options above?

        Comment

        • aspamit
          New Member
          • Jan 2007
          • 38

          #5
          Originally posted by kenobewan
          Have you tried either of the options above?

          Ya but it didn't work as desired.I need to postback.
          Can I have a partial postback.
          What else I can do?

          Comment

          • aspamit
            New Member
            • Jan 2007
            • 38

            #6
            Originally posted by aspamit
            Ya but it didn't work as desired.I need to postback.
            Can I have a partial postback.
            What else I can do?

            One of friend suggested me to use Ajax.But I haven't use Ajax yet.How can I?

            Comment

            • radcaesar
              Recognized Expert Contributor
              • Sep 2006
              • 759

              #7
              IF you are in Need of postback at this situation and don't wan't to see the page post back, then AJAX is the way to achieve.

              :)

              Comment

              • aspamit
                New Member
                • Jan 2007
                • 38

                #8
                Originally posted by radcaesar
                IF you are in Need of postback at this situation and don't wan't to see the page post back, then AJAX is the way to achieve.

                :)

                How can I achieve it.
                Frankly speaking I have never used Ajax.
                Pls help me.

                Comment

                • aspamit
                  New Member
                  • Jan 2007
                  • 38

                  #9
                  Originally posted by aspamit
                  How can I achieve it.
                  Frankly speaking I have never used Ajax.
                  Pls help me.

                  Time Up Guys.
                  Today our TL might fired me off.
                  Thanks anyways.

                  Comment

                  • aspamit
                    New Member
                    • Jan 2007
                    • 38

                    #10
                    Hey I have solved it with the help of Atlas.

                    Cheers.

                    Comment

                    Working...