Access Client's Local Files?
Jun 24, 2010
what I need do for an asp.net page is:
1) client select a file, or;
2) client select a folder; Get file (or files in the folder)'s properties, something like name, ext, etc. and save to db.
it will be easy if it is a desktop app. however, in asp.net, how can I do that? do I have to upload all files to server first? is there a way to do this for all files in a folder? any third party control?
View 3 Replies
Similar Messages:
Jun 24, 2010
it should be in asp.net. but, it is urgent and important, wish someone here know the answer.
what I need do for an asp.net page is:
1) client select a file, or;
2) client select a folder;
Get file (or files in the folder)'s properties, something like name, ext, etc. and save to db.
it will be easy if it is a desktop app. however, in asp.net, how can I do that? do I have to upload all files to server first? is there a way to do this for all files in a folder? any third party control?
View 7 Replies
Mar 29, 2011
I created a website using VS2010. When I run the website using built-in web server, everything works fine. The website recognizes javascript and aurigma uploader. When I publish the website to local folder and tried to access using IIS 5.1 on local pc,
the java scipt files did not work. I was getting yellow triangle sign at the bottom of the page indicating the object is expected. I tried to look online but i could not find any answer. I have included jquery and javascript file in the header section of master
View 3 Replies
Sep 16, 2010
is this c# code intended to read local client files?System.IO.FileStream content = System.IO.File.Open("c: est.txt", System.IO.FileMode.Open);It gives me error FILE NOT FOUND
View 2 Replies
Jan 24, 2011
My application creates some images at client machine using client side scripting VBScript. I want to store those images in database, so I need some way to bring those images to server without any interaction with users (means I can not use the file upload control).Along with this, application would also like to use the printer attached to client's machine (it could be her network printer), without showing printer dialog.
Basically I need to create some client piece, dll which will handle the scanning, printing and uploading images from client pc to server and web application will interact with this dll.How could I achieve this? I explored a lot on internet. many articles suggest that use activex control, but how in c#?
I am not asking any spoonfeeding. Please show me correct article or small working sample or example, I would figure out the rest.
View 2 Replies
May 27, 2010
I want to be able to provide a list of files on an ASP.Net page which link to files on the users shared drives.
When the user clicks the link they can modify the file and then save it back to the shared drive.
An example would be:
<a href="file://M: estBook1.xls">M: estBook1.xls</a>
However this does not work, even from a trusted site.
I can understand the security implications but these can be managed.
View 6 Replies
Apr 29, 2013
Is there a way we can access image files from client machine in asp.net?
View 1 Replies
Sep 22, 2010
When I run the application using the Web Developer it works fine. However when I run it using local IIS I get the following error:
The resource class for this page was not found. check if the resource file exists and try again. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The resource class for this page was not found. heck if the resource file exists and try again.
Source Error:
Line 81: private void PopulateLanguageList()
Line 82: {
Line 83: DropDownListLanguage.Items[0].Text = (string)HttpContext.GetLocalResourceObject(
Line 84: "Default.aspx", SelectLanguage, Thread.CurrentThread.CurrentCulture);
Line 85: }
Stack Trace:
[InvalidOperationException: The resource class for this page was not found. Please check if the resource file exists and try again.]
System.Web.Compilation.LocalResXResourceProvider.CreateResourceManager() +4038050
System.Web.Compilation.BaseResXResourceProvider.EnsureResourceManager() +23
System.Web.Compilation.BaseResXResourceProvider.GetObject(String resourceKey, CultureInfo culture) +24
System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +32
System.Web.HttpContext.GetLocalResourceObject(String virtualPath, String resourceKey, CultureInfo culture) +56
APPortal.Login.PopulateLanguageList() in c:inetpubwwwrootAPPortalDefault.aspx.cs:83
APPortal.Login.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootAPPortalDefault.aspx.cs:20
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
View 1 Replies
Jun 5, 2010
i have a production server that does not have ftp access. Possible way to deploy files is connecting with remote desktop client and send files.
As you know this approach is highly hard and time inefficient.
View 4 Replies
Sep 22, 2011
I want local/Client machine ip address, for that i have written below code. but this code gives me Application server address where my web site is hosted. where as i wanted client machine IP from where my web site is getting accessed. so if my website accessed from 10 different machine in that case i want 10 different IP address of those machines.
Code:
using System.Net;
private string GetIP()
{
string strHostName = "";
strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
return addr[addr.Length - 1].ToString();
}
Also the below server variable return global ip address.
Code:
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
What is the correct code.
View 6 Replies
Dec 22, 2010
I am using URL Routing in Asp.net 4. I have successfully got the url routing working, however i have encountered a problem with my web pages trying to access local files. For e.g. before i started using URL Routing, my web page was called [URL]. In this page i was making references to a CSS file and some Js files. They were referenced as follows : <link href="CSS/mycss.css" rel="stylesheet" type="text/css" /> and <script src="js/myjs.js" type="text/javascript"></script>. So basically i have two folders sitting on the route, called CSS and JS, containing the respective files.
However, after implementing routing my url has now become e.g. [URL] This is fine, but what has now happened is that my CSS and JS have become inaccessible as they are now referenced as follows: [url] or [url] i know i can sort of resolve this by referencing my files as follows
<link href="../../../CSS/mycss.css" rel="stylesheet" type="text/css" />
and <script src="../../../js/myjs.js" type="text/javascript"></script>.
But that means i have to change the path for every reference, and i have too many. Then also i must change the references to any background images for instance in my css to have the same path. This is a huge nuisance, and pain in the back side. Does anybody know of a solution for this, where i will not need to change the referencing for the files.
View 6 Replies
Jul 24, 2010
In my application I have a requirement where the client/user needs to download video files from the server to their local machine.
View 1 Replies
Mar 16, 2011
I have a web service I need to connect to. But when trying to connect to it through visual studios, I get this error. The request failed with HTTP status 405: Method Not Allowed. I have the wsdl files on my location machine. I was told to create the proxies from these. The problem is I'm not quite sure how. This seems to be a little over my head right now. Not the best project to learn WCF or WSE on. Does anyone know how to create the proxies from wsdl files on my local machine. The services themselves are pretty simple, they just have security elements in the headers. UsernameToken. And then some custom fields.
View 1 Replies
Jan 18, 2010
want to know if linq to sql auto updated the id column of a class (table row object) after SubmitChanges is called inserting a new row to that table, that would be fantastic, would anyone be able to confirm this?
View 2 Replies
Jan 27, 2011
I have an asp.net (FW 3.5) web app that runs on an internal network. One specific page needs to "report" in to the web server that it is active and not locked up. I need to be able to run a script (or something) at the client to report the pc's computer name in that report. I cannot find a method that does this. I found several things that would report the WAN IP or host name, but this appears to all be for external facing sites.
View 1 Replies
May 18, 2010
I have a masterpage that calls all kind of external files from the server on startup, mainly css and jquery files. So, problem is, every time I open the page, there are a lot of roundtrips to the server to request these files.After the initial loading has been done, everything is ok.
Will it be possible to cache these small files to the client side, with a predetermined expiration date, so when i next open the page, I will keep the roundtrips to the servers at a minimum?
View 4 Replies
Dec 8, 2010
I am tring to hide a image in local folder by asp.net. How to get this.
send me a sample code ,I tring that filename.attributes.hidden
View 3 Replies
Apr 13, 2010
I have an ASP.NET web application that runs on a windows server 2003 server. there is a form that reads and writes data to an xml file inside the application's directory.
I always grant the NETWORK SERVICE user full control on my application folder so that it can read and write to the xml file. I put the application on another windows server 2003 server and did the same steps above but i was getting an Access denied exception on the form that reads and writes to the xml.
I did some search and found that if you grant the user ASPNET full control to the directory it would work, I did that and it worked fine. my question is: what is the difference between granting full control permissions to NETWORK SERVICE and ASPNET users ? and what can be the difference between the two servers that caused this issue ?
View 2 Replies
Jul 22, 2010
Is it possible to configure web.config to authorize a page to be only read locally (similar in concept to the RemoteOnly feature for error messages).
View 1 Replies
Oct 5, 2010
If I have a web application that needs to use a file, it presents the user with a standard open file dialog. But instead of uploading the file to server can it modify the file locally in a temporary location, while uploading in the background? That way the user does not have to wait for the upload before they can use my web app.
View 1 Replies
Jun 29, 2010
I want to show my online pdf document to client (like e-paper PDF document display.)
But after display the online pdf document to client then the document will be store on client Temporary Internet Files.
How to avoid storing in local Temporary Internet Files after viewed online pdf document in asp.net?
I want to secure my pdf document ?
Any possibility to avoid storing PDF documents in local Temporary Internet Files?
View 1 Replies
Mar 13, 2011
I have an MVC web application, the urls like following in my views folder:
<img src="../../Images/Delete.png"/>
are working on my localhost, but when I deployed the application on production server, they stopped working and when I use single ".." instead of double "../.." , they start working on production server.
View 2 Replies
Feb 16, 2011
I'm new in the WCF and in the web developing ..
I wrote WCF service and i by creating new Web Sites - i added new WCF service that will host my WCF service.
In the 'Web location' i define the service to be HTTP and the URL to be "http://localhost/MyService"
Now i want to access thru some other machine ( in the same network ) to my machine and get using the Service method that my WCF service exposed - but i fail each time ( calling from the second machine "http://a.b.c.d/MyService/interfaceMethodName")
If i try to call the web service thru the same machine - i get the right response.
View 4 Replies
Jul 26, 2010
I have done an application in my PC i would like to access it on other pc how can i do this.
View 4 Replies
Sep 13, 2010
Is it possible for an ASP.NET web application installed on a web server to connect to an Access database stored on a local PC (which is NOT the web server)? I would like the web application to allow the user to specify the path/complete file specification to the database. Or, based on login information specified by the user, the web application might determine the path to the database via an administrative database stored on the web server. The user/customer would be responsible for the storage of the Access database. If the answer to my first question is "YES", how do I programmatically specify/format the path to the Access database on the local PC so the web application can locate the database?
The path has to be something more than "C:foldernamesubfoldernamedatabase.mdb". When I use a path like this, the web application produces an error indicating that the database does not exist or cannot be found. So, I'm fairly sure that the web application is not starting with Drive C: on the local PC to find the database. For all I know, the web application may be interpreting Drive C: as Drive C: on the web server. I'm wondering if I need to specify a computer name before "C:" in the database path.
View 1 Replies