Updating and ASP Textbox from Server Side Script using AJAX Extensions

Last post 11-16-2006 1:45 PM by brianb@potensiacorp.com. 1 replies.

Sort Posts:

  • Updating and ASP Textbox from Server Side Script using AJAX Extensions

    10-30-2006, 2:53 PM

    I've searched the web extensively and cannot find an answer to a question that I believe is simple.

    I have an application running AJAX extensions so that scripts are run at server side. Everything works great. The problem I have is that based on selections in the script I need to base data to ASP.NET VB code behind to intergrate with an existing application.

    Quite simply I want to update a hidden textbox then use that data to pass along to another asp page. I know how to pass the data once I get it to and ASP control. Just need to get it to the ASP side of the server.

    Thanks in advance for any help.

     

    Brian

  • Re: Updating and ASP Textbox from Server Side Script using AJAX Extensions

    11-16-2006, 1:45 PM
    Answer

    I solved my problem.

    Make sure there is an Name tag on the textbox that you will be using to pass info to code behind

    This will accept a value and display it. 

    <input type="text" id="textbox1"  value="JavaScript JumpStart" runat=server>

     If you want to use the value in the code behind file this is what you need.

    <input type="text" id="textbox1" name="textbox1" value="JavaScript JumpStart" runat=server>

    Note the addition of the name tag.

Page 1 of 1 (2 items)