

<telerik:RadAsyncUpload runat="server" ID="rad_upload" Skin="Default" OnClientFileUploadFailed="onUploadFailed"<br> OnClientFileSelected="onFileSelected" OnClientFileUploaded="onFileUploaded" Culture="Arabic" TemporaryFileExpiration="00:07:00" > <Localization Select="اختر" /> </telerik:RadAsyncUpload> List<Attachment> attach = new List<Attachment>(); if (rad_upload.UploadedFiles != null && rad_upload.UploadedFiles.Count > 0){; foreach (UploadedFile file in rad_upload.UploadedFiles){; Attachment f = new Attachment(Server.MapPath("~/App_Data/RadUploadTemp/") + file.GetName(), file.ContentType); attach.Add(f); }
How do I get search engine results programatically? Some search engines use AJAX to display content and so the URL does not change. This makes it difficult to get result content from a search engine programatically.
Most search engines do not use AJAX. But two popular ones that I am interested in is YANDEX and DUCKDUCKGO. Both of these search engines use AJAX to advance beyond the first page of results. How do I find a way to programatically access these pages?
Hi,
since the sql select using the radcombox charged over 1000 records, you can upload a video, when I open the radcombobox, only 10 records at a time? And then you decide to continue to view other records.
Maybe I need to use the property ShowMoreresultsBox = True?
My side code vb net is:
Protected Sub RadComboBox1_ItemsRequested(sender As Object, e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles RadComboBox1.ItemsRequestedDim sqlSelectCommand As String = "SELECT [id], [descrizione] from [tab_categorie] WHERE [descrizione] LIKE @desc + '%' Order By [descrizione]"Dim adapter As New SqlDataAdapter(sqlSelectCommand, ConfigurationManager.ConnectionStrings("TrycontactString").ConnectionString) adapter.SelectCommand.Parameters.AddWithValue("@desc", e.Text) Dim dataTable As New DataTable() adapter.Fill(dataTable) For Each dataRow As DataRow In dataTable.Rows Dim item As New RadComboBoxItem() item.Text = DirectCast(dataRow("descrizione"), String)item.Value=dataRow("id").ToString()radComboBox1.Items.Add(item) item.DataBind() Next
End Sub
While the ASP side code is:
<telerik:RadComboBox ID="RadComboBox1" Runat="server" DropDownWidth="325px" EmptyMessage="Choose a Catogory" EnableLoadOnDemand="true" Filter="Contains" Height="150" HighlightTemplatedItems="true" OnItemsRequested="RadComboBox1_ItemsRequested" Width="325px" ErrorMessage="Dato errato" IsCaseSensitive="True"></telerik:RadComboBox>

<%@ Page Title="" Language="C#" MasterPageFile="~/ABBMaster.Master" AutoEventWireup="true" CodeBehind="UserScheduler.aspx.cs" Inherits="HolidayTracker.User.UserScheduler" %><asp:Content ID="Content1" ContentPlaceHolderID="MainRegionContentPlaceHolder" runat="server"> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function Export(sender, e) { $find("<%= RadAjaxManager1.ClientID %>").__doPostBack(sender.name, ""); } </script> </telerik:RadCodeBlock> <style type="text/css"> .RadScheduler .rsExportButton { position: absolute; bottom: 0; right: 0; border: 0; height: 24px; width: 24px; background: url('exportButtonli.gif') no-repeat center center; } .RadScheduler .rsAllDayRow .rsExportButton { right: 20px; height: 16px; width: 16px; bottom: 20px; background: url('exportButton.gif'); } #Label1Panel { display: inline !important; } .lblError { background: #CC0000; border: 1px solid darkred; color: white; font: bold 16px "Segoe UI", Arial, sans-serif; vertical-align: middle; display: none; height: 30px; line-height: 28px; position: absolute; padding-left: 5px; width: 743px; z-index: 1001; cursor: pointer; opacity: 0.9; -moz-opacity: 0.9; filter: alpha(opacity=90); } .rsCustomAppointmentContainer div { width: 100% !important; } .rsCustomAppointmentContainer h2 { overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important; } </style> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadScheduler1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="Label1"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <asp:Label ID="Label1" runat="server" CssClass="lblError"></asp:Label> <div style="margin: 5px 0"> <asp:ImageButton runat="server" ID="Button2" ImageUrl="exportButton.gif" AlternateText="Export All to Lotus Notes" OnClientClick="Export(this, event); return false;" OnClick="Button2_Click"></asp:ImageButton> </div> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" InitialDelayTime="200"> </telerik:RadAjaxLoadingPanel> <div class="exampleContainer"> <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" DayStartTime="07:00:00" DayEndTime="18:00:00" DataSourceID="SqlDataSource1" DataKeyField="VacationDayId" DataSubjectField="Title" DataStartField="FromDate" DataEndField="ToDate" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnRecurrenceExceptionCreated="RadScheduler1_RecurrenceExceptionCreated"> <AdvancedForm Modal="true"></AdvancedForm> <TimelineView UserSelectable="false"></TimelineView> <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings> <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings> </telerik:RadScheduler> </div> <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=HolidayTrackerEntities" DefaultContainerName="HolidayTrackerEntities" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EntitySetName="HtVacationDays"></asp:EntityDataSource> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HolidayTrackerConnectionString %>" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [HtVacationDay]" DeleteCommand="DELETE FROM [HtVacationDay] WHERE [VacationDayId] = @original_VacationDayId" InsertCommand="INSERT INTO [HtVacationDay] ([Title], [FromDate], [UserId], [Hours], [ToDate], [RecurrenceRule], [RecurrenceRuleID]) VALUES (@Title, @FromDate, @UserId, @Hours, @ToDate, @RecurrenceRule, @RecurrenceRuleID)" UpdateCommand="UPDATE [HtVacationDay] SET [Title] = @Title, [FromDate] = @FromDate, [UserId] = @UserId, [Hours] = @Hours, [ToDate] = @ToDate, [RecurrenceRule] = @RecurrenceRule, [RecurrenceRuleID] = @RecurrenceRuleID WHERE [VacationDayId] = @original_VacationDayId"> <DeleteParameters> <asp:Parameter Name="original_VacationDayId" Type="Int32" /> </DeleteParameters> <InsertParameters> <asp:Parameter Name="Title" Type="String" /> <asp:Parameter Name="FromDate" Type="DateTime" /> <asp:Parameter Name="UserId" Type="Int32" /> <asp:Parameter Name="Hours" Type="Double" /> <asp:Parameter Name="ToDate" Type="DateTime" /> <asp:Parameter Name="RecurrenceRule" Type="String" /> <asp:Parameter Name="RecurrenceRuleID" Type="String" /> </InsertParameters> <UpdateParameters> <asp:Parameter Name="Title" Type="String" /> <asp:Parameter Name="FromDate" Type="DateTime" /> <asp:Parameter Name="UserId" Type="Int32" /> <asp:Parameter Name="Hours" Type="Double" /> <asp:Parameter Name="ToDate" Type="DateTime" /> <asp:Parameter Name="RecurrenceRule" Type="String" /> <asp:Parameter Name="RecurrenceRuleID" Type="String" /> <asp:Parameter Name="original_VacationDayId" Type="Int32" /> </UpdateParameters> </asp:SqlDataSource> </asp:Content>
Thanks for help and fast answer
Private Sub roomSlots_AppointmentInsert(sender As Object, e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles roomSlots.AppointmentInsert Dim newSlot As New ProgramSlotInfo Dim ctlSlots As New ProgramSlotController With newSlot .ConferenceID = ConferenceID .StartTime = e.Appointment.Start .EndTime = e.Appointment.End .LocationRoomID = LocationRoomID .SlotCode = e.Appointment.Attributes("SlotCode") .AdminNotes = e.Appointment.Attributes("AdminNotes") .PublicNotes = e.Appointment.Attributes("PublicNotes") .AllocationGroupID = e.Appointment.Attributes("AllocationGroupID") End With ctlSlots.AddProgramSlot(newSlot)End Sub<telerik:RadScheduler runat="server" ID="roomSlots" AllowEdit="True" AllowDelete="True" AllowInsert="True" EnableDatePicker="False" SelectedView="WeekView" ShowAllDayRow="False" Width="100%" DataKeyField="ProgramSlotID" DataSubjectField="SlotCode" DataStartField="StartTime" DataEndField="EndTime" StartInsertingInAdvancedForm="true" EnableCustomAttributeEditing="true" CustomAttributeNames="PublicNotes,SlotCode,AdminNotes,AllocationGroupID" MinutesPerRow="60"> <AdvancedInsertTemplate> <h2 class="dnnFormSectionHead"><asp:Label runat="server" ID="lblAddSlotHeader" resourcekey="AddSlotHeader" Text="Add New Slot"></asp:Label></h2> <div class="dnnForm"> <div class="dnnFormItem"> <dnn:label runat="server" id="lblStartTime" text="Start" resourcekey="StartLabel"></dnn:label> <telerik:RadDateTimePicker runat="server" ID="startTime" SelectedDate='<%#bind("Start") %>' TimeView-Interval="00:15:00" TimeView-Columns="4" TimeView-StartTime="6:00:00"></telerik:RadDateTimePicker> </div> <div class="dnnFormItem"> <dnn:label runat="server" id="lblEndTime" text="End" resourcekey="EndLabel"></dnn:label> <telerik:RadDateTimePicker runat="server" ID="endTime" SelectedDate='<%#bind("End") %>' TimeView-Interval="00:15:00" TimeView-Columns="4" TimeView-StartTime="6:00:00"></telerik:RadDateTimePicker> </div> <div class="dnnFormItem"> <dnn:label runat="server" id="lblSlotCode" text="Slot Code" resourcekey="SlotCodeLabel"></dnn:label> <asp:TextBox runat="server" ID="txtSlotCode" Text='<%# Bind("SlotCode") %>'></asp:TextBox> </div> <div class="dnnFormItem"> <dnn:label runat="server" id="lblAllocationGroup" text="Allocation Group" resourcekey="AllocationGroupLabel"></dnn:label> <telerik:RadComboBox runat="server" ID="cboAllocationGroup" DataTextField="GroupName" DataValueField="AllocationGroupID" DataSourceID="dsAllocationGroups" selectedValue='<%#bind("AllocationGroupID") %>'></telerik:RadComboBox> </div> <div class="dnnFormItem"> <dnn:label runat="server" id="lblPublicNotes" text="Public Notes" resourcekey="PublicNotesLabel"></dnn:label> <asp:TextBox runat="server" ID="txtPublicNotes" TextMode="MultiLine" Text='<%#Bind("PublicNotes") %>'></asp:TextBox> </div> <div class="dnnFormItem"> <dnn:label runat="server" id="lblAdminNotes" text="Administrative Notes" resourcekey="AdminNotesLabel"></dnn:label> <asp:TextBox runat="server" ID="TextBox1" TextMode="MultiLine" Text='<%#Bind("AdminNotes") %>'></asp:TextBox> </div> <asp:LinkButton runat="server" ID="lnkCreateSlot" CommandName="Insert" Text="Create Slot" CssClass="dnnPrimaryAction"></asp:LinkButton> <asp:LinkButton runat="server" ID="lnkCancelInsert" CommandName="Cancel" Text="Cancel" CssClass="dnnSecondaryAction"></asp:LinkButton> </div> </AdvancedInsertTemplate>