Click here to Skip to main content
15,895,256 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: error "There is already an open DataReader associated with this Command which must be closed 1st." Pin
Christian Graus2-Feb-09 19:13
protectorChristian Graus2-Feb-09 19:13 
GeneralRe: error "There is already an open DataReader associated with this Command which must be closed 1st." Pin
Eunice (VB junior)2-Feb-09 19:25
Eunice (VB junior)2-Feb-09 19:25 
GeneralRe: error "There is already an open DataReader associated with this Command which must be closed 1st." Pin
N a v a n e e t h2-Feb-09 19:26
N a v a n e e t h2-Feb-09 19:26 
GeneralRe: error "There is already an open DataReader associated with this Command which must be closed 1st." Pin
Eunice (VB junior)2-Feb-09 19:28
Eunice (VB junior)2-Feb-09 19:28 
QuestionTreeview Pin
samrat.net2-Feb-09 19:00
samrat.net2-Feb-09 19:00 
AnswerRe: Treeview Pin
Christian Graus2-Feb-09 19:14
protectorChristian Graus2-Feb-09 19:14 
GeneralRe: Treeview Pin
samrat.net2-Feb-09 19:26
samrat.net2-Feb-09 19:26 
QuestionHow to hook up events inside a template Pin
threemp32-Feb-09 18:39
threemp32-Feb-09 18:39 
Hi guys

I have a custom control with a template which basically just acts as a placeholder for controls. Here is example code for how to use the control:-
<cc1:DropDown ID="DropDown1" runat="server">
    <DropDownContentsTemplate>
        <div>
            <asp:CheckBoxList ID="CheckBoxList1" runat="server" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged" AutoPostBack="true">
                <asp:ListItem Text="First Option" Value="1"></asp:ListItem>
                <asp:ListItem Text="Second Option" Value="2"></asp:ListItem>
            </asp:CheckBoxList>
        </div>
    </DropDownContentsTemplate>
</cc1:DropDown>

As you can see the DropDownContentsTemplate is just a placeholder for adding controls. And I've added a CheckBoxList control. The OnSelectedIndexChanged is set a an event in the code-behind and AutoPostBack is set to true, so that it'll postback when the user selects a checkbox. However the event doesn't fire for some reason. I'm assuming there's something special that I need to do with the template. Could someone please tell me what I am missing in order to fire the OnSelectedIndexChanged event.
Thanks
AnswerRe: How to hook up events inside a template Pin
N a v a n e e t h2-Feb-09 18:53
N a v a n e e t h2-Feb-09 18:53 
QuestionProblem with creating a web project Pin
reogeo20082-Feb-09 17:57
reogeo20082-Feb-09 17:57 
AnswerRe: Problem with creating a web project Pin
N a v a n e e t h2-Feb-09 18:28
N a v a n e e t h2-Feb-09 18:28 
GeneralRe: Problem with creating a web project Pin
reogeo20082-Feb-09 18:47
reogeo20082-Feb-09 18:47 
GeneralRe: Problem with creating a web project Pin
N a v a n e e t h2-Feb-09 18:51
N a v a n e e t h2-Feb-09 18:51 
GeneralRe: Problem with creating a web project Pin
reogeo20083-Feb-09 2:41
reogeo20083-Feb-09 2:41 
GeneralRe: Problem with creating a web project Pin
The_Collector4-Feb-09 2:17
The_Collector4-Feb-09 2:17 
QuestionHow to make the html row visible and hidden? Pin
meeram3952-Feb-09 17:43
meeram3952-Feb-09 17:43 
AnswerRe: How to make the html row visible and hidden? Pin
N a v a n e e t h2-Feb-09 18:30
N a v a n e e t h2-Feb-09 18:30 
GeneralRe: How to make the html row visible and hidden? Pin
meeram3952-Feb-09 21:02
meeram3952-Feb-09 21:02 
AnswerRe: How to make the html row visible and hidden? Pin
Ranjit Viswakumar3-Feb-09 5:47
Ranjit Viswakumar3-Feb-09 5:47 
Questioncaching problem with firefox Pin
maltova2-Feb-09 17:11
maltova2-Feb-09 17:11 
AnswerRe: caching problem with firefox Pin
N a v a n e e t h2-Feb-09 17:32
N a v a n e e t h2-Feb-09 17:32 
QuestionProblem with Dropdownlist Pin
sarang_k2-Feb-09 16:25
sarang_k2-Feb-09 16:25 
AnswerRe: Problem with Dropdownlist Pin
Christian Graus2-Feb-09 19:12
protectorChristian Graus2-Feb-09 19:12 
QuestionRedirect to order.aspx after login successfull Pin
Sarfaraj Ahmed2-Feb-09 13:40
Sarfaraj Ahmed2-Feb-09 13:40 
AnswerRe: Redirect to order.aspx after login successfull Pin
Christian Graus2-Feb-09 13:59
protectorChristian Graus2-Feb-09 13:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.