I am using textbox editor and after selecting dropdownlist on postback the html editor is worked as a textbox.
plz help me.
thanks
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sunny SharmaRank #223 · 11.1K reputationPosted Aug 9, 2013, 2:34 AM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Aug 9, 2013, 3:14 AM EDT
and i am using for textbox
Width="400px">
this code is working in another page but there is no any control like dropdown for postback
Sunny SharmaRank #223 · 11.1K reputationPosted Aug 9, 2013, 3:30 AM EDT
Sunny SharmaRank #223 · 11.1K reputationPosted Aug 9, 2013, 3:31 AM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Aug 9, 2013, 3:36 AM EDT
Hashtable hsinput = new Hashtable();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
bindstate();
Bindddlcmpny();
}
txtjobpost.Attributes.Add("readonly", "readonly");
}
public void bindstate()
{
DataSet ds = new DataSet();
ds = objdal.FillDataSet(CommandType.Text, "select * from state where active=1");
//ddlstate.Items.Clear();
//ddlstate.Items.Add("Select State");
ddlstate.DataTextField = "statename";
ddlstate.DataValueField = "StateId";
ddlstate.DataSource = ds.Tables[0];
ddlstate.DataBind();
ddlstate.Items.Insert(0, new ListItem("-- Select State --", "0"));
}
public void Bindddlcmpny()
{
DataSet ds = new DataSet();
ds = objdal.FillDataSet(CommandType.Text, "select ID,companyName from employerRegistration");
ddlcmpny.DataTextField = "CompanyName";
ddlcmpny.DataValueField = "ID";
ddlcmpny.DataSource = ds.Tables[0];
ddlcmpny.DataBind();
ddlcmpny.Items.Insert(0, new ListItem("-- Select company --", "0"));
}
i have bind the dropdownlists on pageload and on postback the html editor is not working.
Sunny SharmaRank #223 · 11.1K reputationPosted Aug 9, 2013, 4:20 AM EDT
-----------------------------------------------------------------------
---------------------------------
Code Behind:
--------------------------------
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ddl1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("");
}
----------------------------------------
It works like a charm, no issues. I suggest you to check if your plugins are getting loaded properly. use developer tools in chrome or IE whatever you prefer and diagnose the problem.
Hope it helps :)