I'm loading a page: address.ascx in a placeholder on customer.aspx (i'm not actually working with these files, but this makes it easier to understand without knowing the background of my organisation).
Anyway, this works fine. On address.ascx there's a datagrid. When I want to edit data inside my datagrid, I have to click my edit button two times (very weird, imho). After the first time, I will only have to click it once to get into edit-mode again (even weirder).
When the datagrid is in edit-mode, and I edit my data and click on the save button, the datagrid refreshes, but the data is not edited. When I copy-paste my code into a single file (without being loaded in a placeholder) it works fine. So I'm certain it isn't the sql, the connection to the database or anything like that.
At first I thought it was because on pageload (postback) my placeholder is first cleared, and then reloaded (when I don't do that, the data is shown twice or even three times). But if this would be the problem, then going into edit-mode wouldn't work either (or would it?).
So you see, I'm kinda stuck here, I don't know where to look for a solution.
Anyone who can push me in the right direction?
Thanks
Anyway, this works fine. On address.ascx there's a datagrid. When I want to edit data inside my datagrid, I have to click my edit button two times (very weird, imho). After the first time, I will only have to click it once to get into edit-mode again (even weirder).
When the datagrid is in edit-mode, and I edit my data and click on the save button, the datagrid refreshes, but the data is not edited. When I copy-paste my code into a single file (without being loaded in a placeholder) it works fine. So I'm certain it isn't the sql, the connection to the database or anything like that.
At first I thought it was because on pageload (postback) my placeholder is first cleared, and then reloaded (when I don't do that, the data is shown twice or even three times). But if this would be the problem, then going into edit-mode wouldn't work either (or would it?).
So you see, I'm kinda stuck here, I don't know where to look for a solution.
Anyone who can push me in the right direction?
Thanks