CopyPastor

Detecting plagiarism made easy.

Score: 1.8730735912666483; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2012-03-01
by ankit rajput

Original Post

Original - Posted on 2008-10-06
by KyleLanser



            
Present in both answers; Present only in the new answer; Present only in the old answer;

If you just want to fire the OnSelectedIndexChanged, this is how it should look:
Page.aspx - Source
<FooterTemplate> <asp:DropDownList ID="ddlOptions" runat="server" AutoPostBack="true" onselectedindexchanged="ddlOptions_SelectedIndexChanged"> <asp:ListItem>Option1</asp:ListItem> <asp:ListItem>Option2</asp:ListItem> </asp:DropDownList> </FooterTemplate>
Page.aspx.cs - Code-behind
protected void ddlOptions_SelectedIndexChanged(object sender, EventArgs e) { //Event Code here. }

And that's it. Your event will be called now.
If you just want to fire the OnSelectedIndexChanged, this is how it should look:
**Page.aspx - Source**
<FooterTemplate> <asp:DropDownList ID="ddlOptions" runat="server" AutoPostBack="true" onselectedindexchanged="ddlOptions_SelectedIndexChanged"> <asp:ListItem>Option1</asp:ListItem> <asp:ListItem>Option2</asp:ListItem> </asp:DropDownList> </FooterTemplate>

**Page.aspx.cs - Code-behind** protected void ddlOptions_SelectedIndexChanged(object sender, EventArgs e) { //Event Code here. }
And that's it. Nothing more is needed.

        
Present in both answers; Present only in the new answer; Present only in the old answer;