or
<%@ 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
<telerik:RadMediaPlayer ID="RadMediaPlayer1" runat="server" Text="RadMediaPlayer" Height="281px" Width="500px"> <Sources> <%-- <telerik:MediaPlayerSource Path="http://www.youtube.com/watch?v=QuuUn2tm5wY" />--%> <telerik:MediaPlayerSource Path="C:/code/dotnet4/PAPortal/files/voxeo/Confirmed By Recipient_12820-469398-cfc3410d2d1bcf81e8decaf11e87dafd-0-ReminderID-4578795.wav" /> </Sources>
</telerik:RadMediaPlayer>
.rdExpand, .rdCollapse, .rdCollapsed { background-position: 0px 0px !important; height:60px !important;}.RadDock.rdCollapsed { height: 27px!important;}div.rdExpand, div.rdCollapse, div.rdCollapsed { background-position: 0px 0px !important; height:60px !important;}<telerik:RadScriptManager ID="manager" runat="server"></telerik:RadScriptManager> <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"> <telerik:RadComboBox ID="userInput" runat="server" AllowCustomText="True" CausesValidation="false" ShowToggleImage="False" ShowMoreResultsBox="true" EnableLoadOnDemand="True" MarkFirstMatch="True" OnItemsRequested="LoadSearch" ErrorMessage="Value not Found" AutoPostBack="True" Width="300"> <CollapseAnimation Duration="1000" Type="InBack" /> </telerik:RadComboBox></telerik:RadAjaxPanel> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" SkinID="Hay" Height="25px" Transparency="1" BackgroundPosition="Center" > <img alt="Loading..." src="../images/loading.gif" style="border: 0px;" /> </telerik:RadAjaxLoadingPanel>protected void Page_Load(object sender, EventArgs e){ if (!Page.IsPostBack) { userInput.DataSource = GetCustomers(); userInput.DataValueField = "Key"; userInput.DataTextField = "Value"; userInput.DataBind(); }//if !page.ispost}//PageLoadprotected void LoadSearch(object sender, RadComboBoxItemsRequestedEventArgs e){ //get the list based on the search IEnumerable<Vw_CustomersSearchView> customers = DbRepository.GetCustomersSearchView().Where(c => c.Customer.Contains(e.Text)); //how many items we'll show int itemsPerReq = 10; //keep count of the items int count = 0; RadComboBox box = (RadComboBox)sender; box.Items.Clear(); //make sure we have at least one record if (customers.Count() > 0) { //now add any customer items foreach (var i in customers) { //if we're above 10, exit the loop if (count >= itemsPerReq) { break; }//if count > itemsper //if we're here, add the items box.Items.Add(new RadComboBoxItem(i.Customer, i.UserName)); count++; }//foreach }//if customers.count else { e.Message = "No matches"; }}//LoadSearch/// <summary>/// this returns a dictionary of the customers for the customer dropdown/// </summary>/// <returns></returns>protected Dictionary<string, string> GetCustomers(){ Dictionary<string, string> customersList = new Dictionary<string, string>(); //now add the items var cTable = DbRepository.GetActiveCustomers().Where(a => a.LoyaltyCardNumber != null).Select(a => new {a.UserName, a.FirstName, a.LoyaltyCardNumber, a.LastName}); foreach (var i in cTable) { string name = String.Format("{0}{1}{2}{3}{4}", i.FirstName, " ", i.LastName, " - ", i.LoyaltyCardNumber); customersList.Add(i.UserName, name); }//foreach return customersList;}//GetCustomers/// <summary>/// if they picked an item in the combox box, repopulate it/// </summary>/// <param name="sender"></param>/// <param name="e"></param>protected void userInput_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e){ userInput.DataSource = GetCustomers(); userInput.DataValueField = "Key"; userInput.DataTextField = "Value"; userInput.DataBind();}//resetPasswordButtonClick