what changed do I need to make to my code for it to achieve what I'm after.
At the moment I am getting a "cannot cast to type" error message with the below code.
I have also tried calling the ItemDataBound method in with the parent repeater tags and had no errors but when I clicked on the button it would just move back to the top of the page and would not hide or show any data. Also I have made the div style to none but the first record still shows its child but the rest don't.
I am using this to display CollapsiblePanelExtender but it's not working ad I dont know why? there is no error and it workes when i set theCollapsed to True or False but not working when I run and want the user to click roCollapsed or Expand?
i am using CollapsiblePanelExtender and button to open pdf document using response.document in same form. CollapsiblePanelExtender works fine before i click button to open pdf document using response.write and once i click on button CollapsiblePanelExtender does not work.
I am using a CollapsiblePanelExtender inside a ListView and aside from one minor, but annoying problem, it works fine. The problem is, when the page first renders, I see all the panels expanded for a short moment before they all get collapsed. There are multiple CPEs because the ListView is databound to about 45 records. I have the Collapsed=True, and based on some not-quite-clear documentation, I also set the CollapsedSize=0 and the panel's Height=0. After that last change (panel height), they are now displaying collapsed except that the gridviews inside the target panel is still showing in a sort of overlapped way. I'd upload a picture so you can see, but I don't think I can in this forum. Since the page looks like this for about a half-second, it's enough to confuse and annoy my users (and myself). Can someone please help me set this up to truly show collapsed when the page loads?
I did also try looking at the code in the AJAX Toolkit's sample website but I still don't quite understand "Collapsed - Specifies that the object should initially be collapsed or expanded. Set this to match your initial size. In this case, we initially set the panel to a height of 0 to match the CollapsedSize property, so when the page first renders, we don't see the panel expanded." If the options are True/False, why does it say to set this to match your initial size? And I did set the panel height to 0 to match the collapsedsize and it's just not working.
I have made a user control using CollapsiblePanelExtender control. I am getting a small issue, that the panel that expands is not relative to the control. It always open on left side of the page. My control is in different location in different pages. How can I make sure that the expand and collapse is with respect to the control? I see "left: -36px" in the style attribute of "SettingsContentPanel". How can it be relative and doesn't break the code.
I am trying to follow this tutorial(out of date) but the simplest I can find and understand to put a repeater or datagrid inside of a datalist.http://www.tutorialized.com/view/tutorial/DataGrid-inside-a-DataGrid/13926I get hung up in the cs part. Can I just add a sql datasource to the aspx page then call it from the cs like this somehow...my
aspects of some controls in Code Behind (VB) with controls inside a datalist and/or repeater. I have read a lot of stuff on using some tricks but none seem to work so far. I am new to ASP.net so some of the explanations are too cryptic as well. Below is a section of code that I am trying to change. This example is attempting to make the label visible if the dataitem is true and hidden if false. No matter what I seem to do I cann't reference this label to change. I also want to change the text on some other controls in this dataitem if the returned value is a certain value.
the output I am getting at the moment, is my parent data displays along with my child data. However when I click on the button to toggle the views i am getting a "cannot cast type error"I have also tried to put the itemdatabound event in my parent repeater tag, that worked but when I click on the buttons it just keeps moving to the top of the page and won't hide or show any of the child data except for the first child of the first parent.
<%@Page Language="VB" EnableEventValidation="false"%> <%@Import Namespace="System.Data" %> <%@Import Namespace="System.Data.OleDb" %> <script runat="server"> Dim ds As DataSet, divdtls, btnview, repeat Sub ItemDataBound [code]...
I added a (Read More...) Div to my repeater's item template, that doesn't contain any information.
I don't want to post my code, because I'm sure it's an easy and essential trick for any developer...so I was hoping for an original example not an edit to my test code(beginners logic)
before in my asp code, calling some public function in the codebehind. But now I'm trying to do this from within a repeater item. The message I receive from the compiler is: "The name 'somefunction' does not exist in the current context." Error 97 The name 'getclass' does not exist in the current context 169