I want to Display N-Heirarchical Menu using Dynamic Repeater Control along with CheckBoxes.
If Suppose i am having 3 level Menus i need to create 3 Repeaters Dynamically along with CheckBoxes beside of that sub Menus
View Complete Post
I have a grid, in that i have edit button column, If user wants to click on the edit button I need to open a modal window to display the records for the particular row data from database.
And also I am using SMS form to send sms, If user click on the send button I need to open the modal window and to dislpay a preview of the sms from the textbox of the same form.
Please help me to achieve these two functionality.
Thanks in advance.
I am currently in the process of writing a facebook type 'activity feed' for a site. Currently I am binding the last 10 items to a repeater control, which contains a usercontrol representing each item. This works fine but there are a couple of requiremnts that are giving me problems and wondered if the the good people of the forum could make some suggestions.
The requirement is that when a user clicks a refresh button any new events are added to the top of the list, the previous items drop down and the equivalent number of old items drop off the bottom, all with nice slider transitions.
I have put the repeater inside of an update control and are able to handle the transitions by using RegisterStartup script to drop jquery calls onto the page for the slider. However I cannot find a way to dynamically add or remove new datarows to the repeater. I need the old items to stay in the repeater and be pushed down by the new items, so completely refreshing the datasource seems like a bad idea.
I was thinking about maybe storing the datasource in the viewstate and adding rows to that, maybe with an extra column on the end which stores what transition is needed on the databind for my jquery, but there will be a 'View more items' link at the bottom of the page, so I am worried that the list could get pretty large and there
I have a user control (ContainerCtrl) which programmatically instantiates another user control (SimpleCtrl) in OnLoad. It builds and runs fine, but when I publish it I get the error "error BC30002: Type 'ASP.SimpleCtrl' is not defined." (If I publish without the "updateable" option there's no error, but I need the site to be updateable.)
I assume this has to do with the particulars of how the assembly(ies) are built for the different compiler options. My question is, how can I get it to work properly for "updateable" publishing?
VS 2008 / .NET 3.5 sp1
The code follows (web.config is the default from Visual Studio).
Many thanks, Dave
<%@ Control Language="VB" ClassName="SimpleCtrl" CodeFile="SimpleCtrl.ascx.vb" Inherits="_SimpleCtrl" %><div> Simple control</div>
Partial Class _SimpleCtrl Inherits UserControl 'Nothing to see here.End Class
<%@ Control Language="VB" CodeFile="ContainerCtrl.ascx.vb" Inherits="_ContainerCtrl"
I want to get the names of some folders in my drive and populate my menu control with the names of those folders.
Getting the folder names is not the issue, but how can i populate my menu with the names of getted foldernames.
I tried this:
DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("~\\MyFolders\\"));
DirectoryInfo dirs = dirInfo.GetDirectories();
Menu1.DataSource = dirs;
But im getting the error:
HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.
How can i achieve this?
I'm building a user control to display detail information on a parent record. The user control will be displayed via an Ajax Modal Popup. The user control works and is displayed when expected. The problem that I'm having is that I'm not able to pass in the primary key for the parent. The control is displayed via the _ItemCommand event of a Repeater. In the markup for the user control, I explicity set the ContactId to 0 to avoid an error when the control loads (its still underdevelopment, eventually that I'll check if the value is valid).
I was assuming that I could change the property in the _ItemCommand event, but obviously its not working.
In the Page_Load event this code successfully sets the ContactId property of the control. The _ItemCommand event appears to set the value. However when I set a test label on the user control to the Me.ContactId, its showing '0' as if it was never passed in.
UserControlContactDetail.ContactId = "1462"
test.Text = UserControlContactDetail.ContactId
Protected Sub RepeaterDirectory_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles RepeaterDirectory.ItemCommandProtected Sub RepeaterDirectory_ItemCommand(By
I am trying to find a child control from a repeater control's child control. I have the following structure like a top control is a repeater, below which is a Panel and below this is a DateControl(custom control).
I want to find the DateControl.
<asp:Repeater runat="server" ID="rptMembers" <ItemTemplate> <asp:Panel ID="pnlAddDependent"
<xyz:DateControl runat="server" ID="dfDepBirthDate"
When iam trying like this, i am getting the "Object Reference not set error". Please help, it is urgent.
Hello, I'm new to ASP.NET 3.5 with C#. I really need some help.
I used a Repeater control to create a simple (editable) list where, when a user logs in, they can edit their list of expenses. The ASP page works fine.
My issue is with the code-behind. I am really confused with how to extract the values from the repeater control. The FindControl method does not seem to be working. Also, the code I am using resets my 'Amount' values back to 0.00. (0.00 is the amount the user sees when they first encounter the page).
Here's a portion of the code on the ASP page:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"
<td><asp:Label ID="lblExpId" runat="server" Text='<%# Bind("ExpId") %>'></asp:Label> </td>
<td><asp:Textbox ID="lblExpense" runat="server" Width= "190px" Text='<%# Bind("ExpenseName") %>'></asp:Textbox> </td>
<td><asp:Textbox ID="txtAmount" runat="server" Width= "100px"
I am wondering if the Microsoft Report Viewer control allows for display changes. Say for instance a user wants would like to see all the data requested then another time would like to toggle thru the pages of infomation. So does anyone know if the control allows for display changes from complete view to paginated viewing. I am using MS VS 2008 with ASP.NET 3.0. Thanks for your response.