Browse by Tags

Related Posts

  • Re: Page.IsValid is always false when TextBox has ReadOnly=true

    [quote user="kamii47"] You should disable the requiredfield validator when you are setting readonly=true for the text box rfvCode .Enabled = False [/quote] Thanks, I have added that code and now Page.IsValid is true. protected void btnSend_Click( object sender, EventArgs e ) { rfvCode.Enabled...
    Posted to Web Forms (Forum) by manaslu on 08-29-2008, 12:00 AM
    Filed under: page.isvalid, TextBox, readonly, requiredfieldvalidator
  • Page.IsValid is always false when TextBox has ReadOnly=true

    Situation: - I have one TextBox that is read only but I change its text with javascript. - Initially, the TextBox is empty and I check it with a RequiredFieldValidator. - I fill the TextBox with javascript and I send the form. - I verify the validation on the server (Page.IsValid) and I get that it is...
    Posted to Web Forms (Forum) by manaslu on 08-29-2008, 12:00 AM
    Filed under: page.isvalid, TextBox, readonly, requiredfieldvalidator
  • Re: get the changed value of a text box - client side

    Also, you should notice that the readonly property will reset a textbox at pageload. Have a look here http://geekswithblogs.net/ranganh/archive/2007/05/10/112390.aspx. Essentially it's about adding the readonly property at run-time e.g: if (!IsPostBack) { // make textbox read-only TextBox1.Attributes...
    Posted to Client Side Web Development (Forum) by johannesdolberg on 12-05-2007, 12:00 AM
    Filed under: textbox, value, change value, client side, readonly
Page 1 of 1 (3 items)