Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1239
  • Last Modified:

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>
0
riskyricky1972
Asked:
riskyricky1972
1 Solution
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now