Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Accesing embedded controls

Reply
Thread Tools

Accesing embedded controls

 
 
ozgur develioglu
Guest
Posts: n/a
 
      07-21-2003
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;
<aspropDownList 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>
</aspropDownList>
</HeaderTemplate>
.......
</asp:TemplateColumn>

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

but ddl becomes null;
Please help!!!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded languages based on early Ada (from "Re: Preferred OS, processor family for running embedded Ada?") Colin Paul Gloster VHDL 48 04-10-2007 10:31 AM
accesing controls in code-behind R.A.M. ASP .Net 2 12-20-2006 05:28 PM
How to display images embedded in e-mail as embedded, not attachments Jim Firefox 4 12-11-2004 05:36 AM
Accesing embedded controls?? ozgur develioglu ASP .Net Building Controls 0 07-21-2003 06:57 AM
Accesing embedded controls ozgur develioglu ASP .Net Web Controls 0 07-21-2003 06:56 AM



Advertisments