Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views
Hi,
Actually i am using rad upload control to upload the files, i am using target physical folder path because i need to keep all uploaded files out side the my website. I want to  keep all uploaded file outside the our existing website where i am uploading the files but when we are giving the physical path file is unable to write over there.  I am giving path like D:\uploaded but on that path file is unable to write. I am giving all permission like network services, Asp.net etc to that folder but still i am facing the problem, so please suggest me some solutions.
Waseem
Top achievements
Rank 1
 answered on 20 Oct 2012
4 answers
982 views
Hello there.
I am using RadUpload and It is working correctly now, but occuring this error when I clicking on UPLOAD button in rad image manager or rad document manager.
What should I do?
To make my issue clearly:

I am going to upload my file to Dir1/Dir2/uploadingimage.gif
I have dir1 directory.
I will create dir2 directory from my C# code behind.
I am selecting uploadingimage.gif and click upload button.
Then I am having this error.

Server Error in '/' Application.

Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\001\pu001021020\bgr.png' is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\DIR1\
DIR2
\bgr.png' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\DIR1\DIR2\bgr.png' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10546931
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2580
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode) +91
   System.Web.HttpPostedFile.SaveAs(String filename) +151
   Telerik.Web.UI.PostedFile.SaveAs(String fileName, Boolean overwrite) +54
   Telerik.Web.UI.Widgets.FileSystemContentProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +120
   Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +959
   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +169
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Waseem
Top achievements
Rank 1
 answered on 20 Oct 2012
1 answer
71 views
Where is .msi files for Q3 2012 ?!
Chris
Top achievements
Rank 1
 answered on 19 Oct 2012
6 answers
219 views
Hi, Guys I'm new to radbinaryimage contro.
I've implemented this demo succesfully http://demos.telerik.com/aspnet-ajax/upload/examples/async/ajaxprocessing/defaultcs.aspx?product=asyncupload but now I want to add a "save image" button that saves to a folder  the image that is shown on the radbinaryImage control.
How can I achieve this?
Hope your help.
Casey
Top achievements
Rank 1
 answered on 19 Oct 2012
3 answers
149 views
Hi, 

I have this issue with a RadComboBox closing my RadMenu drop down sub menu. I can click on input boxes and so forth and I can click to expand the ComboBox without it closing the RadMenu item, but when I select any of the items within the ComboBox it closes the RadMenu item. 

How can I prevent it from doing that? 

Regards,
Jacques
Shawn
Top achievements
Rank 1
 answered on 19 Oct 2012
2 answers
170 views
I am using the rad scheduler with a exchange service provider, i have time zone offset value set for the scheduler and the display of appointments work fine. However when i create appointment with the offset i am getting an error:
The request failed schema validation: The 'http://schemas.microsoft.com/exchange/services/2006/types:BaseOffset' element is invalid - The value '-PT-8H' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:duration' - The string '-PT-8H' is not a valid Duration value.

Looking through the documentation i found that the appointment time needs to be convered to UTC. So i added the following line in the appointment Inset event.

e.Appointment.Start.ToUniversalTime();
e.Appointment.End.ToUniversalTime();

While stepping thru the code the start and end times look ok, meaning they are in UTC however i get the error above
at Exchange\ExchangeSchedulerProvider.cs:line 166
       at Telerik.Web.UI.SchedulerProviderBase.Insert(ISchedulerInfo schedulerInfo, Appointment appointmentToInsert)
when trying to create the item.

Can you please help?

Gabe Silvarajoo
Top achievements
Rank 2
 answered on 19 Oct 2012
0 answers
44 views
I wonder if it is possible to apply the control style to conbobox of telerik asp native controls for certain reasons because I have a combobox in my application and associated native Qusiera in design story to take the same format as the telerik , I generate in telerik but not how to apply these natives asp controls of telerik not
hugo arturo
Top achievements
Rank 1
 asked on 19 Oct 2012
6 answers
502 views

