Click here to Skip to main content
15,798,151 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
+ In the user control, you can simply declare two controls textbox and dropdownlist, and depending on which action is taken by the user, you can make the textbox/dropdownlist visible/invisible.
> Yeah, I thought of that... changed the code but it doesn't solve the problem - for the first 2 times the first item in the ddl remains selected (the SelectedItemChanged isn't called the first time the user picks another item).

+ In the web page, if you dynamically load the web user control, you can add it in the Page_Init, and depending on which radio button is selected, you can set a public property in the web user control which in turn controls the visibility of the TextBox and dropdownlist.
> Tried that one but then if I select something different in the ddl which is in it the first item is always selected.

+ Even simpler, you can declare the web user control right in the web page instead of dynamically loading it.
> No can do. I have about 50 user controls to choose from which depends on a dropdownlist (beside the radio buttons).. and each of the user controls is dependant on the radio buttons I mentioned above.

I guess that you dynamically add the user control to the web page on postback after the ViewState is loaded. IMO, you can do that in a simpler way:
> I have an event handler for each of the three radio buttons and in them I load the right user control and they determine if the textbox or ddl is visible or not. According to .NET event-handling code is always run after the viewstate is loaded, so yeah.

The problem remains unresolved... but thanx for answering..
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 
GeneralRe: How to pass data from one page to another page.. Pin
Amit Agarrwal21-Jul-06 1:20
Amit Agarrwal21-Jul-06 1:20 
GeneralRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 1:32
_AK_21-Jul-06 1:32 
GeneralRe: How to pass data from one page to another page.. Pin
Amit Agarrwal21-Jul-06 1:40
Amit Agarrwal21-Jul-06 1:40 
GeneralRe: How to pass data from one page to another page.. Pin
_AK_21-Jul-06 1:48
_AK_21-Jul-06 1:48 

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.