What is Bubble Event ?

Answers were Sorted based on User's Feedback



What is Bubble Event ?..

Answer / mani

Events raised by child control handled by parent control is
called Bubble event

Is This Answer Correct ?    12 Yes 0 No

What is Bubble Event ?..

Answer / sudheer

parent control raised the child control events.ex:In the
grid view we are placing the one dropdown.But dropdown can't
raised the onselectedIndexchanged event.Just follow the
below code
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False"
onrowcommand="GridView1_RowCommand"
onrowdatabound="GridView1_RowDataBound">
<asp:TemplateField>
<ItemTemplate>
<asp:DropDownList ID="ddlItems" runat="server"
DataSource='<% #BindCombo() %>' DataValueField="AuthorID"
DataTextField="author"
OnSelectedIndexChanged="ddlItems_SelectedIndexChanged"
AutoPostBack="true">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
protected System.Data.DataSet BindCombo()
{
System.Data.DataSet ds = new System.Data.DataSet();
ds.ReadXml(Server.MapPath("./XmlFiles/DBFile.xml"));
return ds;
}
protected void ddlItems_SelectedIndexChanged(object sender,
EventArgs e)
{
foreach(GridViewRow row in GridView1.Rows)
{
DropDownList ddlList =
(DropDownList)row.FindControl("ddlItems");
string items = ddlList.SelectedItem.Text.ToString();
}
}

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can you declare the override method static while the original method is non-static?

3 Answers  


Is a dll an assembly?

0 Answers  


What is application object in c#?

0 Answers  


What are the variables in c#?

0 Answers  


Is c# an open source language?

0 Answers  






What does void do in unity?

0 Answers  


How do I declare a pure virtual function in c#?

0 Answers  


Explain the three services model (three-tier application).

3 Answers   4Cplus,


Distinguish between continue and break statement?

0 Answers  


Why do we need escape characters?

0 Answers  


What is Delegate and what is it used for ?

0 Answers   NA,


What are anonymous functions in c#?

0 Answers  


Categories