protected void ddlAction_OnSelectedIndexChanged(object sender, EventArgs e) { DropDownList ddlAction = (DropDownList)sender; GridDataItem gvr = (GridDataItem)ddlAction.NamingContainer; SchemePlanCode = int.Parse(gvonlineschememis.MasterTableView.DataKeyValues[gvr.ItemIndex]["PASP_SchemePlanCode"].ToString()); Session["SchemeList"] = OnlineOrderBackOfficeBo.GetOnlineSchemeSetUp(SchemePlanCode, int.Parse(ddlMode.SelectedValue)); if (ddlAction.SelectedItem.Value.ToString() == "View") { if (ddlProduct.SelectedItem.Value.ToString() == "MF") { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "OnlineSchemeSetUp", "loadcontrol('OnlineSchemeSetUp','?SchemePlanCode=" + SchemePlanCode + "&strAction=" + ddlAction.SelectedItem.Value.ToString() + "&product=" + ddlProduct.SelectedValue + "&type=" + ddlTosee.SelectedValue + "&status=" + ddlststus.SelectedValue + "&Mode=" + ddlMode.SelectedValue + "');", true); } } if (ddlAction.SelectedValue.ToString() == "Edit") { if (ddlProduct.SelectedItem.Value.ToString() == "MF") { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "OnlineSchemeSetUp", "loadcontrol('OnlineSchemeSetUp','?SchemePlanCode=" + SchemePlanCode + "&strAction=" + ddlAction.SelectedItem.Value.ToString() + "&product=" + ddlProduct.SelectedValue + "&type=" + ddlTosee.SelectedValue + "&status=" + ddlststus.SelectedValue + "&Mode=" + ddlMode.SelectedValue + "');", true); } } }