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

ASP.NET

 
AnswerRe: Please explain Pin
sashidhar31-Aug-09 20:07
sashidhar31-Aug-09 20:07 
GeneralRe: Please explain Pin
Christian Graus31-Aug-09 20:17
protectorChristian Graus31-Aug-09 20:17 
AnswerRe: Please explain Pin
Christian Graus31-Aug-09 20:17
protectorChristian Graus31-Aug-09 20:17 
Questiondisplaying selected records Pin
swtlibra31-Aug-09 18:47
swtlibra31-Aug-09 18:47 
AnswerRe: displaying selected records Pin
Abhijit Jana31-Aug-09 19:17
professionalAbhijit Jana31-Aug-09 19:17 
QuestionRe: displaying selected records Pin
Amit Patel19851-Sep-09 0:22
Amit Patel19851-Sep-09 0:22 
QuestionHow to store picture into database and retrieval Pin
abglorie31-Aug-09 18:37
abglorie31-Aug-09 18:37 
AnswerRe: How to store picture into database and retrieval Pin
swtlibra31-Aug-09 18:58
swtlibra31-Aug-09 18:58 
QuestionBest Method For AJAX Web Wizards Pin
Adam R Harris31-Aug-09 14:50
Adam R Harris31-Aug-09 14:50 
QuestionVirtual path in Web Application Model. Pin
Nadia Monalisa31-Aug-09 13:04
Nadia Monalisa31-Aug-09 13:04 
Questionhow to convert multiline textbox text to image Pin
Shuaib wasif khan31-Aug-09 13:01
Shuaib wasif khan31-Aug-09 13:01 
AnswerRe: how to convert multiline textbox text to image Pin
Christian Graus31-Aug-09 14:00
protectorChristian Graus31-Aug-09 14:00 
QuestionDropdown list value is not retaining on page post back [modified] Pin
skhan1731-Aug-09 7:10
skhan1731-Aug-09 7:10 
AnswerRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 10:36
professionalAbhishek Sur31-Aug-09 10:36 
Yes.. the culprit is your page load method..

Just for every post-back, even when submit button is clicked, ASP.NET first calles Page_Load and after its execution it calles the general event handler.

Just omit the lines

if (this.IsPostBack)
{
    if(Specific_Query_DDL.SelectedItem.Value=="ResistantL")
    {
          getMLNO(Specific_Query_DDL.SelectedItem.Value);
    }
    if(Specific_Query_DDL.SelectedItem.Value=="NegativeL")
    {
          getMLNO(Specific_Query_DDL.SelectedItem.Value);
    }
}


and place them in Listbox1_selectedIndexChanged event.

I thin as that is called specific when postback occurs on selected indexchanged event, the submit will not load the 2nd dropdown onsubmit.

The problem will be fixed then... Thumbs Up | :thumbsup: Thumbs Up | :thumbsup: Cool | :cool:



Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: Dropdown list value is not retaining on page post back Pin
skhan1731-Aug-09 11:09
skhan1731-Aug-09 11:09 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 11:40
professionalAbhishek Sur31-Aug-09 11:40 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Christian Graus31-Aug-09 14:02
protectorChristian Graus31-Aug-09 14:02 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 23:25
professionalAbhishek Sur31-Aug-09 23:25 
AnswerRe: Dropdown list value is not retaining on page post back Pin
Christian Graus31-Aug-09 14:07
protectorChristian Graus31-Aug-09 14:07 
QuestionReferencing HTML input boxes correctly Pin
dptalt31-Aug-09 5:10
dptalt31-Aug-09 5:10 
AnswerRe: Referencing HTML input boxes correctly Pin
Not Active31-Aug-09 6:44
mentorNot Active31-Aug-09 6:44 
GeneralRe: Referencing HTML input boxes correctly Pin
dptalt31-Aug-09 9:15
dptalt31-Aug-09 9:15 
GeneralRe: Referencing HTML input boxes correctly Pin
Not Active31-Aug-09 9:56
mentorNot Active31-Aug-09 9:56 
GeneralRe: Referencing HTML input boxes correctly Pin
Abhishek Sur31-Aug-09 10:44
professionalAbhishek Sur31-Aug-09 10:44 
GeneralRe: Referencing HTML input boxes correctly Pin
dptalt1-Sep-09 1:35
dptalt1-Sep-09 1:35 

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.