fileupload add file [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i want to add file(photo) to fileupload control in the c#(code behind)
thanks

You can't do that.
The only possible way to get a file path into an upload control is for the user to select a file using the file selection dialog.
For security reasons you can't force a file name into the control, neither in the html code, nor using Javascript. As you can't specify it in the html, there is naturally no property for that in the server control that generates the html either.

Well, then you just add a click event to the button on the fileupload control... something similar to this:
fileupload.PostedFile.SaveAs(Server.MapPath() + fileupload.PostedFile.FileName);

Related

HTML5 for c# Web Browser [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have create simple Web Browser using c# and it read html pages well,but it doesn't read any html5 pages.i want to know how to enable that.
I'll try to answer your question by assuming you're asking about the WebBrowser class.
If you're trying to say that you used a WebBrowser class to read HTML pages but it doesn't read HTML5 pages, it could be because your IE version doesn't support HTML5. Did you install IE9? WebBrowser simply wraps the IE installed in your computer.

How to log in in ftp account using c#? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to log in to an ftp account and display the files or directories in fileview control.
What is the best approach to do it?
I am able to do it but some security issues are arises like if you are using your username and password in the URL, the location of the file also displays your credentials you've provided..
I want to connect the fileview without loging in in the log in dialog that appears.
You could take a look at this FTP client + control:
http://www.blackbeltcoder.com/Articles/client/an-ftpclient-class-and-winform-control

Fileupload control display [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how do we need to code a fileupload control so that it appears same in all browsers. Each browser shows the fileupload button in different ways. How do we need to code the CSS so that it displays the same in all browsers.
You have to use CSS to 'trick' the browsers into covering the file upload control with your own label/buttons in order to create the appearance that it is styled the same across multiple browsers.
http://the-echoplex.net/log/how-to-style-a-html-file-upload-control-using-css-and-javascript
You can try using this plugin:
https://github.com/valums/file-uploader
It is a multiple file upload plugin with progress-bar, drag-and-drop.
Homepage:
http://fineuploader.com

How do you insert HTML into a C# Program? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I need help here. I am trying to create a program that allows users to listen to the radio from a site I work on, without actually getting on the site. I have created the page I need it to display, but I am having trouble getting it to display in the Forms Application.
This is the page it needs to display:
If anyone could help me, that'd be great. Thanks in advance, even though I will probably say it again.
http://pastebin.com/0cSLMHht
Please use the Windows WebBrowser Control for it
see link here http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
Examples are here http://msdn.microsoft.com/en-us/library/2te2y1x6

C# Code Snipped [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is there any control for auto complate my code in textbox at runtime?
There is a textbox in my form and when i want to write c# code at runtime.Can it be auto complete code in textbox?
You can check out Actipro SyntaxEditor and Quantum Whale Editor.NET. Both controls support C# editing with syntax highlighting and "intellisense" drop-downs.
In WinForms, the standard combo box control includes options for providing the auto-complete mechanism based on the items in the drop down list.
I am assuming, of course, that you are not trying to do something like Intellisense. Your question is not clear.

Categories