Gridview Updating Event Not Firing in Production!
-
Hello All, I have a Gridview control that is working on my development machine, but in Production (Win 2003 Server) the Updating Event is not firing after the Edited Values have been changed and the user clicks on the "Update" link (Auto Generated). Does anyone see anything that may be preventing the "_Updating" event from firing? <code><asp:GridView ID="gvRate" runat="server" AllowPaging="true" AutoGenerateColumns="false" AllowSorting="true" OnPageIndexChanging="gvRate_PageIndexChanging" OnSorting="gvRate_Sorting" EmptyDataText="No Data Found" CssClass="StyleSheet.css" PageSize="50" OnSelectedIndexChanged="gvRate_SelectedIndexChanged" DataKeyNames="RateMasterId" ShowFooter="true" OnRowCommand="gvRate_RowCommand" Width="100%" CellPadding="2" HeaderStyle-Font-Bold="true" OnRowEditing="gvRate_RowEditing" OnRowCancelingEdit="gvRate_RowCancelingEdit" OnRowUpdating="gvRate_RowUpdating" OnRowDataBound="gvRate_RowDataBound" OnRowDeleting="gvRate_RowDeleting" <!-- Rest of the Templates --> </asp:GridView></code> Here is what the code behind looks like: <code>protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { &n
-
Hello All, I have a Gridview control that is working on my development machine, but in Production (Win 2003 Server) the Updating Event is not firing after the Edited Values have been changed and the user clicks on the "Update" link (Auto Generated). Does anyone see anything that may be preventing the "_Updating" event from firing? <code><asp:GridView ID="gvRate" runat="server" AllowPaging="true" AutoGenerateColumns="false" AllowSorting="true" OnPageIndexChanging="gvRate_PageIndexChanging" OnSorting="gvRate_Sorting" EmptyDataText="No Data Found" CssClass="StyleSheet.css" PageSize="50" OnSelectedIndexChanged="gvRate_SelectedIndexChanged" DataKeyNames="RateMasterId" ShowFooter="true" OnRowCommand="gvRate_RowCommand" Width="100%" CellPadding="2" HeaderStyle-Font-Bold="true" OnRowEditing="gvRate_RowEditing" OnRowCancelingEdit="gvRate_RowCancelingEdit" OnRowUpdating="gvRate_RowUpdating" OnRowDataBound="gvRate_RowDataBound" OnRowDeleting="gvRate_RowDeleting" <!-- Rest of the Templates --> </asp:GridView></code> Here is what the code behind looks like: <code>protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { &n
If it works locally, then surely it's some sort of deployment issue. Are you sure it's not firing ? How can you tell, you didn't post the code, could it be that it fired but the code does nothing for some reason ( like an if block at the top of it ) ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
If it works locally, then surely it's some sort of deployment issue. Are you sure it's not firing ? How can you tell, you didn't post the code, could it be that it fired but the code does nothing for some reason ( like an if block at the top of it ) ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Hello Chris, The code is deployed into production correctly. I did a remote debugging of the code on the server and stepped through the code. It does not even hit the "Updating" routine. The only routine that does fire after the user clicks on "Update" link is the "Page_Load" event. :( Thanks, Pete
Pete Soheil DigiOz Multimedia http://www.digioz.com
-
Hello Chris, The code is deployed into production correctly. I did a remote debugging of the code on the server and stepped through the code. It does not even hit the "Updating" routine. The only routine that does fire after the user clicks on "Update" link is the "Page_Load" event. :( Thanks, Pete
Pete Soheil DigiOz Multimedia http://www.digioz.com
Is it running the right version of .NET ? What could be different between the server and your dev machine ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Is it running the right version of .NET ? What could be different between the server and your dev machine ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Yep, its running the same version of .NET as my Dev Machine. I am just as confused as you as to why it would be executing differently on the server.
Pete Soheil DigiOz Multimedia http://www.digioz.com
-
Hello All, I have a Gridview control that is working on my development machine, but in Production (Win 2003 Server) the Updating Event is not firing after the Edited Values have been changed and the user clicks on the "Update" link (Auto Generated). Does anyone see anything that may be preventing the "_Updating" event from firing? <code><asp:GridView ID="gvRate" runat="server" AllowPaging="true" AutoGenerateColumns="false" AllowSorting="true" OnPageIndexChanging="gvRate_PageIndexChanging" OnSorting="gvRate_Sorting" EmptyDataText="No Data Found" CssClass="StyleSheet.css" PageSize="50" OnSelectedIndexChanged="gvRate_SelectedIndexChanged" DataKeyNames="RateMasterId" ShowFooter="true" OnRowCommand="gvRate_RowCommand" Width="100%" CellPadding="2" HeaderStyle-Font-Bold="true" OnRowEditing="gvRate_RowEditing" OnRowCancelingEdit="gvRate_RowCancelingEdit" OnRowUpdating="gvRate_RowUpdating" OnRowDataBound="gvRate_RowDataBound" OnRowDeleting="gvRate_RowDeleting" <!-- Rest of the Templates --> </asp:GridView></code> Here is what the code behind looks like: <code>protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { &n
Hi, 1. Please check that you have uploaded .aspx file properly.
Kiran Banker