Download Dialog Box - c#

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.

Related

Change dialog settings on a webbrowser's savedialog

I am working with a webbrowser. When I call the ShowSaveAsDialog, I want to be able to choose a default filename and a default extension type for it. How can I do this? I do not see any way of modifying the dialog box that pops up there.
If I cannot do that, how can I save the contents of my webbrowser to a file of my choice (htm/html file for example)?

Cannot export content of ultrawebgrid to excel spreadsheet from WebDialog

I'm using window.showModalDialog to open a modal window using Javascript. I have to include this line in the < HEAD > html of the modal window: <base target=_self> because whenever that page posted back, it would spawn off a new window!!
In this Modal Window I need to have a File Download functionality. The problem is that using the File Download dialog don't popup, but if I remove the the File Download dialog appears but then again, another window shows off. Is there by any chance that I can disable <base target_self> while I am downloading the content of my grid? By the way, I am using Infragistics UltraWebGridExcelExporter for this.
Thanks everyone.
As I mentioned this is a well known problem. One possible solution (I haven't got a chance to try it, but it seems logical) for the button that initiates download onClientClick try adding following JavaScript code:
document.getElementsByTagName("base")[0].setAttibute("target","")
it will change base target to blank, but only for duration of download.

Hide new folder option in telerik editor file uploading

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.

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.

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