Web Forms :: Multiple User Access For Files?
Oct 15, 2010
I am building a web-application that uses xml files to send them to Web-Services , and the application will be used by alot of users i have the files in my directory , and before continueing development I was thinking about when several users will use the same xml file at the same time knowing that , the users will have to ( read , write ) on these files , so if one user is writing on the file and another one will read from it we will have a bit confilict here .
I thought of copying the whole xml file TEXT and placing it as a string in the application but if i have to use like 10 xml files this will be a big performance issue i guess.
View 1 Replies
Similar Messages:
Sep 21, 2010
Im currently working on a project where i have a form that users fill out in order to submit issues.My ask is to give the user the ability to upload multiple files together with the form submission and also go back each time they have an update and upload more if they need.The way i have it right now is that i only have one FileUpload Control and once the Save button is clicked the file is save in the database together with the form info.
I already has a separate table for the files with reference to the ticket but im just not sure how can i allow the user to submit as many files as they want in an easy way.
View 5 Replies
Nov 3, 2010
I am working with Microsoft web developer 2008 Express (asp.net) and coding in VB.
I have coded a routine that creates a series of excel files in a folder called "SaveExcelFiles". This routine works fine. What I now want to do is to create a routine that will let my user download (copy) the entire folder to his PC. I do not want to have the user have to download each excel file separately if this can be avoided. Also I would like to have a routine that deletes all of the excel files in the folder.
View 4 Replies
Jun 29, 2010
Is there any control out there that will allow a user to upload multiple files at a time to a web server?
View 3 Replies
Jan 27, 2010
I am currently developing a solution in which the user logs in once and can work on multiple customers at the same time on my site.I've looked at all possible solutions involving sessionid having stored the customerid, to launching a new browser session so i could have multiple sessions for one users etc. I also looked at using cookieless sessions.But the all fail because it's not a simple solution and in my opinion a simple solution is most of the time a good and predictable solution.
Therefore i came up with the idea to use url rewriting(i've seen this used in other applications). When the user opens a customer, i would like to start his url as follows "~/Customers/xxxxxxx/*.aspx" where xxxxxx represents the customerid. and *.aspx represents a complete subset of pages of my site. This would allow me to use a simple technique to use multiple user sessions within a single asp.net session.
Now coming to my problem, I have never done some url rewriting, therefore my questions:
- Is this possible.
- Can i protect all the pages that need a customerid as input(come to think of it, if no customerid in the querystring, redirect to a selection screen would be sufficient).
- How do i adopt all urls used in a sitemap etc in a structured way.
View 3 Replies
Jul 15, 2010
I have developed an application in ASP.NET 3.5 which utilizes the Membership and Roles Providers and Forms Authentication to manage user access and profiles.
There are various area's of this application that are only to be used by an admin users whom login using their email and password and the rest of the users log in using their telephone number and password via their iPhone.
For simplicities sake, I would like to have two different login pages, one that is formatted for the iPhone and performs the correct validation for users adding a telephone number and the other for the application administrators.
I want to redirect the user to their respective login page based on which folder they are attempting to access. For example say I have an application structure like this
/Admin
/Couriers
/Customers
/Whatever
Default.aspx
iPhoneLogin.aspx
adminLogin.aspx
Web.config
I want to be able to redirect users who go to [URL]/Whatever to iPhoneLogin.aspx and users to go to [URL]/Admin to adminLogin.aspx
View 1 Replies
Oct 13, 2010
I have an application that uses resource files to display items in multiple languages. My app uses quote a lot of javascript and the alerts need to display in the local language. To do this, I have created an http handler which will read the keys and values of the culture-specific resource file and write them to a JSON array which is then embedded in the page in a script tag, the messages can then be accesses using, for exmaple:
Message.Error (en-GB = "Error", fr-FR = "Erreur")
The messages http handler works great in development, however when I run the application on a test server, I get the error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resources.Alerts.resources" was correctly embedded or linked into assembly "App_GlobalResources.b0n9j90e" at compile time, or that all the satellite assemblies required are loadable and fully signed. The code that I use to acccess the resource file is:
ResourceManager manager = Resources.Alerts.ResourceManager;
ResourceSet resourceSet= Resources.Alerts.ResourceManager.GetResourceSet(Thread.CurrentThread.CurrentCulture, true, true);
Where Resources.Alerts is the type that contains my multi-lingual definitions. The build action for the Alerts.resx file is set to "Embedded Resource". Any ideas why this works locally but not on my test server, am I missing something?
View 1 Replies
Mar 30, 2011
I'm very new to ASP.net, so I'm just figuring this out.First off, I have multiple separate projects that will be hosted on the same server.Second, they must be able to share certain settings (like connection string, configuration options, etc).Third, those shared settings must be configurable for different deployments (test, prod, etc).
View 1 Replies
May 2, 2010
I have an update panel in a user control and I am adding multiple instances of it for example 5.
When that update panel refreshes the page load occurs 5 times.
How can I prevent it only for once?
View 3 Replies
Sep 23, 2010
I am trying to make a web application which copies the existing functionality of a windows forms application using Visual Studio 2003. This windows application takes multiple (I am talking at least 30) text files and joins them together into one text file which can then be feed into a Mainframe system in the correct format. I have written web applications before that uploads images and pdfs but the key thing is it was always only one or two files at a time, so this was easy to do with the HTML fileupload control.
What I want to do is to be able to open a directory on the local computer and either automatically, or give the user the chance to multi select (I dont think this is possible) all of the 30 or so files they wish to upload. Once its been uploaded I can do the processing to join the files and create my new one etc. All the examples I have seen on the web, you have to select the files one by one to add to a list box and then they can all be uploaded but this wont be acceptable to my users...
View 3 Replies
Jan 11, 2010
I have a need to display multiple .mht files in one asp.net web page dynamically.
I tried to use iframce to display these multiples .mht files but ran into the auto height issues (scroll bar is not working as per my customer requirement). I searched the internet and found several posts with auto resize java code but ran into access denied problem even my .mht files are in the same domain. Spent a couple of days try different java auto ifamce resize examples code but none works for me so far.
I found some post about using a div html tag to display .html file without worry about the auto heigth issue but not sure how to implement it.
iframe auto iframce resize working examples.. or how dipslay these .mht files in div html tag without using the IE scroll bar.
View 1 Replies
Mar 22, 2011
I wanted to add to my website the feature where the user would select some file (1 or more than 1) and uplaod them to my server.
View 4 Replies
Nov 18, 2013
I have some documents in a folder ..i am creating zip file using the following code..but i am not able to download it at client side.
Imports ICSharpCode.SharpZipLib.Zip
Imports ICSharpCode.SharpZipLib.Core
Public Function ByteArrayToFile(_FileName As String, _ByteArray As Byte()) As Boolean
Try
[code]....
View 1 Replies
Jun 17, 2010
I have a situation where I am accessing a database multiple times and I'm wondering if it is necessary.
I have a GridView with a template column with a hyperlink to "Get Results" and on the RowDataBound event I have it check the batch number against the database and see if results exist and then if they don't, hide the link.
So when viewing the page if there is 20 rows in the gridview it is effectively doing 20 queries.
I was wondering if it is a better idea to query the database once with all "batches" and load it into a datatable, then on the RowDataBound event query the datatable. The only issue I see with this is there is currently 40,000 batches and grows daily.
View 1 Replies
May 10, 2010
I am using this link
[URL]
Now my requirement is Multiple file upload code should be in the usercontrol but when click in the btnSubmit from aspx then it has to upload in folder and has to get save in DB Table.
How to do this? Is there any easy way to do this?
[Code]....
View 4 Replies
Mar 30, 2010
I'm trying to upload multiple files, so my first componet consist of a user control with an upload multiple files class:
[Code]....
After compiling I get the following exception:
Failed to set the specified COM apartment state
Is there a way to overcome this exception to upload multiple files?
View 3 Replies
Jul 26, 2010
Are there any code examples out there that allow a user to select multiple files or even an entire folder for upload?
View 2 Replies
Sep 6, 2010
I have an ASPX Page that contains a fileuploader, I want to know how can I upload multiple files together to server and also create a new folder on Server and then upload these files into this new folder!
View 4 Replies
May 5, 2010
I am trying to add multiple CSS files across several projects and have added them as a "link" but when I build my solution it does not copy the files. Is there any way to share a bunch of CSS files across several projects?
View 7 Replies
Oct 19, 2010
I am new to Dot net.
I have Treeview with 4 child nodes.I have 4 XML Files.
When i click on each child node,i have to display XML File
in GiridView...ie First child node ----- CLICk-----> First XML File
Second child node ----- CLICk-----> Second XML File
View 2 Replies
Oct 19, 2010
I am creating a web app to basically allow the user to select multiple files, specifically pdfs that have already been created on a network path, and print whichever ones they want. Can someone point me to the best way to accomplish this? I have done a lot of searching, with no good results so far.
View 3 Replies
Jul 24, 2012
i want to upload more then one file at a time?
View 1 Replies
May 7, 2015
If you can I want Upload multiple files in database like this....
View 1 Replies
Sep 25, 2012
I need to upload multiple file, any link to achieve this.
View 1 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