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

How can we insert 100 records @ a time without using for loop into the databse

10 Answers   IBM,


What is the max value of int32 in c#?

0 Answers  


What are the valid parameter types we can pass in an Indexer ?

3 Answers   CMC,


What is overloading and how can this be done ?

4 Answers   MMTS,


What is difference between string and stringbuilder in c#?

0 Answers  






What is difference between method overriding and method overloading?

0 Answers  


How to handle exceptions that are raised in a component?

0 Answers   Alcatel-Lucent,


explain the nature of the assembly work?

0 Answers   HCL,


What is delegates & multicast delegate?

2 Answers   Cognizant,


List the fundamental oop concepts?

0 Answers  


How?s method overriding different from overloading?

2 Answers   Visual Soft,


What is better C# or VB.NET?

0 Answers  


Categories