Click here to Skip to main content
15,917,568 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncreate subdomain by programming??????????????? Pin
mr.mohsen2-Oct-07 10:27
mr.mohsen2-Oct-07 10:27 
Questionreturning @@identity [modified] Pin
Dio222-Oct-07 9:15
Dio222-Oct-07 9:15 
AnswerRe: returning @@identity Pin
Guffa2-Oct-07 9:36
Guffa2-Oct-07 9:36 
QuestionYahoo Develope Technology Pin
mehrdadc482-Oct-07 7:31
mehrdadc482-Oct-07 7:31 
QuestionHow to add asp controls to custom control Pin
Sandeep Akhare2-Oct-07 6:35
Sandeep Akhare2-Oct-07 6:35 
AnswerRe: How to add asp controls to custom control Pin
talasila802-Oct-07 10:02
talasila802-Oct-07 10:02 
Questionjavascript to validate radiobutton list Pin
dukuria2-Oct-07 4:52
dukuria2-Oct-07 4:52 
AnswerRe: javascript to validate radiobutton list Pin
Sandeep Akhare2-Oct-07 6:55
Sandeep Akhare2-Oct-07 6:55 
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 

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.