or
| Protected Sub txtEditPileDia_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) |
| Try |
| objDetailInfo = New NDSBLL.DetailInfo |
| objDetailDal = New NDSDAL.DetailDal |
| Dim txtNewPileDia As TextBox |
| Dim txtLinkStart As TextBox |
| Dim txtLinkEnd As TextBox |
| 'Dim txtAdditionalSpiral As TextBox |
| Dim intIndex As Integer = ???? |
| txtNewPileDia = DirectCast(gvStructDetails.Rows(intIndex).FindControl("txtPileDia"), TextBox) |
| txtLinkStart = DirectCast(gvStructDetails.Rows(intIndex).FindControl("txtEditNoLinksStart"), TextBox) |
| txtLinkEnd = DirectCast(gvStructDetails.Rows(intIndex).FindControl("txtEditNoLinksEnd"), TextBox) |
| 'txtAdditionalSpiral = DirectCast(gvStructDetails.Rows(intIndex).FindControl("txtEditNoAdditionalSpiral"), TextBox) |
| If ((Not txtLinkStart Is Nothing) And (Not txtLinkEnd Is Nothing) And (Not txtNewPileDia Is Nothing)) Then |
| PopulateLinksValues(txtNewPileDia, txtLinkStart, txtLinkEnd) |
| End If |
| Catch ex As Exception |
| ErrorHandler.RaiseError(ex, strPath) |
| End Try |
| End Sub |
| Protected Sub DataList_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles DataList.ItemDataBound |
| Select Case e.Item.ItemType |
| Case ListItemType.Item, ListItemType.AlternatingItem |
| Dim myRow As DataRowView = CType(e.Item.DataItem, DataRowView) |
| Dim hype As HyperLink = e.Item.FindControl("DatalistHyperlink") |
| If myRow.Item("category") = "General" Then |
| hype.NavigateUrl = "default.aspx?NewsID=" & myRow.Item("NewsID") |
| Else |
| hype.NavigateUrl = "subpages/" & myRow.Item("category") & ".aspx?NewsID=" & myRow.Item("NewsID") |
| End If |
| End Select |
| End Sub |
| <telerik:RadGrid ID="RadGrid1" Width="100%" Height="450px" AllowPaging="True" PageSize="15" |
| runat="server" AllowSorting="False" OnNeedDataSource="RadGrid1_NeedDataSource" |
| GridLines="None" AllowFilteringByColumn="False" ShowGroupPanel="False" EnableHeaderContextMenu="False" |
| OnColumnCreated="RadGrid1_ColumnCreated" OnColumnCreating="RadGrid1_ColumnCreating" |
| OnDataBound="RadGrid1_DataBound" OnPreRender="RadGrid1_PreRender" EnableViewState="false" |
| OnItemDataBound="RadGrid1_ItemDataBound"> |
| <HeaderContextMenu EnableAutoScroll="True"> |
| </HeaderContextMenu> |
| <MasterTableView Width="100%" AutoGenerateColumns="true" EnableColumnsViewState="false" TableLayout="Auto" /> |
| <PagerStyle Mode="NextPrevAndNumeric" |
| FirstPageImageUrl="/images/pagingfirst.gif" |
| LastPageImageUrl="/images/paginglast.gif" |
| NextPageImageUrl="/images/pagingnext.gif" |
| PrevPageImageUrl="/images/pagingprev.gif" /> |
| <ClientSettings AllowColumnsReorder="False" AllowDragToGroup="False" ReorderColumnsOnClient="False" |
| Resizing-AllowColumnResize="True" Resizing-AllowRowResize="False" Resizing-ClipCellContentOnResize="False" |
| Resizing-EnableRealTimeResize="True" Resizing-ResizeGridOnColumnResize="True"> |
| <Scrolling AllowScroll="True" UseStaticHeaders="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="False"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |