Click here to Skip to main content
15,902,735 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionInstansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 3:55
Md Arif2-Oct-07 3:55 
AnswerRe: Instansiating a List(of Double) to nothing or no value Pin
kubben2-Oct-07 5:24
kubben2-Oct-07 5:24 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 5:39
Md Arif2-Oct-07 5:39 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
kubben2-Oct-07 6:26
kubben2-Oct-07 6:26 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 8:08
Md Arif2-Oct-07 8:08 
AnswerRe: Instansiating a List(of Double) to nothing or no value Pin
Guffa2-Oct-07 7:00
Guffa2-Oct-07 7:00 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 7:30
Md Arif2-Oct-07 7:30 
QuestionHelp with UpdatePanel... Pin
Dio222-Oct-07 2:38
Dio222-Oct-07 2:38 
I'm trying to update a drop down list (DropDownList2) after selecting an item from another drop down list (DropDownList1). Both are set to autopostback. I've set the update panel to both conditional and always with the same result. Nothing happens. However, it works without the update panel. So I suppose that is the source of my problem..
Please help me. Smile | :)

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
    //open database connection..
    SqlConnection QADatabase = new SqlConnection();
    QADatabase.ConnectionString = SqlDataSource1.ConnectionString;
    QADatabase.Open();

    //find the records I need to put in the second DropDownList.
    SqlCommand command = new SqlCommand("SELECT Machines FROM Machines WHERE DeptID=" + DropDownList1.SelectedIndex ,QADatabase);

    SqlDataReader reader = command.ExecuteReader();
    while (reader.Read())
    {
        //Add the items to DropDownList..
        DropDownList2.Items.Add((string)reader["Machines"]);
        //Refresh panel..
        UpdatePanel1.Update();
    }
    QADatabase.Close();
}

AnswerRe: Help with UpdatePanel... Pin
kubben2-Oct-07 3:25
kubben2-Oct-07 3:25 
GeneralRe: Help with UpdatePanel... Pin
Dio222-Oct-07 3:37
Dio222-Oct-07 3:37 
GeneralRe: Help with UpdatePanel... Pin
kubben2-Oct-07 3:45
kubben2-Oct-07 3:45 
GeneralRe: Help with UpdatePanel... Pin
Dio222-Oct-07 4:44
Dio222-Oct-07 4:44 
GeneralRe: Help with UpdatePanel... Pin
kubben2-Oct-07 5:22
kubben2-Oct-07 5:22 
Questionhow can I access an iframe from an aspx form Pin
Big Ralph2-Oct-07 1:53
Big Ralph2-Oct-07 1:53 
AnswerRe: how can I access an iframe from an aspx form Pin
N a v a n e e t h2-Oct-07 2:16
N a v a n e e t h2-Oct-07 2:16 
QuestionButtonClick eventhandler for dynamically loaded UserControl fails to catch event. Pin
Larantz2-Oct-07 1:32
Larantz2-Oct-07 1:32 
AnswerRe: ButtonClick eventhandler for dynamically loaded UserControl fails to catch event. Pin
DanB19832-Oct-07 7:42
DanB19832-Oct-07 7:42 
Questionmonth integer into month name Pin
Sonia Gupta2-Oct-07 1:30
Sonia Gupta2-Oct-07 1:30 
AnswerRe: month integer into month name Pin
pmarfleet2-Oct-07 1:41
pmarfleet2-Oct-07 1:41 
GeneralRe: month integer into month name Pin
Sonia Gupta2-Oct-07 1:49
Sonia Gupta2-Oct-07 1:49 
QuestionError in using two Required Field Validator Pin
Dhyanga2-Oct-07 1:09
Dhyanga2-Oct-07 1:09 
AnswerRe: Error in using two Required Field Validator Pin
pmarfleet2-Oct-07 1:36
pmarfleet2-Oct-07 1:36 
GeneralRe: Error in using two Required Field Validator Pin
Dhyanga2-Oct-07 19:46
Dhyanga2-Oct-07 19:46 
AnswerRe: Error in using two Required Field Validator Pin
Imran Khan Pathan2-Oct-07 1:46
Imran Khan Pathan2-Oct-07 1:46 
GeneralRe: Error in using two Required Field Validator [modified] Pin
Dhyanga2-Oct-07 19:32
Dhyanga2-Oct-07 19:32 

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.