Click here to Skip to main content
15,881,812 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWebservice to import data Pin
Priya Prk28-Apr-10 5:05
Priya Prk28-Apr-10 5:05 
AnswerRe: Webservice to import data Pin
T M Gray28-Apr-10 6:37
T M Gray28-Apr-10 6:37 
GeneralRe: Webservice to import data Pin
Priya Prk28-Apr-10 21:05
Priya Prk28-Apr-10 21:05 
QuestionHow to Exprot Vertical Orientated Text Header to Excel Pin
Andraw11128-Apr-10 4:56
Andraw11128-Apr-10 4:56 
QuestionHow to remove the sort link after export gridview to excel Pin
Andraw11128-Apr-10 3:44
Andraw11128-Apr-10 3:44 
AnswerRe: How to remove the sort link after export gridview to excel Pin
Andraw11128-Apr-10 4:14
Andraw11128-Apr-10 4:14 
QuestionDropdownlist control problem Pin
cheguri28-Apr-10 1:56
cheguri28-Apr-10 1:56 
AnswerRe: Dropdownlist control problem Pin
daveyerwin28-Apr-10 2:04
daveyerwin28-Apr-10 2:04 
Here is a simple example concerning updating derop
down list based on selction in another drop down ...

<%@ 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>

AnswerRe: Dropdownlist control problem Pin
Ankur\m/28-Apr-10 2:05
professionalAnkur\m/28-Apr-10 2:05 
AnswerRe: Dropdownlist control problem Pin
Sandesh M Patil28-Apr-10 3:16
Sandesh M Patil28-Apr-10 3:16 
GeneralRe: Dropdownlist control problem Pin
PunkIsNotDead28-Apr-10 20:05
PunkIsNotDead28-Apr-10 20:05 
QuestionEmpting a datagrid before adding new items Pin
Morgs Morgan28-Apr-10 1:35
Morgs Morgan28-Apr-10 1:35 
AnswerRe: Empting a datagrid before adding new items Pin
Arun Jacob28-Apr-10 1:58
Arun Jacob28-Apr-10 1:58 
AnswerRe: Empting a datagrid before adding new items Pin
daveyerwin28-Apr-10 2:07
daveyerwin28-Apr-10 2:07 
AnswerRe: Empting a datagrid before adding new items Pin
GauravKP28-Apr-10 9:59
professionalGauravKP28-Apr-10 9:59 
QuestionUpdate Panel is not working in Google Chrome and Safari Pin
RajeshKalisetti28-Apr-10 0:37
RajeshKalisetti28-Apr-10 0:37 
QuestionCrystal Report Field Length Problem Pin
rhtbhegade28-Apr-10 0:36
rhtbhegade28-Apr-10 0:36 
Questiondelete items Pin
Morgs Morgan28-Apr-10 0:17
Morgs Morgan28-Apr-10 0:17 
AnswerRe: delete items Pin
Brij28-Apr-10 0:24
mentorBrij28-Apr-10 0:24 
GeneralRe: delete items Pin
Morgs Morgan28-Apr-10 1:13
Morgs Morgan28-Apr-10 1:13 
GeneralRe: delete items Pin
Brij28-Apr-10 6:54
mentorBrij28-Apr-10 6:54 
AnswerRe: delete items Pin
Not Active28-Apr-10 0:57
mentorNot Active28-Apr-10 0:57 
QuestionPreviousPage | asp.net 2.0 Pin
Karan_TN27-Apr-10 23:26
Karan_TN27-Apr-10 23:26 
AnswerRe: PreviousPage | asp.net 2.0 Pin
michaelschmitt28-Apr-10 3:42
michaelschmitt28-Apr-10 3:42 
QuestionCrystal Report Formatting with CSS Pin
Shivan Nandan27-Apr-10 21:05
Shivan Nandan27-Apr-10 21:05 

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.