So I have a Web Forms asp control:
<asp:DropDownList runat="server" ID="ExistingTemplate" ClientIDMode="Static" />
On the backend code, it gets populated through this:
public override void DataBind()
{
base.DataBind();
var selectList = Chatham.Web.Models.Indications.DropDownData.AllEditableTemplates();
ExistingTemplate.DataSource = selectList.Items;
ExistingTemplate.DataTextField = selectList.DataTextField;
ExistingTemplate.DataValueField = selectList.DataValueField;
ExistingTemplate.DataBind();
SetTabVisibility();
}
Now, I want to refactor the AllEditableTemplates method to take a parameter. This parameter is only accessible through the client side Javascript code, on the master page front end.
How can I pass a parameter to this method that I get from Javascript on the page?