or
<
tlrk:RadEditor
ID
=
"D0_RadArticle"
runat
=
"server"
Width
=
"680px"
Height
=
"376px"
ToolsFile
=
"~/XML/Editor/HelpEditor.xml"
ImageManager-ViewPaths
=
"~/Images/Help"
AnchorPathToStrip
=
"ihs201"
StripAbsoluteAnchorPaths
=
"true"
/>
<%@ Control Language="c#" Inherits="ucBBucket" CodeFile="ucBBucket.ascx.cs" %>
<
asp:ScriptManagerProxy
ID
=
"ScriptManagerProxy1"
runat
=
"server"
>
</
asp:ScriptManagerProxy
>
<
telerik:RadAjaxManagerProxy
ID
=
"RadAJAXManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rgBene"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgBene"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
table
width
=
"100%"
cellpadding
=
"0"
cellspacing
=
"0"
border
=
"0"
>
<
tr
>
<
td
>
<
telerik:RadGrid
ID
=
"rgBene"
runat
=
"server"
GridLines
=
"Vertical"
AllowPaging
=
"true"
AllowAutomaticUpdates
=
"false"
AllowAutomaticInserts
=
"false"
AutoGenerateColumns
=
"False"
EnableLinqExpressions
=
"false"
AllowSorting
=
"true"
AllowAutomaticDeletes
=
"false"
Skin
=
"MBen"
EnableEmbeddedSkins
=
"false"
DataSourceID
=
"_dataSrcBene"
ShowFooter
=
"true"
AllowCustomPaging
=
"false"
AllowFilteringByColumn
=
"false"
Width
=
"100%"
PageSize
=
"15"
ImagesPath
=
"../App_Themes/Grid"
>
<
MasterTableView
TableLayout
=
"Fixed"
HierarchyDefaultExpanded
=
"true"
EditMode
=
"PopUp"
CommandItemDisplay
=
"None"
DataKeyNames
=
""
PagerStyle-Position
=
"Bottom"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Type"
UniqueName
=
"Type"
HeaderText
=
"Type"
HeaderStyle-Width
=
"25%"
SortExpression
=
"Type"
/>
<
telerik:GridBoundColumn
DataField
=
"Percent"
UniqueName
=
"Percent"
HeaderText
=
"Percentage"
SortExpression
=
"Percent"
HeaderStyle-Width
=
"10%"
/>
<
telerik:GridBoundColumn
DataField
=
"Bene"
UniqueName
=
"Bene"
HeaderText
=
"Bene"
SortExpression
=
"Bene"
/>
<
telerik:GridBoundColumn
DataField
=
"Relationship"
UniqueName
=
"Relationship"
HeaderText
=
"Relationship"
SortExpression
=
"Relationship"
HeaderStyle-Width
=
"12%"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
td
>
</
tr
>
</
table
>
<
asp:ObjectDataSource
ID
=
"_dataSrcBene"
runat
=
"server"
SelectMethod
=
"ListByParticipant"
OnSelected
=
"_dataSrcBene_Selected"
>
<
SelectParameters
>
<
asp:ProfileParameter
Name
=
"ParticipantID"
PropertyName
=
"ParticipantID"
DefaultValue
=
"-1"
Type
=
"Int32"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
Dim DocumentServiceWS As New DocumentServices
Dim pdfFile As Byte()
pdfFile = DocumentServiceWS.GetDRDocumentPDF(_PRO, _DocType)
If Not (pdfFile Is Nothing) Then
Response.Buffer = True
Response.Clear()
Response.ContentType = "application/PDF"
Response.AddHeader("Content-Disposition:", "attachment; filename=Result.pdf")
Response.BinaryWrite(pdfFile)
Response.Flush()
Response.End()
End If