<asp:UpdatePanel ID="updChkAllPort" runat="server" UpdateMode="Always"> <contenttemplate> <div class="table_column_50" style="margin-left: -3px ! important" runat="server" id="divSelecAllPort"> <asp:CheckBox runat="server" ID="chListAllPort" Checked ="false" Text="List all ports" OnCheckedChanged="chListAllPort_changed" AutoPostBack="true" CssClass="checkbox-style" SkinID="label-style-data" /> </contenttemplate>
protected void chListAllPort_changed(object sender, EventArgs e) { List<crewport> nextPort = new List<crewport>(); nextPort = CrewReliefPlannerManager.CrewLastPortList(Convert.ToInt32(hidVesselId.Value), chListAllPort.Checked ? true : false); ddlPort.DataSource = nextPort; ddlPort.ValueField = "PortId"; ddlPort.TextField = "PortName"; ddlPort.DataBind(); ddlPort.NullText = Resources.ErrorMessage.ResourceManager.GetString("Drop_Down_Select").ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)