0

Hi, I am new in asp.net. I have created an user control containig 3 dropdownlist (date/month/year) now how to get the value of the user control in aspx page.

Thanks in advance.

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by GarryHillton
0

In the page directives at the top of your .aspx page you need to register the user control.

<%@ Register TagName="whatever" TagPrefix="uc" Src="location_of_control_file" %>

then in the page, where you want it to be, you reference it with the tagPrefix and the name. So, in my example it would be:

<uc:whatever id="" runat="server" />
0

You can access user controls through properties. In your User Control code behind create a property (for accessing the controls).

Edited by GarryHillton

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.