I am currently developing a custom web control. It is a textbox using jQueries autocomplete to select a value. This select happens on the client side. What I want to happen is that when the user selects an item the Selected Value and Selected Text must be sent to the server.
Currently I have the following.
1. On the custom controls OnPreRender Event I have the following. Which creates the script for the postback (CodeBehind)
protected override void OnPreRender(EventArgs e)
" + Page.GetPostBackEventReference(this, @"SelectedValue")
this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Script Name", scriptBlock, false);
View Complete Post