Gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumitgupta10
    New Member
    • Dec 2007
    • 13

    Gridview

    I have a form of Asp.net in which i have some fields like Name,Location,A ge etc. and a save button on it.Also i have a listbox on the same form.Whenever i enter the values of the fields and click on the save button,the records are stored in the database.but that particular field is not shown in the listbox at that time.when i close my application and again open it,it becomes available in the listbox.I want want that as soon as i click on the save button the item appears in the list box.How can i do that.same is with delete.and can i also do the same with the GridView?? Thanks in advance....
  • baburk
    New Member
    • Oct 2006
    • 111

    #2
    I think you are binding the listbox with database.
    After save once agin bind the listbox.

    Good thing is setting AutoPostBack as true for the listbox and put the binding in page_load in if (!PostBack) { Listbox binding coding }

    Comment

    Working...