Re: ASP.NET controls help!!!

From: Eran Kampf (eran_at_ekampf.com)
Date: 10/28/04


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!!!



Relevant Pages

  • Re: Binding DateTimePicker
    ... unless the user changes this date it is not saved to database ... It seems that there is some "Modified" property for every control. ... The value isn't persisted if the modified flag ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Global datasets
    ... Sticking with the first method again. ... Populate my DataSet from the Database ... Create another control object instance ... re-instantiating it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: instant Lisp web application publishing
    ... flow of control (e,g. first log in the user, then show page x, than ... of Lisp if they want) ... flexible database that can be easily mapped into OOP terminology (so you ... Also I don't have a good candidate server to deploy it too. ...
    (comp.lang.lisp)
  • RE: 438 - Object doesnt support this property or method
    ... I created a new database and imported everything from the original. ... Missing is the Reference to the EzFTP control. ... Set con = Application.CurrentProject.Connection ...
    (microsoft.public.access.formscoding)
  • Re: Communication Log
    ... May I send you copy of the database that I made? ... a communication log in the database so that it will store the Date, ... ContactMethodID ... The above controls are set up in a page using te tab control. ...
    (microsoft.public.access.tablesdbdesign)

Loading