Click here to Skip to main content
15,797,801 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionproblem in Export to Excel Pin
Jeeva Mary Varghese21-Jul-06 2:58
Jeeva Mary Varghese21-Jul-06 2:58 
AnswerRe: problem in Export to Excel Pin
minhpc_bk21-Jul-06 18:01
minhpc_bk21-Jul-06 18:01 
GeneralRe: problem in Export to Excel Pin
Jeeva Mary Varghese23-Jul-06 20:08
Jeeva Mary Varghese23-Jul-06 20:08 
QuestionHow to Compare two dates Pin
premiseenu21-Jul-06 2:53
premiseenu21-Jul-06 2:53 
AnswerRe: How to Compare two dates Pin
premiseenu21-Jul-06 2:53
premiseenu21-Jul-06 2:53 
AnswerRe: How to Compare two dates [modified] Pin
mnaveed21-Jul-06 3:27
mnaveed21-Jul-06 3:27 
AnswerRe: How to Compare two dates Pin
VenkataRamana.Gali21-Jul-06 3:50
VenkataRamana.Gali21-Jul-06 3:50 
QuestionSelectedIndexChanged event only fired the second time Pin
spoa21-Jul-06 1:22
spoa21-Jul-06 1:22 
Hi there.

I have a user control and a dynamically created dropdownlist on it. When I select an item in the ddl data is supposed to go into a textbox. The problem is that the SelectedIndexChanged event is only fired the second time I select some item in the ddl.

I think the problem has something to do with the viewstate - it's like the event isn't registered in the viewstate the first time I load the user control??

Here is my code which is in the Page_Load function in the user control:

DropDownList cboBUNK = new DropDownList();
cboBUNK.ID = "m_cboBUNK";
cboBUNK.CssClass = "controlText";
cboBUNK.AutoPostBack = true;
cboBUNK.SelectedIndexChanged += new EventHandler( onCboBUNKSelectedIndexChanged );

....

cboBUNK.DataSource = colBunkanr;
cboBUNK.DataTextField  = "BUNK";  
cboBUNK.DataValueField = "BUNK";
cboBUNK.DataBind();
cboBUNK.SelectedIndex = 0;

....

m_plhBUNK.Controls.Add( cboBUNK );  //placeholder for the ddl

AnswerRe: SelectedIndexChanged event only fired the second time Pin
minhpc_bk21-Jul-06 17:59
minhpc_bk21-Jul-06 17:59 
AnswerRe: SelectedIndexChanged event only fired the second time Pin
spoa24-Jul-06 1:47
spoa24-Jul-06 1:47 
GeneralRe: SelectedIndexChanged event only fired the second time Pin
minhpc_bk24-Jul-06 7:06
minhpc_bk24-Jul-06 7:06 
AnswerRe: SelectedIndexChanged event only fired the second time Pin
spoa26-Jul-06 8:25
spoa26-Jul-06 8:25 
GeneralRe: SelectedIndexChanged event only fired the second time [modified] Pin
minhpc_bk26-Jul-06 20:17
minhpc_bk26-Jul-06 20:17 
AnswerRe: SelectedIndexChanged event only fired the second time Pin
spoa27-Jul-06 1:32
spoa27-Jul-06 1:32 
Questionon server no validator control is working,How? Pin
Amit Agarrwal21-Jul-06 1:02
Amit Agarrwal21-Jul-06 1:02 
AnswerRe: on server no validator control is working,How? Pin
mnaveed21-Jul-06 3:38
mnaveed21-Jul-06 3:38 
QuestionSort in gridview? Pin
blurMember21-Jul-06 0:41
blurMember21-Jul-06 0:41 
AnswerRe: Sort in gridview? Pin
Paddy Boyd21-Jul-06 1:02
Paddy Boyd21-Jul-06 1:02 
AnswerRe: Sort in gridview? Pin
mnaveed21-Jul-06 3:44
mnaveed21-Jul-06 3:44 
QuestionHow to pass data from one page to another page.. Pin
ypsyong21-Jul-06 0:35
ypsyong21-Jul-06 0:35 
AnswerRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 0:42
_AK_21-Jul-06 0:42 
GeneralRe: How to pass data from one page to another page.. Pin
ypsyong21-Jul-06 1:00
ypsyong21-Jul-06 1:00 
GeneralRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 1:04
_AK_21-Jul-06 1:04 
GeneralRe: How to pass data from one page to another page.. Pin
ypsyong21-Jul-06 1:16
ypsyong21-Jul-06 1:16 
GeneralRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 1:45
_AK_21-Jul-06 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.