I have the dropdown list in the web page.When a value is selected from the drop down ,that value shud be sent to .ascx page and it shud populate the gridview and load that user control on web page.anybody plz help me.
I have the dropdown list in the web page.When a value is selected from the drop down ,that value shud be sent to .ascx page and it shud populate the gridview and load that user control on web page.anybody plz help me.
Hi,
You can do that following steps below:
- Create a method in .ascx.cs file with input param as string
- In this method populate grid by using input passed
- From the main file on SelectedIndexChange event of drop down call function created in .ascx.cs file as UserControlClassName.MethodNameand pass the selected item as input param
I assume u r using C#.
Try this if u still have some problem then post ur problems.
---V V---
Vikas Vaidya
Please mark this post as Thank if u found the answer useful
The solution above sounds good... Can we implement it using Event handler?