protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { PricePoliticsEditor1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["Id"])) { int politicId = Convert.ToInt32(Request.QueryString["Id"]); ucNotes.NoteType = typeof(PriceCalculation); ucNotes.TypeIdentifier = politicId; ucNotes.DataBind(); PricePoliticsEditor1.PoliticId = politicId; PricePoliticsEditor1.DataBind(); } } }