usercontrol asp.net and gridview wizard

The following code has usercontrol and inside of the usercontrol is just a dropdown box that I have. I also want to create gridview though
Gridview wizard and want to pass one value from the dropdown usercontrol to the gridview. How can I find that dropdown name and send to the gridview?


<%@ Page Language="C#" MasterPageFile="~/MasterPageSecure.master" AutoEventWireup="true" CodeFile="AdvancedSearch_byproducttype.aspx.cs" Inherits="Secure_AdvancedSearch_byproducttype" Title="Untitled Page" %>

<%@ Register Src="../UserControls/ProductTypeList.ascx" TagName="ProductTypeList"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table>
<tr><td colspan="2"><uc1:ProductTypeList ID="ProductTypeList1" runat="server" /></td></tr>
<tr><td style="width: 80px"><br /></td><td><asp:Button ID="btnsearch" runat="server" Text="Search" /></td></tr>
<tr><td colspan="2"><asp:GridView ID="GridView1" runat="server"></asp:GridView></td></tr>
</table>
</asp:Content>
riskyricky1972Asked:
Who is Participating?
 
sabeeshCommented:
Define a property in user control and access that property value.

public string DropdownValue
{
get
{}
set
{}
}
0
 
riskyricky1972Author Commented:
can you show me  the actual codes? I am new for c# asp.net 2
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.