Ok, have been doing win app programming for years, but I'm new to web programming. I'm confused on when data gets posted. I have a form with some user data that a load from a SQL Table, and I want to be able to change it and resave it. So I have, for example, a txtUsername text box, and a Submit button with a SQL Update command. I change the text of the txtUserName, and I hit submit....but when i try to load the new data into a command parameter, it still has the old data in it (for example: My name is Sean, I change it to Shaun, but in the code of my Submit button click txtUsername.Text still shows Sean). When does the data get changed? Do I have to enable AutoPostBack on my controls? Thanks.




Reply With Quote