Hey,
I got a problem with when using Asp.net using Ajax control tookit. I have tried a lot of things but this problem seems like a bug with Ajax.
To demonstrate my problem, firstly, you can take a look at the image that I attached below:
This is a panel that put inside a updatepanel. The textbox values: Company Name, ContractNr, Endate, Max Companies, Max Terminal, Max Doors, Max users and License Nr are loaded on Page_load(0 and from database.
But the problem came is: if i fill in other values for the textboxes above, and click button Update, the values could not be changed and used to update the database, but the values kept the same like from the first time loading.
I have spent couple of hours to try to solve this problem, but it seems impossible!
Did anyone get this problem before? and if possible, could you give me advice or solution?
Thank you very much,
Joesy
While the image is nice - you'd do better posting the code the replicates the issue. It would appear from your description however, that you are always re-initilizing the values for the form fields on page load. Make sure that you do something similiar to:
if (!Page.IsPostback)
{
//code for binding the initial values from the db to the form fields
}
Then you can leave the rest alone and the form will always reflect the current user supplied values...
Most likely - this is the case and can be easily verified using the VS Debugger and SQL Profiler...
it is most lkely not an issue with Ajax...
Have you set the property "EnablePartialRendering = true" of the ScriptManager ?
Hey Jody and Chetan,
Thanks for your help,
I solved it.
Joesy
No comments:
Post a Comment