grid view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rakeshashapur
    New Member
    • Aug 2010
    • 6

    grid view

    hi all i want to creat gridview and connect it with the database.
    and add a text box and win i enter the id in that text box all the information about that id should be displayed in grid view.

    Thank you......
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    :) That sounds like a nice thing to do but what exactly are you having problems with?

    Have you attempted the problem yet?
    What errors are you getting?
    What is program doing that is not expected?
    What isn't your program doing that it should be doing?

    Do you know how to connect to a database?
    If not then please review the following article that outline how to use a database:
    Database tutorial Part 1
    Database tutorial Part 2

    -Frinny

    Comment

    • Rakeshashapur
      New Member
      • Aug 2010
      • 6

      #3
      yes i have connected to the data base. and its working accorting to my criteria. but i want to connect to database only once and then if i enter ID in Textbox it should search in Gridview and Display in Gridview it should not connect to data base and search it in database again.....
      i think you got the point....
      is there any solution for this....

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        You need to "persist" your results that you retrieve from the database so that you can search, sort, and interact with them.

        I recommend storing these results in Session or in ASP.NET cache.

        -Frinny

        Comment

        Working...