GridView reload for the updated records.

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default GridView reload for the updated records.

    Hi

    Is there any way that I can call a vb function from Javascript .........

    Scenario
    I have a search which shows output in a gridview. I have one Select
    commandButton which opens a pop-up window using showModalDialog()
    After I edit the record and close the pop-up window, I need to update the
    gridView with updated details without reloading or refreshing the page. If I
    write window.reload it give "Retry Cancel" message box, which i dont want.

    Thanks

    Regards,




    Devendra Guest

  2. Similar Questions and Discussions

    1. GridView doesn't appear
      Hi, I am using the control GridView. I can see this control in html document in design view, but when I run it, it will not show up, neither the...
    2. retreve number of records updated
      is there a variable that can be accessed from a query that tells the number of records updated? Thanks KES
    3. Datagrid not updated during delete, but updated during insert and update
      Hello everyone. A test webform here, single datagrid bound to one table through dataset, and controls to delete, update and insert data. The code...
    4. Imported + updated symbols don't stay updated
      Hi everybody. I apologize for posting a question that probably any newbie should know, but ... I'm a rank Fireworks newbie. My problem is that the...
    5. What is the GridView?
      Hey Folks. Who can tell us all more about the GridView in http://msdn.microsoft.com/vstudio/productinfo/roadmap.aspx the successor to the DataGrid?...
  3. #2

    Default RE: GridView reload for the updated records.

    Hi Devendra,

    Welcome to ASPNET newsgroup.
    From your description ,you're using the ASP.NET 2.0 framework to develping
    a data driven web application. You have a certain page which use GridView
    to display some datarecords and when the user click a certain button in
    each row, there'll popup another page to let the user update that record's
    values. However, you're wondering how to make the update in the main page
    after the use finish editing the record in the popup window and return to
    the main page, yes?

    Based on my understanding, for template databound controls like GridView or
    the old DataGrid, repeater, their row values are stored in ViewState and
    we can not directly modify them at clientside or at serverside (without
    databinding). So for your scenario, I think to make the GridView update, we
    can not avoid refreshing the page(or postback it to redo databinding on the
    gridview). Also, for the updating operation, I suggest you use a
    DetailsView in the popup page to let the user edit the record and perform
    the update directly in the popup window's page. And after update use script
    to perform a postback or refersh on the original main page(which contains
    the gridview). How do you think of this?

    Thanks,

    Steven Cheng
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)





    --------------------
    | From: "Devendra" <mikrofax@nospam.nospam>
    | Subject: GridView reload for the updated records.
    | Date: Thu, 13 Oct 2005 14:01:00 +0100
    | Lines: 18
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
    | X-RFC2646: Format=Flowed; Original
    | Message-ID: <OpaM20$zFHA.2212@TK2MSFTNGP15.phx.gbl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
    | NNTP-Posting-Host: 217.205.201.142
    | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
    | Xref: TK2MSFTNGXA01.phx.gbl
    microsoft.public.dotnet.framework.aspnet.datagridc ontrol:5791
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
    |
    | Hi
    |
    | Is there any way that I can call a vb function from Javascript .........
    |
    | Scenario
    | I have a search which shows output in a gridview. I have one Select
    | commandButton which opens a pop-up window using showModalDialog()
    | After I edit the record and close the pop-up window, I need to update the
    | gridView with updated details without reloading or refreshing the page.
    If I
    | write window.reload it give "Retry Cancel" message box, which i dont want.
    |
    | Thanks
    |
    | Regards,
    |
    |
    |
    |
    |

    Steven Cheng[MSFT] Guest

  4. #3

    Default RE: GridView reload for the updated records.

    Hi Devendra,

    How are you doing on this issue and does the suggestions in my last reply
    helps a little? If there're anything else we can help, please feel free to
    post here.

    Thanks & Regards,

    Steven Cheng
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.
    --------------------
    | X-Tomcat-ID: 37049989
    | References: <OpaM20$zFHA.2212@TK2MSFTNGP15.phx.gbl>
    | MIME-Version: 1.0
    | Content-Type: text/plain
    | Content-Transfer-Encoding: 7bit
    | From: [email]stcheng@online.microsoft.com[/email] (Steven Cheng[MSFT])
    | Organization: Microsoft
    | Date: Fri, 14 Oct 2005 02:39:40 GMT
    | Subject: RE: GridView reload for the updated records.
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
    | Message-ID: <Y6kSOiG0FHA.3772@TK2MSFTNGXA01.phx.gbl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
    | Lines: 70
    | Path: TK2MSFTNGXA01.phx.gbl
    | Xref: TK2MSFTNGXA01.phx.gbl
    microsoft.public.dotnet.framework.aspnet.datagridc ontrol:5794
    | NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
    |
    | Hi Devendra,
    |
    | Welcome to ASPNET newsgroup.
    | From your description ,you're using the ASP.NET 2.0 framework to
    develping
    | a data driven web application. You have a certain page which use GridView
    | to display some datarecords and when the user click a certain button in
    | each row, there'll popup another page to let the user update that
    record's
    | values. However, you're wondering how to make the update in the main page
    | after the use finish editing the record in the popup window and return to
    | the main page, yes?
    |
    | Based on my understanding, for template databound controls like GridView
    or
    | the old DataGrid, repeater, their row values are stored in ViewState and
    | we can not directly modify them at clientside or at serverside (without
    | databinding). So for your scenario, I think to make the GridView update,
    we
    | can not avoid refreshing the page(or postback it to redo databinding on
    the
    | gridview). Also, for the updating operation, I suggest you use a
    | DetailsView in the popup page to let the user edit the record and perform
    | the update directly in the popup window's page. And after update use
    script
    | to perform a postback or refersh on the original main page(which contains
    | the gridview). How do you think of this?
    |
    | Thanks,
    |
    | Steven Cheng
    | Microsoft Online Support
    |
    | Get Secure! [url]www.microsoft.com/security[/url]
    | (This posting is provided "AS IS", with no warranties, and confers no
    | rights.)
    |
    |
    |
    |
    |
    | --------------------
    | | From: "Devendra" <mikrofax@nospam.nospam>
    | | Subject: GridView reload for the updated records.
    | | Date: Thu, 13 Oct 2005 14:01:00 +0100
    | | Lines: 18
    | | X-Priority: 3
    | | X-MSMail-Priority: Normal
    | | X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
    | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
    | | X-RFC2646: Format=Flowed; Original
    | | Message-ID: <OpaM20$zFHA.2212@TK2MSFTNGP15.phx.gbl>
    | | Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
    | | NNTP-Posting-Host: 217.205.201.142
    | | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
    | | Xref: TK2MSFTNGXA01.phx.gbl
    | microsoft.public.dotnet.framework.aspnet.datagridc ontrol:5791
    | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
    | |
    | | Hi
    | |
    | | Is there any way that I can call a vb function from Javascript .........
    | |
    | | Scenario
    | | I have a search which shows output in a gridview. I have one Select
    | | commandButton which opens a pop-up window using showModalDialog()
    | | After I edit the record and close the pop-up window, I need to update
    the
    | | gridView with updated details without reloading or refreshing the page.
    | If I
    | | write window.reload it give "Retry Cancel" message box, which i dont
    want.
    | |
    | | Thanks
    | |
    | | Regards,
    | |
    | |
    | |
    | |
    | |
    |
    |

    Steven Cheng[MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139