What is Bubble Event ?
Answers were Sorted based on User's Feedback
Answer / mani
Events raised by child control handled by parent control is
called Bubble event
| Is This Answer Correct ? | 12 Yes | 0 No |
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 |
What are constructors in c#?
What are the Types of optimization and name a few and how do u do?
What is .cs file in c#?
Can scriptable objects have methods?
What type of data type conversion happens when the compiler encounters the following code?
What is a partial class in c#?
I have a class declared as below public class a { public void add() {} } What is the diference between a a1 =new a; and simply a a1;
Can properties be static in c#?
What is the difference between a class and an object c#?
what is a structure in c#
What is the difference between abstract and abstraction?
What is string pool in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)