Click here to Skip to main content
15,904,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


In a web page i have one grid view,one detail view and few textboxes.
These controls i am using based on my invoice design to print invoice
using Dropdown list i have bind the data value to the detail view.
(customer detil,items,ItemParent this three table have the value for this controls.
all the table linked by fk.)
i am confused here in dropdown list which invoice number selected that related information has to display in all the controls.

could you please help how to bind multipe control?

Thanks
Posted

set below properties for your DropDownlist (AutoPostBack and onselectedindexchanged)

ASP.NET
<asp:dropdownlist id="ddlCustomer" runat="server" autopostback="true" onselectedindexchanged="ddlCustomer_SelectedIndexChanged" xmlns:asp="#unknown"> </asp:dropdownlist>


the onselectedindexchanged event handler is as below

C#
protected void ddlCustomer_SelectedIndexChanged(object sender, EventArgs e)
{ 
  //bind your rest of the controls here, which you want to bind based on selected item of dropdownlist
}
 
Share this answer
 
Comments
Lancy.net 24-Nov-11 8:12am    
Hi Anil thanks for your reply .. using dropdown list i have binded the value to detail view now my issue is grid view and textboxes, any suggestion how to link?
RaviRanjanKr 25-Nov-11 15:36pm    
My 5+
Im sure this one will help you.

http://www.aspnettutorials.com/tutorials/controls/[^][^]

Best regards,
Eduard
 
Share this answer
 
Comments
RaviRanjanKr 25-Nov-11 15:36pm    
My 5+
hi check this link
http://www.aspnettutorials.com/tutorials/controls/[^]

hope it helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900