usercontrol and gridview wizard

Posted on 2007-10-03
Last Modified: 2013-11-07
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">
<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>
Question by:riskyricky1972
    LVL 8

    Accepted Solution

    Define a property in user control and access that property value.

    public string DropdownValue

    Author Comment

    can you show me  the actual codes? I am new for c# 2

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now