Click here to Skip to main content
15,880,469 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionproblem in Export to Excel Pin
Jeeva Mary Varghese21-Jul-06 1:58
Jeeva Mary Varghese21-Jul-06 1:58 
AnswerRe: problem in Export to Excel Pin
minhpc_bk21-Jul-06 17:01
minhpc_bk21-Jul-06 17:01 
GeneralRe: problem in Export to Excel Pin
Jeeva Mary Varghese23-Jul-06 19:08
Jeeva Mary Varghese23-Jul-06 19:08 
QuestionHow to Compare two dates Pin
premiseenu21-Jul-06 1:53
premiseenu21-Jul-06 1:53 
AnswerRe: How to Compare two dates Pin
premiseenu21-Jul-06 1:53
premiseenu21-Jul-06 1:53 
AnswerRe: How to Compare two dates [modified] Pin
mnaveed21-Jul-06 2:27
mnaveed21-Jul-06 2:27 
AnswerRe: How to Compare two dates Pin
VenkataRamana.Gali21-Jul-06 2:50
VenkataRamana.Gali21-Jul-06 2:50 
QuestionSelectedIndexChanged event only fired the second time Pin
spoa21-Jul-06 0:22
spoa21-Jul-06 0: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 16:59
minhpc_bk21-Jul-06 16:59 
AnswerRe: SelectedIndexChanged event only fired the second time Pin
spoa24-Jul-06 0:47
spoa24-Jul-06 0:47 
GeneralRe: SelectedIndexChanged event only fired the second time Pin
minhpc_bk24-Jul-06 6:06
minhpc_bk24-Jul-06 6:06 
AnswerRe: SelectedIndexChanged event only fired the second time Pin
spoa26-Jul-06 7:25
spoa26-Jul-06 7:25 
GeneralRe: SelectedIndexChanged event only fired the second time [modified] Pin
minhpc_bk26-Jul-06 19:17
minhpc_bk26-Jul-06 19:17 
AnswerRe: SelectedIndexChanged event only fired the second time Pin
spoa27-Jul-06 0:32
spoa27-Jul-06 0:32 
Questionon server no validator control is working,How? Pin
Amit Agarrwal21-Jul-06 0:02
Amit Agarrwal21-Jul-06 0:02 
AnswerRe: on server no validator control is working,How? Pin
mnaveed21-Jul-06 2:38
mnaveed21-Jul-06 2:38 
QuestionSort in gridview? Pin
blurMember20-Jul-06 23:41
blurMember20-Jul-06 23:41 
AnswerRe: Sort in gridview? Pin
Paddy Boyd21-Jul-06 0:02
Paddy Boyd21-Jul-06 0:02 
AnswerRe: Sort in gridview? Pin
mnaveed21-Jul-06 2:44
mnaveed21-Jul-06 2:44 
QuestionHow to pass data from one page to another page.. Pin
ypsyong20-Jul-06 23:35
ypsyong20-Jul-06 23:35 
AnswerRe: How to pass data from one page to another page.. Pin
_AK_20-Jul-06 23:42
_AK_20-Jul-06 23:42 
GeneralRe: How to pass data from one page to another page.. Pin
ypsyong21-Jul-06 0:00
ypsyong21-Jul-06 0:00 
GeneralRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 0:04
_AK_21-Jul-06 0:04 
GeneralRe: How to pass data from one page to another page.. Pin
ypsyong21-Jul-06 0:16
ypsyong21-Jul-06 0:16 
GeneralRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 0:45
_AK_21-Jul-06 0: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.