Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Accesing embedded controls?? (http://www.velocityreviews.com/forums/t755572-accesing-embedded-controls.html)

ozgur develioglu 07-21-2003 06:57 AM

Accesing embedded controls??
 
Hi,

I've a DropDownList in the header part of a template column, but I can't
learn what value is selected with it. Here is my code:

<asp:TemplateColumn>
........
<HeaderStyle BorderWidth="1px"
BorderColor="#585D70"></HeaderStyle>
<HeaderTemplate>
Gösterilen:&nbsp;
<asp:DropDownList id="ddlPageItemCount" runat="server"
Width="40px" OnSelectedIndexChanged="deneme"
AutoPostBack="True">
<asp:ListItem Value="10"></asp:ListItem>
<asp:ListItem Value="20"></asp:ListItem>
<asp:ListItem Value="50"></asp:ListItem>
</asp:DropDownList>
</HeaderTemplate>
.......
</asp:TemplateColumn>

I've tried:
DropDownList ddl= (DropDownList) FindControl("ddlPageItemCount");

but ddl becomes null;
Please help!!!




All times are GMT. The time now is 02:24 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57