We help IT Professionals succeed at work.

usercontrol asp.net and gridview wizard

1,296 Views
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">
<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>
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
can you show me  the actual codes? I am new for c# asp.net 2
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.