Web Forms :: Restricting Number Of Applications Accessing A File?
Mar 17, 2010
i hav an web app that gets data from user and writes it in a file.
the issue is many users can launch the application at the same time and hence many can write to the file.
but the file is at a shared path and hence only one copy is used by all. I want to restrict the number of access to the file at a time to 1.
View 1 Replies
Similar Messages:
Jun 17, 2010
In my asp.net I am using Datalist in that I want to limit row count and want the sort to be in vertical. Let me know how to do this. Ex: I want my list to be like this
1 4
2 5
3 6
View 1 Replies
Sep 22, 2010
i am trying to test to see if i get an error if i upload more than 3mb file size but instead i get the IE error (see below)
here is the code i have. - what i want is if the user try to upload more than 3mb file size display an error
[Code]....
[Code]....
View 10 Replies
Mar 4, 2010
In Crystal Reports Viewer (2008) for ASP.Net, when you click on the Export button, the Export dialog shows up with File Format options:
[code]...
how to remove some of these options so that end users wouldn't see it?
View 3 Replies
Feb 1, 2010
I have been designing a basic static webpage which allows you to open the applications such as Word, Excel, Powerpoint, MSN, Skpe, etc.... below is the code i first used which works on a allow machine...
[Code]....
Again this works on local machine i should do once hosted... but i dont know what i should put for the Domain at the moment im using localhost... All i want this to be is the machine on which webpage is being viewed.... I know the details of all the machines that will use this but i dont know what domain instead of localhost i should use.
View 5 Replies
Oct 19, 2010
When editing a data record from a detailsview, i need the input to be either a Y or N. I tried using a comparevalidator, but it allows only one character in which the value must be equal to.
View 3 Replies
Apr 14, 2010
I want to access one image file residing in C: of the client's machine. I know with the help of file upload control (or say input type=file), this would be easy. Due to nature of my application (Its a KIOSK application), user is not expected to select file. I am just wondering how should I implement reading file without using file upload control. I want to store this file in Images folder of server. I am beginner to WCF. Should I look towards WCF?
View 7 Replies
Feb 10, 2011
Can you point me to a site where someone can explain file locations dll, applications etc. I guess it was too easy with asp classic to drop a file in a folder. How does all this file management work with aspx?
View 3 Replies
Mar 30, 2010
Is there any way to access values in .vb and javascript files apart from hidden and cookie variables?
View 1 Replies
Mar 30, 2011
is there any way to show a preview content of word file?? like sample application feed viewer?
View 3 Replies
Jun 7, 2010
I've been worked with web services so far, and I'm interested in expanding my services to console applications as well so I started digging up with WCF but I'm conserned that I won't be able to use the HttpContext collection that I've been used to do with web services one important thing which is to generate a random value from HttpContext.Current.Request.ServerVariables["ALL_HTTP"] that I need to reckon if it's the same or at least near what machine that is calling my service. How can I overcome this problem?
I need to know what machine is calling to count the number of attempts to login into my system for example. So must do it inside of the svc code otherwise if I let the client inform what ip address or what computer he is using, anyone could forge this argument and surpass by another machine. May be I'm approaching this matter wrongly. And I should count the number of attempts per state session, but how is it done?
View 1 Replies
Jan 8, 2011
Is it possible to accessing a HTML button's value from code behind file?
View 2 Replies
Jan 6, 2011
Is this possible to download my application's dll file from production server's bin directory...
View 2 Replies
Aug 27, 2010
i have to write this piece of code in almost 10 to 15 content pages. i am just wondering if i can class file as base class for my content pages and write this piece of code in that class.
[Code]....
can somebody guide me how to write the base class for this scenario?
View 6 Replies
Sep 14, 2010
i have a .JPG file in my local machine which has to be sent as body of SMTP mail.Path of image D://foldername//imagename.jpg The code I run is in the server mc. I want it to access my local machine's d: folder to get the image file. But it is accessing the server mc's d: folder. How can this be done?
View 3 Replies
Sep 28, 2010
I want to access the static variable in my global.ashx file I am using classname.variable name for accessing the variable but the variable name dose not appear.Can someone tell me how to access static varialbe in *.ashx file.
View 5 Replies
Oct 18, 2010
I have an issue with trying to create a Pdf file from my webpage. Basically, everythig involving creating the Pdf (using iTextSharp) is done, and I'm doing this as a File Stream (i.e, I'm saving the Pdf on local machine). Now what I'm trying to do is create it as a Memory Stream (i.e, open the Pdf from the browser). I was able to do this earlier when I wa still at the 1st version of the application, and all of the code behind was incluced in my .aspx.cs file. But now, I've kept the code in the .aspx.cs at a minimum and put the cude in classes and I'm creating onjects of thoses classes from the .aspx.cs
The problem is that the code from creating the Memory Stream is in a class as follows:
[Code]....
As you can imagine, the compiler cannot recognise "Response" as it's in a seperate class instead of in .aspx.cs
View 5 Replies
Nov 22, 2010
I've been searching google for recommendations on conventions or best practices when it comes to the 'case' and naming of files on folders within a Web Application.Most of the time I work within Visual Studio, developing ASP.NET web applications. In the past I've always used PascalCase for all of my files and folders, with the exception of Javascript files which tended to be camelCase.More recently
View 2 Replies
Sep 2, 2010
I wanted to get the page number in each page of the pdf generated using iTextSharp 5.0.2.0.
right now part of the code is
[Code]....
But when i do this , it is showing the page number but the problem is it is showing same page number in all the pages. like "1" in all the pages. how to get the page number for the pdf file using iTextSharp version 5.0.2.0 ?
View 2 Replies
Feb 19, 2011
i will set a random number for uploading files. how could i do that?
is it possible to set a random name with 20-50 characters?
View 2 Replies
Sep 22, 2010
I have developed a Web application in VS2008. It works perfectly on my development PC. When I publish and upload to the shared Windows hosting service (which supports ASP.NET 3.5), it fails (even when accessing it from my development PC). The error message is: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.I have read many forum posts on the subject, and have tried the recommended solutions:
Set the reference to Copy Local - VS2008 does not allow Copy Local for ASP.NET references, just for WinForms references.Copy mshtml.dll into the installation directory - I have tried 3 different versions of the file, both in the root directory and /bin/, under both the names "mshtml.dll" and "Microsoft.mshtml.dll". None work.install the Interoperability Assemblies from Visual Studio onto the server by running "vs_piaredist.exe" - I don't have admin access to the server and the hosting company won't do it.
View 2 Replies
Mar 16, 2011
In my application i want to share one .txt for read and write among no. of users. in Button click i m writing data in that file and in tick event of Timer i m reading that file, In tick event i m reading that file based on file based cachin means if file have been changed then only i m reading that file but when i have put m application i IIS then i m not able to get updated file.
View 2 Replies
Sep 17, 2010
Can any one let me know "How to find the number of Tables present in a XML Schema File"?
View 1 Replies
Oct 18, 2010
I built an AddProduct page that adds a new product into the catalog,and uploads an image into a ProductImage folder. The productID is auto-incremented and I would like to assign that number as the name for the related product image.
I have tried reading the last ProductID in the database, then increment that number by one and assign it to the new file(image) but only works if no last record has been deleted from the table.
View 5 Replies
Mar 29, 2010
Scenario: I have a form with 3 input fields (text1, text2, text3). Is there a method to capture these fields in the aspx file of a second webform? I think you have to use someting like <%= %> but I'm not sure.Idon't want to use the code behind file because the number of input fields is dynamic
View 5 Replies