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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Aug 9, 2013, 8:20 AM
-----------------------------------------------------------------------
---------------------------------
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 :)
Khargesh RajputPosted Aug 9, 2013, 7:36 AM
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 SharmaPosted Aug 9, 2013, 7:31 AM
Sunny SharmaPosted Aug 9, 2013, 7:30 AM
Khargesh RajputPosted Aug 9, 2013, 7:14 AM
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 SharmaPosted Aug 9, 2013, 6:34 AM