Click here to Skip to main content
15,921,028 members

Comments by HK from SRT (Top 2 by date)

HK from SRT 7-Jul-11 6:02am View    
I have repeater rptQuestions_ItemDataBound:
inside this controles are dynamically created
like: ListControl lstMCQAnswer = new RadioButtonList();
then i create events for that controles like: lstMCQAnswer.SelectedIndexChanged += new EventHandler(lstControlQuestionOption_SelectedIndexChanged);
lstMCQAnswer.AutoPostBack = true;
All inside repeater and repeater data are binding under:
when if(!IsPostBack)
{ condition
Now suppose my list control is drop down then on its selected index change event i m getting one textbox.
But now when i enter some data on that textbox and if try to submit it.Uneccesary drop down selected index change is called my control is againg created and i lost my data.
HK from SRT 7-Jul-11 5:51am View    
Already done still facing problem
I dont want it to fire every time but in selectedIndexChange the actual event that occurs