Altering Input or Text box values in code behind

Last post 06-08-2006 3:43 PM by Luis Abreu. 4 replies.

Sort Posts:

  • Altering Input or Text box values in code behind

    06-07-2006, 4:20 PM
    • Member
      20 point Member
    • thechod
    • Member since 06-07-2006, 8:12 PM
    • Posts 4
    I'm new to Atlas and have been having trouble figuring out how I can have the code behind update the value in a regular HTML Input field or an asp:TextBox.  Basically what I'm looking for is you click a button and it will update the values.

    Also I've seen in several forum posts people using controls like atlas:label or atlas:textbox but I don't have access to those.  What am I missing?
  • Re: Altering Input or Text box values in code behind

    06-08-2006, 4:36 AM
    • Contributor
      7,416 point Contributor
    • Garbin
    • Member since 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,506
    • TrustedFriends-MVPs
    Hi,

    atlas:label, atlas:textbox and other server control have been removed and don't exist in the current CTP. Can you describe your requirements in detail?
    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: Altering Input or Text box values in code behind

    06-08-2006, 1:36 PM
    • Member
      20 point Member
    • thechod
    • Member since 06-07-2006, 8:12 PM
    • Posts 4
    I actually was able to resolve the issue.  What I was trying to do originally was have a button click fire off a javascript function that called a function in the code behind, no postback ever occured.

    I've since switched to using an update panel and have a postback happen and the fields now update.  The only odd thing I see now is drop down lists flicker on the postback in IE only.
  • Re: Altering Input or Text box values in code behind

    06-08-2006, 1:48 PM
    • Member
      20 point Member
    • thechod
    • Member since 06-07-2006, 8:12 PM
    • Posts 4
    One question though in regards to this.  Is it possible to have an onblur event for a textbox call a javascript function that in turn calls a function in the code behind to do some work, and in the code behind code to update values on the page?
  • Re: Altering Input or Text box values in code behind

    06-08-2006, 3:43 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 1:22 AM
    • Madeira [Portugal]
    • Posts 5,368

    hello.

    thougj i haven't tried it, i assume that you can add a handler to the onblur event. this should be called before the page is subtmitted to the server (i'm assuming that you're setting the autpostback of the textbox controlo to true and that itt's placed inside a updatepanel).

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
Page 1 of 1 (5 items)