Hide new folder option in telerik editor file uploading - c#

I am using telerik rad editor in my projct. To add image I am using Image manager,while click on Image manager it opens the pop up where I can upload multiple images to the specified folder. It also showing me image editing option in same popup. My requirement is I don't want to show default image folder to user and don't want any image editing. I also want to hide add new folder option. please help me. If you have any sample code. Please share with me.
Thanks in advance.

i think the below url help you through this hope this helps:)
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor---image-manager---removing-commands.aspx

<telerik:RadFileExplorer ID="RadFileExplorer1" Height="410px" Width="400px" TreePaneWidth="150px"
runat="Server" EnableOpenFile="false" AllowPaging="true" VisibleControls="TreeView,Toolbar,Grid,AddressBox"/>
for more info see this link http://goo.gl/k9LMuR

You can customize the dialogs so that the elements you do not want visible to the user are not, e.g. by setting their display CSS property to none or by editing the markup. See this demo for an example:
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx. Note that just removing controls is likely to cause an error so you should test your custom dialog carefully.
Regarding the folder you show - in order to upload images you need to access the folder, so the files will be shown to the user. You can try implementing a custom provider to hide certain files, see this demo on the matter: http://demos.telerik.com/aspnet-ajax/editor/examples/dbfilebrowsercontentprovider/defaultcs.aspx.

Related

Kentico 7 - Display an image from media library in web part

I have created a custom web part for Kentico that needs to allow the content manager to select an image from the media library that will be set as a background image in a div. The form control I am using is Media Selection. Does anyone know how I can write the aspx and c# code to display the selected image? I feel like this should be an easy answer but I am coming up short. Any help would be great!
You can use MediaFileInfoProvider.GetMediaFileAbsoluteUrl() or MediaFileInfoProvider.GetMediaFileUrl() to get absolute or relative URL of the desired image and use it in aspx markup or codebehind. If you want to get "nice" URL, use example described here.

To save webpage as image

I have to save webpage as image by passing page URL,i have found one solution on this thread Convert webpage to image from ASP.NET[^] but it doesn't give me proper image(e.g. tried URL http://www.bugmuncher.com/).
Also tried HTML to Image in C#[^] but not able to deal with IViewObject interface ,basically not able to add reference to get this interface.
I have to do something like http://www.usersnap.com does.I made it work on FF,Chrome and IE9 by using canvas element which is unfortunately not supported by IE8.
Can i get proper working solution for my need???
i think you mean taking a screenshot.
Here you are a link about it.
Capture screenshot of active window?
But here i found on the site that just you want. Please check it.
Convert webpage to image from ASP.NET
The webpage can be saved as image by 2 methods.
1. Press ctrl+p
2. Select "Send to onenote" in print prompt window.
3. Press ok.
Now the image can be saved from the microsoft office -> microsoft onenotebook and rightclick on your content. save as the image file.
Second method is by using snapshot via snipping tool.

Download Dialog Box

How to change Design of Download Dialog Box in C#.Net?
How can I slove this problem?
(or)
How to hide Current Source File Path in Download Dialog Box?
You can't. Your question isn't very clear, but I am assuming you mean the download dialog that Internet Explorer displays when downloading a file.
The control is defined by the browser creators and is hard coded. No browser that I am aware of gives any type of access to this control or any way to change it.

problem with image display in visual studio

I have got a strange problem. Can somebody look into it please.
I have a folder called "img" in my website. I added a new image to it.
Now the strange problem is that when I give img/imagename.extension it doesn't display in the browser.
I have tried even ~/img. But ended nothing. Actually I am using the image in the spark template. I have taken an existing image and tried, it displays the existing image but not the one I have added. I was expecting may be I need to check in the newly added image but even doing that didn't end up the result.
Any ideas????
Thanks
if you using Razor use #Url.Content("~/img/yourimage.ext")
Check if authorisation rules of the folder img prevent the images from being shown e.g. to not authorised users.
Check if the image file was properly added to the solution in the VS.

Can I upload a file without the FileUpload control's attached textbox?

In my ASP.NET project, I want to add a facility to my page so that when the user clicks a button, a 'browse file' dialog box directly opens up. After he selects the file in the dialog box, I want to save that image on the server, and update an imagebox based on that selection.
Is there some sort of dynamic 'browse for file' type dialog box that I can use?
You can check this demo.
Article (http://vremenno.net/js/javascript-snippets-plus-new-file-input/) is in Russian, but you can always use Google Translate.
Source code available here: (http://vremenno.net/examples/updated-file-input-styling/UpdatedFileInputStyling.zip)
Sorry for ugly links: this is my first post and I'm not allowed to use more than one link.

Categories

Resources