Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLMS Pin
quioske10-Apr-10 2:55
quioske10-Apr-10 2:55 
AnswerRe: LMS Pin
Abhijit Jana11-Apr-10 3:27
professionalAbhijit Jana11-Apr-10 3:27 
QuestionHow can bind my dropdown inside ajaxPro method? Pin
Jeneesh K. Velayudhan10-Apr-10 2:30
Jeneesh K. Velayudhan10-Apr-10 2:30 
AnswerRe: How can bind my dropdown inside ajaxPro method? Pin
Not Active10-Apr-10 2:38
mentorNot Active10-Apr-10 2:38 
GeneralRe: How can bind my dropdown inside ajaxPro method? Pin
Jeneesh K. Velayudhan14-Apr-10 0:19
Jeneesh K. Velayudhan14-Apr-10 0:19 
AnswerRe: How can bind my dropdown inside ajaxPro method? Pin
daveyerwin10-Apr-10 7:48
daveyerwin10-Apr-10 7:48 
GeneralRe: How can bind my dropdown inside ajaxPro method? Pin
Jeneesh K. Velayudhan14-Apr-10 0:18
Jeneesh K. Velayudhan14-Apr-10 0:18 
GeneralRe: How can bind my dropdown inside ajaxPro method? Pin
daveyerwin14-Apr-10 2:38
daveyerwin14-Apr-10 2:38 
<%@ Page Language="C#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script runat="server">
    protected void Button1_Click(object sender, EventArgs e)
    {              
        DropDownList1.Items.Clear();
        String[] ds = {"hi RED","sup RED"};
        String[] ds1 = { "hi BLUE", "sup BLUE" };
        if (DropDownList2.SelectedValue == "RED")
        {
            DropDownList1.DataSource = ds;
            DropDownList1.DataBind(); 
        }
        if (DropDownList2.SelectedValue == "BLUE")
        {
            DropDownList1.DataSource = ds1;
            DropDownList1.DataBind();
        } 
    }
        </script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
    #UpdatePanel1 {       width:300px; height:100px;     }    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="padding-top: 10px">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <fieldset>
                <legend>UpdatePanel</legend>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>RED</asp:ListItem>
                    <asp:ListItem>BLUE</asp:ListItem>
                    </asp:DropDownList>
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
                </fieldset>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        </div>
        </div>
    </form>
</body>
</html>

Questionupdate panel issue Pin
trilokharry10-Apr-10 0:14
trilokharry10-Apr-10 0:14 
AnswerRe: update panel issue Pin
Not Active10-Apr-10 1:00
mentorNot Active10-Apr-10 1:00 
GeneralRe: update panel issue Pin
trilokharry10-Apr-10 1:43
trilokharry10-Apr-10 1:43 
GeneralRe: update panel issue Pin
Not Active10-Apr-10 2:11
mentorNot Active10-Apr-10 2:11 
Questionget bind Data only in postback Pin
Abdul Rahman Hamidy9-Apr-10 23:07
Abdul Rahman Hamidy9-Apr-10 23:07 
AnswerRe: get bind Data only in postback Pin
Brij9-Apr-10 23:23
mentorBrij9-Apr-10 23:23 
GeneralRe: get bind Data only in postback Pin
Abdul Rahman Hamidy9-Apr-10 23:26
Abdul Rahman Hamidy9-Apr-10 23:26 
GeneralRe: get bind Data only in postback Pin
nish11112-Apr-10 1:08
nish11112-Apr-10 1:08 
QuestionBinding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 20:06
SreejithKumar M9-Apr-10 20:06 
AnswerRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 20:55
mentorBrij9-Apr-10 20:55 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 21:14
SreejithKumar M9-Apr-10 21:14 
GeneralRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 22:41
mentorBrij9-Apr-10 22:41 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 23:03
SreejithKumar M9-Apr-10 23:03 
GeneralRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 23:13
mentorBrij9-Apr-10 23:13 
AnswerRe: Binding Gridview with data from String array Pin
Abhijit Jana9-Apr-10 22:23
professionalAbhijit Jana9-Apr-10 22:23 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 23:04
SreejithKumar M9-Apr-10 23:04 
QuestionManaging session Pin
krishnaveer9-Apr-10 19:56
krishnaveer9-Apr-10 19:56 

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.