Click here to Skip to main content
15,884,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionBlog size Pin
Satish328-Feb-10 0:18
Satish328-Feb-10 0:18 
AnswerRe: Blog size Pin
Abhishek Sur8-Feb-10 9:32
professionalAbhishek Sur8-Feb-10 9:32 
Questionresume large file download? Pin
Tridip Bhattacharjee7-Feb-10 23:53
professionalTridip Bhattacharjee7-Feb-10 23:53 
AnswerRe: resume large file download? Pin
Rhys Jacob7-Feb-10 23:59
Rhys Jacob7-Feb-10 23:59 
QuestionFile download by ICallback Pin
Tridip Bhattacharjee7-Feb-10 23:52
professionalTridip Bhattacharjee7-Feb-10 23:52 
Questionpartial postback and IFrame Pin
Tridip Bhattacharjee7-Feb-10 23:51
professionalTridip Bhattacharjee7-Feb-10 23:51 
AnswerRe: partial postback and IFrame Pin
tronix018-Feb-10 21:07
tronix018-Feb-10 21:07 
QuestionHelp with multiple dropdownlists and updatepanels Pin
callousfantom7-Feb-10 23:18
callousfantom7-Feb-10 23:18 
Hi,
I'm developing a user control that is loaded dynamically into a page.
The user control has 4 dropdownlists(DDLs). Each is populated dynamically depending upon the values selected in the previous DDLs. Each DDL is in a separate updatepanel (not nested) and has the autopostback set true. Each has its trigger set as the SelectedIndexChanged event of the DDL before it.

The problem is, if the user selects a (non default) selection 'x' in the first DDL and tries to select something say 'p' in DDL2, on postback, SelectionChangedEvent for DDL1 is fired (as per normal page lifecycle) to select 'x' which reloads DDL2 before SelectionChangedEvent of DDL2 is fired. This causes the selected 'p' in DDL2 to be lost and the page comes back again with the default selection for DDL2. Similar is the case with other DDLs. Here's the logic of my code:

Page_Load()
{
//Load DDL1
}
UpdatePanel2_Load()
{
//Load DDL2
}
UpdatePanel3_Load()
{
//Load DDL3
}
UpdatePanel4_Load()
{
//Load DDL4
}
OnSelectedIndexChanged_DDL1()
{
//Load DDl2,DDL3,DDL4
}
OnSelectedIndexChanged_DDL2()
{
//Load DDL3,DDL4
}
OnSelectedIndexChanged_DDL3()
{
//Load DDL4
}
What this does is, when OnSelectedIndexChanged_DDL1() is fired on postback to select 'x' in DDL1, it reloads DDL2,DDL3,DDL4 and by the time OnSelectedIndexChanged_DDL2() is fired (because of the selection 'p' made by user) the statement 'DDL2.SelectedValue' inside it only returns the default DDL2 selection 'd' and not the user selection 'p'. Can I get the value selected by the user in Page_Load itself (say from Viewstate) instead of waiting for OnSelectedIndexChanged_DDL2() to fire?

I know it's really long and might seem confusing but I really need a solution to this and am losing my mind! Smile | :) Any help would be great. Thanks
Questionweb service Pin
mylogics7-Feb-10 22:15
professionalmylogics7-Feb-10 22:15 
AnswerRe: web service Pin
sashidhar7-Feb-10 22:21
sashidhar7-Feb-10 22:21 
GeneralRe: web service Pin
mylogics7-Feb-10 23:50
professionalmylogics7-Feb-10 23:50 
QuestionUpdation of DateTime and IP address of client system through ASP.NET page. Pin
shiva.kore7-Feb-10 21:00
shiva.kore7-Feb-10 21:00 
AnswerRe: Updation of DateTime and IP address of client system through ASP.NET page. Pin
Abhishek Sur7-Feb-10 21:17
professionalAbhishek Sur7-Feb-10 21:17 
QuestionWEB client software factory Pin
Mogamboo_Khush_Hua7-Feb-10 19:41
Mogamboo_Khush_Hua7-Feb-10 19:41 
QuestionMaking webapplicaiton to exe file which doesn't contain code .cs files Pin
Satish - Developer7-Feb-10 19:38
Satish - Developer7-Feb-10 19:38 
AnswerRe: Making webapplicaiton to exe file which doesn't contain code .cs files Pin
Vimalsoft(Pty) Ltd7-Feb-10 20:28
professionalVimalsoft(Pty) Ltd7-Feb-10 20:28 
GeneralRe: Making webapplicaiton to exe file which doesn't contain code .cs files Pin
Satish - Developer7-Feb-10 22:07
Satish - Developer7-Feb-10 22:07 
QuestionSSRS Table row should be visible and Invisible based on Input parameter Pin
siddisagar7-Feb-10 19:36
siddisagar7-Feb-10 19:36 
AnswerRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
Not Active7-Feb-10 20:00
mentorNot Active7-Feb-10 20:00 
AnswerRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
nainakarri7-Feb-10 20:11
nainakarri7-Feb-10 20:11 
GeneralRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
Not Active7-Feb-10 20:19
mentorNot Active7-Feb-10 20:19 
GeneralRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
nainakarri7-Feb-10 22:02
nainakarri7-Feb-10 22:02 
GeneralRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
sashidhar7-Feb-10 22:29
sashidhar7-Feb-10 22:29 
GeneralRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
nainakarri7-Feb-10 23:23
nainakarri7-Feb-10 23:23 
GeneralRe: SSRS Table row should be visible and Invisible based on Input parameter Pin
Not Active8-Feb-10 2:02
mentorNot Active8-Feb-10 2:02 

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.