Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Gridview Updating Event Not Firing in Production!

Gridview Updating Event Not Firing in Production!

Scheduled Pinned Locked Moved ASP.NET
csswpfsysadminjsonquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DigiOz Multimedia
    wrote on last edited by
    #1

    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

    C B 2 Replies Last reply
    0
    • D DigiOz Multimedia

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      D 1 Reply Last reply
      0
      • C Christian Graus

        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.

        D Offline
        D Offline
        DigiOz Multimedia
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • D DigiOz Multimedia

          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

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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.

          D 1 Reply Last reply
          0
          • C Christian Graus

            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.

            D Offline
            D Offline
            DigiOz Multimedia
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • D DigiOz Multimedia

              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

              B Offline
              B Offline
              banker_kiran
              wrote on last edited by
              #6

              Hi, 1. Please check that you have uploaded .aspx file properly.

              Kiran Banker

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups