View Complete Post
I have a templated user control with single instance template attribute. It works great for everything except the following scenario:
<asp:UpdatePanel ID="upDirectoryBrowser" runat="server">
<asp:AsyncPostBackTrigger ControlID="fsBrowser" EventName="FolderSelected" />
<asp:AsyncPostBackTrigger ControlID="flsBrowser" EventName="FileSelected" />
<asp:AsyncPostBackTrigger ControlID="flsBrowser" EventName="LinkSelected" />
<td style="width: 230px;">
<ntc:FolderSelector ID="fsBrowser" runat="server" OnFolderSelected="fsBrowser_FolderSelected"
<ntc:FileSelector ID="flsBrowser" runat="server" OnFileSelected="flsBrowser_FileSelected"
I have a repeater which contains a hidden link button that fires when I click a row in my repeater.
Here is the markup for my repeater:
<div id="divResults" style="height: 290px; overflow-y: auto;"><asp:Label ID="lblNote" runat="server" Text="Note: select a row to edit."></asp:Label><asp:Repeater ID="rptLocations" runat="server" onitemdatabound="rptLocations_ItemDataBound"> <HeaderTemplate> <table width="100%" cellspacing="1" cellpadding="3"> <tr> <th style="width:30%;">SEAT</th> <th style="width:65%;">Establishment</th> <th style="width:5%;"></th> </tr> </HeaderTemplate> <ItemTemplate> <tr id="trResults" runat="server"> <td> <asp:LinkButton ID="lbtn_SelectRow" runat="server" OnClick="SetLocationControls"/> <-----me
I am writing an application that requires a recursive programatic creation of a repeater multiple times inside of itself, working in vs 2005, asp.net 2.0 and visual basic.
it looks like this
placeholder contains a repeater I create programatically which inturn also looks like
that placeholder refers to the programtically created repeater. Thus the process is recursive and can grow based on user interaction.
So far I have been able to have the "runtime created" repeater be generated and I have even been able to bind data to objects inside of the repeater which was good progress.
so while the programatically created repeater appears to be working as expected I am having a difficult time getting repeater objects (in this case a linkbutton) to fire a command - which would typically be set in markup as CommandName="fire" (susbtitue 'fire' for whatever you like)
in markup it's easy to set a repeaters onItemCommand equal to an appropriate function/sub but since there is not markup as the repeater is created on demand in codebehind this is not an option.
I suspected repeater.ItemCommand mi
I have a dropdownlist in a repeater and it's firing the SelectedIndexChanged event but in teh event handler I can not get the dataitem associated with the row that the DDL is in. Here is the code:
i have been trying to make my onItemCommand at the datagrid to work but it doesnt seem to work... the thing is i dont see any error any all... could somebody give me a hint where i may be wrong... below are my code
Partial Public Class prodShoppingCart
Dim ds As DataSet
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Public Sub getGridList()
Dim tourID As String = Integer.Parse(Session.Item("tourIDforTS"))
Dim strConn As String = ConfigurationManager.ConnectionStrings("ProrsumDBConnectionString").ConnectionString
'create sql connection
Dim myConn As New SqlConnection(strConn)
Dim myAdp As SqlDataAdapter
'Open connection; Note: You need to open a connection to database
Dim cmd As String = "SELECT sessionID, " & _
" dates, " & _
" availability, " & _
" status " & _
I have Repeater, which consists of LinkButon and Literal.ÃÂ LinkButon and Literal are whole thing by implication. I want get value from Literal, when user click onÃÂ corresponding LinkButton.