Currently I have a dropdownlist populated from the database. When the user
selects and item, the OnSelectedIndexChanged event fires (does a postback to
the server) and then loads the selected item's value into an asp:textbox
control. Using the Ajax toolkit, I'd like to perform this same
functionality, but without the entire page posting back. I'm looking for
suggestions on how to do this or any links to examples. Thank You
string script = myTextBox.ClientID + ".value=this.value;";
myDropdown.Attributes["onchange"] = script;
-- bruce (sqlwork.com)
<asp:ScriptManager ID="ScriptManager" runat="server" />
<asp:UpdatePanel runat="server" ID="UpdatePanel">
<ContentTemplate>
<asp:DropDownList ...>
<asp:TextBox ...>
</ContentTemplate>
</asp:UpdatePanel>
Program the server side in a regular way.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"bruce barker" <nos...@nospam.com> wrote in message
news:%236lBE%23wgIH...@TK2MSFTNGP02.phx.gbl...