<
telerik:RadAjaxPanel runat="server" ID="AjaxPanelMain" LoadingPanelID="LoadingExamplePanel" EnableAJAX ="true">
<asp:Panel runat="server" ID="Panel1" Visible="true">
<input type="hidden" id="UploadedFilesJson" runat="server" />
<div class="upload-panel">
<div class="upload">
<object id="SilverlightUpload" data="data:application/x-silverlight," type="application/x-silverlight-2"
width="400px" height="120px">
<param name="source" value='<%= ResolveUrl("~/Upload.xap") %>' />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="autoUpgrade" value="true" />
<param name="windowless" value="true" />
<param name="InitParams" value='<%= InitParameters %>' />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
style="border-style: none" />
</a>
<telerik:RadUpload ID="radUpload" ControlObjectsVisibility="All"
AllowedFileExtensions=".stl,.zip"
MaxFileSize="80000000"
runat="server" InitialFileInputsCount="5">
</telerik:RadUpload>
</object>
<div class="uploaded-files" >
</div>
</div>
</div>
</asp:Panel>
</telerik:RadAjaxPanel>
this code is giving me a javascript error, So please help me ho i can save the file in a folder.If i am using foreach loop than how i will use silverlight control for same.
foreach (Telerik.Web.UI.UploadedFile file in radUpload.UploadedFiles)
{
int position = file.FileName.LastIndexOf("\\");
string fileName = (position == 0 ? file.FileName.Substring(position) : file.FileName.Substring(position + 1));
string filePath = Server.MapPath(m_path + "/" + orderIdPath + fileName);
file.SaveAs(filePath);
}
Please Help me out this problem.
thanks,
<telerik:radscheduler id="RadScheduler1" runat="server" Skin="WebBlue" Height="460px"
OnAppointmentDelete="RadScheduler1_AppointmentDelete" StartEditingInAdvancedForm="false" OnAppointmentCreated="RadScheduler1_AppointmentCreated"
OnClientAppointmentInserting="AppointmentInserting" OnClientAppointmentEditing="AppointmentEditing">
<AppointmentTemplate>
<asp:Label runat="server" ID="lblEventName" />
</AppointmentTemplate>
</telerik:radscheduler>
startDateString =
"#" & Format(StartDate.SelectedDate, "MM/dd/yyyy")
startTimeString = StartTime.SelectedDate.Value.ToShortTimeString &
"#"
CalendarEventBE.EventStartTime =
CDate(startDateString & " " & startTimeString)
As an example, I inserted an appointment then tried to change the date from 6/1 4:45pm to 6:15pm to: 6/3 5:00pm to 7:00pm. I changed the information on my screen and clicked 'Update'. Here are the values of the above:
startDateString = "#06/03/2010"
startTimeString = "12:00 AM#" HERE IS THE PROBLEM. Why is this not returning my time??? It works fine on the insert.
Thanks and let me know if you need additional information.
Susan
<
telerik:GridTemplateColumn >
<ItemTemplate>
<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" DataValue = '<%# Eval("Document") %>' ResizeMode = "Fit" Height="150px" Width="150px" />
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="radBinaryImage1" Position="Center">
<telerik:RadBinaryImage ID="RadBinaryImage2" runat="server" DataValue = '<%# Eval("Document") %>' ResizeMode = "Fit" Height="800px" Width="600px" />
</telerik:RadToolTip>
</ItemTemplate>
</telerik:GridTemplateColumn>
| <CommandItemTemplate> |
| <span style="margin-right: 280px; font-size: 21px; vertical-align: bottom; font-weight: bold;"> |
| Contact Events</span> |
| <asp:LinkButton CssClass="rgCommandButton" ID="btnResetCommand" runat="server" Text="Reset Filters" |
| ToolTip="Removes all filters" /> |
| <asp:LinkButton CssClass="rgCommandButton" ID="btnAddCommand" runat="server" Text="New Event" |
| ToolTip="Adds an Event" /> |
| </CommandItemTemplate> |
| <telerik:GridNumericColumnEditor ID="quantityColumnEditor" runat="server"> |
| <NumericTextBox runat="server" ID="xxx" Width="50px" ShowSpinButtons="true" MaxValue="999" |
| MinValue="1"> |
| <IncrementSettings Step="1" /> |
| </NumericTextBox> |
| </telerik:GridNumericColumnEditor> |
| <telerik:GridDateTimeColumnEditor ID="deliveryDateColumnEditor" runat="server"> |
| <TextBoxStyle Width="92px" /> |
| </telerik:GridDateTimeColumnEditor> |
| <telerik:GridNumericColumn ColumnEditorID="quantityColumnEditor" FilterControlWidth="50px" |
| ConvertEmptyStringToNull="true" HeaderText="QUANTITY" DataType="System.Int32" |
| DataField="QUANTITY" UniqueName="quantity"> |
| <HeaderStyle Width="80px" Wrap="false" CssClass="rgHeader xxFCcol6" /> |
| </telerik:GridNumericColumn> |
| <telerik:GridDateTimeColumn ColumnEditorID="deliveryDateColumnEditor" HeaderText="DATE OF REQUEST" |
| DataField="REQUESTDATE" DataType="System.Datetime" EmptyDataText="n/a" ConvertEmptyStringToNull="true" |
| UniqueName="requestdate" DataFormatString="{0:d}"> |
| <HeaderStyle Width="100px" CssClass="rgHeader xxFCcol3" /> |
| </telerik:GridDateTimeColumn> |
| <telerik:RadGrid ID="grdMasterList" Visible="true" runat="server" EnableEmbeddedSkins="false" |
| Skin="Premise" AllowPaging="false" AllowMultiRowSelection="false" AutoGenerateColumns="false" |
| PageSize="25" AllowSorting="true" OnItemDataBound="grdMasterList_ItemDataBound" |
| OnItemCreated="grdMasterList_ItemCreated" Height="100%"> |
| <ClientSettings EnableRowHoverStyle="true"> |
| <Selecting AllowRowSelect="true" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" /> |
| <ClientEvents OnGridCreated="GridHeight" /> |
| </ClientSettings> |
| <MasterTableView Name="CodeTable" HierarchyLoadMode="ServerOnDemand" DataKeyNames="PersNbr" |
| ClientDataKeyNames="ChkInOutStatus, PersNbr, DeviceNbr, CurrBreakStatCd, BreakNbr" TableLayout="Fixed"> |
| <telerik:RadGrid ID="grdMasterList_ZoneCoverage" runat="server" EnableEmbeddedSkins="false" |
| Skin="Premise" AllowPaging="false" AllowMultiRowSelection="false" AutoGenerateColumns="false" |
| PageSize="25" AllowSorting="true" OnItemCreated="grdMasterList_ZoneCoverage_ItemCreated" |
| OnItemDataBound="grdMasterList_ZoneCoverage_ItemDataBound" OnPreRender="grdMasterList_ZoneCoverage_PreRender" |
| Height="600"> |
| <ClientSettings EnableRowHoverStyle="false"> |
| <Selecting AllowRowSelect="true" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" /> |
| <ClientEvents OnGridCreated="GridHeight" /> |
|
</ClientSettings> <MasterTableView Name="CodeTable" HierarchyLoadMode="ServerOnDemand" DataKeyNames="OrgNbr" TableLayout="Fixed"> |

<
telerik:RadTabStrip ID="RadTabStrip1" runat="server"
SelectedIndex="0" CssClass="tabStrip" OnTabClick="RadTabStrip1_TabClick" CausesValidation="false">
<Tabs>
<telerik:RadTab Text="Home">
</telerik:RadTab>
<telerik:RadTab Text="Login">
</telerik:RadTab>
<telerik:RadTab Text="Register">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
protected
void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
string HTMLTemplatePath =
ConfigurationSettings.AppSettings["Path"];
string strCurrentTab = e.Tab.Text;
switch (strCurrentTab)
{
case "Home":
RadTabStrip1.SelectedIndex=e.Tab.Index;
Response.Redirect(HTMLTemplatePath +
GeneralDeclaration.PAGE_Home);
break;
case "Login":
RadTabStrip1.SelectedIndex = e.Tab.Index;
Response.Redirect(HTMLTemplatePath +
GeneralDeclaration.PAGE_Login);
break;
case "Register":
RadTabStrip1.SelectedIndex = e.Tab.Index;
Response.Redirect(HTMLTemplatePath +
GeneralDeclaration.PAGE_Register);
break;
}
}
Thanks.
