Click here to Skip to main content
15,914,416 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: gridview pagination Pin
Vimalsoft(Pty) Ltd8-Feb-10 19:48
professionalVimalsoft(Pty) Ltd8-Feb-10 19:48 
AnswerRe: gridview pagination Pin
Gaurav Dudeja India8-Feb-10 19:54
Gaurav Dudeja India8-Feb-10 19:54 
GeneralRe: gridview pagination Pin
FEMDEV11-Feb-10 3:33
FEMDEV11-Feb-10 3:33 
Questionbody Onload Looping.. Pin
Hema Bairavan8-Feb-10 2:30
Hema Bairavan8-Feb-10 2:30 
AnswerRe: body Onload Looping.. Pin
Not Active8-Feb-10 2:50
mentorNot Active8-Feb-10 2:50 
QuestionCustom textbox control problem in Firefox and Chrome [modified] Pin
Danpeking8-Feb-10 1:51
Danpeking8-Feb-10 1:51 
QuestionI wanna make a webpage to find ID or password. Pin
lsh486love8-Feb-10 1:46
lsh486love8-Feb-10 1:46 
AnswerRe: I wanna make a webpage to find ID or password. Pin
Not Active8-Feb-10 2:07
mentorNot Active8-Feb-10 2:07 
AnswerRe: I wanna make a webpage to find ID or password. Pin
sashidhar8-Feb-10 3:22
sashidhar8-Feb-10 3:22 
Questionrestric multiple download concept implemented by rapidshare and hotfile Pin
Tridip Bhattacharjee8-Feb-10 0:31
professionalTridip Bhattacharjee8-Feb-10 0:31 
AnswerRe: restric multiple download concept implemented by rapidshare and hotfile Pin
sashidhar8-Feb-10 0:54
sashidhar8-Feb-10 0:54 
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 

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.