Re: ASP.NET controls help!!!
From: Eran Kampf (eran_at_ekampf.com)
Date: 10/28/04
- Next message: James Curran: "Re: Parsing and storing formulas"
- Previous message: Trond Hoiberg: "Re: Dates"
- In reply to: Andres Romero: "ASP.NET controls help!!!"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 21:12:14 +0200
Before filling the values in the Page_Load event you should check for
postback.
Only fill in the values of the database if Page.IsPostback is false.
Eran Kampf
http://www.ekampf.com
"Andres Romero" <AndresRomero@discussions.microsoft.com> wrote in message
news:4797323C-501D-4DDA-9308-872A7D5C32EC@microsoft.com...
> Hi !!!!
>
> I have an asp.net page and in the Page_Load event I connect to a database
> and put results in some TextBox controls to,when the user see the page, it
> containt some values in these controls, but if the user changes the values
> on
> any control and try to update the database using the Text property value
> for
> the control, it still have the original value.
>
> Also when the control has a RequiredFieldValidator control to validate the
> datatype and the user doesn't change the value, it sends the error message
> as
> if the control doesn´t have a valid value.
>
> Any help!!!
- Next message: James Curran: "Re: Parsing and storing formulas"
- Previous message: Trond Hoiberg: "Re: Dates"
- In reply to: Andres Romero: "ASP.NET controls help!!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|