Re: refresh gridview at postback
- From: "Simon Strandgaard" <neoneye@xxxxxxxxx>
- Date: 20 Apr 2006 07:09:38 -0700
Hi Eliyahu,
I am seeking a solution where 'delete' and 'edit' will work.
X) without invoking databind, then 'delete' correctly removes
the row. However then 'edit' fails to refresh the gridview.
Y) when invoking databind, then 'edit' correctly refreshes
the gridview. However 'delete' results in an error
(see bottom of this mail).
I should have told in my original post;
that I invoke mygridview.DataBind(); in order to force a
refresh of the gridview. I am not sure if there is a smarter
way to force a refresh?
I want to refresh the parent window so the gridview reflectsFrom the 'edit' popup one can modify my table and thus
the current table data.
Summary of what I am trying to accomplish:
* The gridview extracts data from my table.
* Via the 'edit' popup, users can modify my table.
* When a user has edited my table, then the gridview
should be refreshed.
* When a user clicks 'delete' on a row in the gridview,
then it should be removed.
below is the error message for (Y):
Invalid postback or callback argument. Event validation is enabled
using <pages enableEventValidation="true"/> in configuration or <%@
Page EnableEventValidation="true" %> in a page. For security purposes,
this feature verifies that arguments to postback or callback events
originate from the server control that originally rendered them. If
the data is valid and expected, use the
ClientScriptManager.RegisterForEventValidation method in order to
register the postback or callback data for validation.
--
Simon Strandgaard - http://neoneye.dk/
.
- Follow-Ups:
- Re: refresh gridview at postback
- From: Simon Strandgaard
- Re: refresh gridview at postback
- References:
- refresh gridview at postback
- From: Simon Strandgaard
- Re: refresh gridview at postback
- From: Eliyahu Goldin
- refresh gridview at postback
- Prev by Date: HttpHandler + Server.Execute to achieve URL Rewrite
- Next by Date: Re: Render Html Question??
- Previous by thread: Re: refresh gridview at postback
- Next by thread: Re: refresh gridview at postback
- Index(es):
Relevant Pages
|
Loading