Drop down list does not fire postback?selva kumar12yAsked May 20, 2014, 6:15 AM2k.NETHi friend...in my page contains drop downlist,i have set auto postback property="True" but it does not firing while selected index changed...Can anyone help me out..Source: onselectedindexchanged="ddl1_SelectedIndexChanged"> ErrorMessage="Select Request Type" ControlToValidate="ddlRequestType" Display="None"> runat="server" Enabled="True" TargetControlID="RequiredFieldValidator1">
Nimit Joshi12y agoPosted May 21, 2014, 6:03 AMcan you show me your whole code of aspx page and cs page which is responsible for the dropdownlist?
selva kumar12y agoPosted May 20, 2014, 6:47 AMIt doesn't Work even i removes required field validator.
Jignesh Trivedi12y agoPosted May 20, 2014, 6:36 AMHi,I think this is due to you Required filed validator on this drop downtry after remove this validatorhope this will help you.
Khan Abrar Ahmed12y agoPosted May 20, 2014, 6:26 AMHI,in code behind file inside page load method add this protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { }}
Nimit JoshiPosted May 21, 2014, 6:03 AM
selva kumarPosted May 20, 2014, 6:47 AM
Jignesh TrivediPosted May 20, 2014, 6:36 AM
I think this is due to you Required filed validator on this drop down
try after remove this validator
hope this will help you.
Khan Abrar AhmedPosted May 20, 2014, 6:26 AM
in code behind file inside page load method add this
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}