i have a radgrid showing header data with a nested detail table.
the header data is inserted/edited via an editForm.
the detail data is inserted/edited via a user control contained in a popup (EditFormType = WebUserControl).

data is submitted from the editForm using an asp.net button whose CommandName property is either "PerformInsert" or "Update".

upon submission of the new header data, i would like for the popup edit control to automatically appear so that detail data can be entered right away instead of having the user expand the newly created header row and then clicking "Add New Detail Record".

how can this be done?

Justin
Top achievements
Rank 1
 answered on 19 Oct 2012
0 answers
132 views
I have a tabstrip with approximate 20 pageviews.  I need to refresh the pageview loads onTabSelecting, this seems to be a very common thing but none of the solutions I have found actually seem to work for me,  I have gotten this to work other than the page within the pageview is not hitting the pageload and needdatasource events.  What am I missing that I need to do to make this work. Thanks in advance.  I have edited down the tabs so they are not all listed,

function onTabSelecting(sender, args) {
               
               var multiPage = $find("<%=RadMultiPage1.ClientID %>");
               var pageView = multiPage.findPageViewByID(args.get_tab().get_pageViewID());
 
               switch (args.get_tab().get_pageViewID()) {
                   case "RadPageView2":
                       //pageView.set_contentUrl("~/pageviews/emailTemplates.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/emailTemplates.aspx");
                       break;
                   case "RadPageView3":
                       //pageView.set_contentUrl("~/pageviews/originalEmails.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/originalEmails.aspx");
                       break;
                   case "RadPageView4":
                       //pageView.set_contentUrl("~/pageviews/CourtList.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/CourtList.aspx");
                       break;
                   case "RadPageView5":
                       //pageView.set_contentUrl("~/pageviews/region.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/region.aspx");
                       break;
                   case "RadPageView6":
                       //pageView.set_contentUrl("~/pageviews/listmgmt.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/listmgmt.aspx");
                       break;
                   case "RadPageView7":
                       //pageView.set_contentUrl("~/pageviews/subscribers.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/subscribers.aspx");
                       break;
                  
 
               }
               // alert("The ID of the selected RadPageView is " + args.get_tab().get_pageViewID());

regina
Top achievements
Rank 1
 asked on 19 Oct 2012
2 answers
117 views
Hi,

I am hoping someone on this forum would be able to help me. 

I have a radgrid with Edit form set up as pop up. I am using an "on-click" event for my update/insert buttons on the form template.

However, I am unable to access the controls on the form from the code behind onclick function. Can someone please tell me how I'd be able to access the controls.

Here is my EditForm in my aspx:

  <EditFormSettings InsertCaption="New Request" CaptionDataField="RequestID" EditFormType="Template">
                                            <FormTemplate>
                                                <table id="Table1" cellspacing="1" cellpadding="1" width="800px" border="0" >
                                                    <tr>
                                                        <td colspan="4">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                     <td>
                                                            Request Name:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtReqName" runat="server" Text='<%# Bind( "Requ
est_Name") %>' TabIndex="1" >
                                                            </asp:TextBox>
                                                        </td>

                                                    </tr>
                                            
                                                </table>
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td align="center" colspan="2">
                                                            <asp:Button ID="btnUpdate" OnClick = "InsertOrUpdate" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Add", "Update") %>'
                                                                runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'>
                                                            </asp:Button>&nbsp;
                                                            <asp:Button ID="btnCancel"  OnClick = "CancelUpdate" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                                            </asp:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </FormTemplate>
                                            <PopUpSettings Height="600" Width="800"  CloseButtonToolTip="Cancel" Modal = "true" />
                                        </EditFormSettings>

And here is my code behind:

 Protected Sub InsertOrUpdate(ByVal sender As Object, ByVal e As EventArgs)
' How can I access the control txtReqName here and obtain it's value.
 End Sub

Appreciate any help. Thanks!
Berry
Top achievements
Rank 1
 answered on 19 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?