How To Reach The User Who Modified The File The Last Time
Mar 31, 2010
I am using an instance of DirectoryInfo to browse and retrive the files and some file attributes on a physical directory. This is displayed in a html table. But if you have for example text files (.txt) or word dokuments (.docx) How can I display the correct icon that is associated with the file in my html table? And further on how can I reach the user who modified the file the last time? Where is that info saved?
Is the DirectoryInfo the object I should use for this purpose? or are there other objects or functions that I should looking at?
View 3 Replies
Similar Messages:
Jan 10, 2011
<sessionState mode="InProc" timeout="300"></sessionState>
is my session related tag in web.config file but most of the time if i idle 20 minutes then its automatically timedout and went to my login page, is there any solution ?
View 5 Replies
Aug 27, 2010
I have an ASP.Net ListBox that I'm trying to populate via jQuery, using the following snippet:
$("#MyList_btnAddAll").click(function(e) {
e.preventDefault();
$('#MyList_lstAll option').appendTo('#MyList_lstSelected');
});
The code has two ListBoxes in fact, one a "source" and the other a "destination". As you can tell above the ListBoxes are MyList_lstAll and MyList_lstSelected. These are rendered in the browser as <select> elements, as you'd expect.
The jQuery is working great, the items are moving from one ListBox to the other, the DOM is updated but when I submit this form (not using jQuery), the ListBoxes don't reflect this change on postback.
I realize my modifications via jQuery aren't available in ViewState but I thought since the DOM was updated these changes would be part of the postback data? But in the codebehind after postback the ListBox contents haven't changed. Does anyone know what might be going on and what I can do about it?
View 5 Replies
Jun 30, 2010
I made a website for a friend and he uploads a lot of pictures, around 20k per month. And sadly, I made it so he has to upload 1 at a time, because when they are uploaded they are renamed, attached to a group id and watermarked. Is there a way to allow him to select all 20 in a group and have them be uploaded and processed? I've looked into a couple of way to do it, mostly flash, and that will not work since we are renaming and added the newly created name to the db. Adding addition upload controls is not a solution. If we need to make a desktop application that does the uploading, that is alright as well, but we'd like to keep it all in the asp.net environment.
View 1 Replies
Oct 20, 2010
We are using membership and roles.. is there anyway to setup a user that cannot be deleted? We need to setup a default admin account and dont want it displayed in list of user to modify, or if it has to be displayed, it cant be deleted or edited thru the pages that is, if they need to, they can do it thru the website admin section to manage it.
View 4 Replies
Feb 10, 2010
I want to do the effect like MS Word, if the user modified something, then click close button, will prompt a msg to remind the user to save changed.
my page has the web controls textbox,dropdownlist, and repeater, how to check these data??
View 3 Replies
Jul 13, 2011
This is a small intranet site.
I am using Windown Authentication.
Using Role based (Active directory groups) authorization, I am able to control the access to various web pages. If an unauthorized user reaches a web page, a small popup comes up (as shown in the attached bit map) asking for credentials. If the user clicks on "Cancel" button on the popup, it shows "Access denied" error.
Instead of showing the standard "Access denied" error, I want to redirect to another .aspx page with a more meaningful message.
View 6 Replies
Jul 19, 2010
I'm using the ASP:Fileupload feature to upload and store PDF files to a database. I'm using the code below to store information about the file into the database.
[Code]....
But, I also need to store the last modified date of the file in the database as well. How would I accomplish this?
View 5 Replies
Oct 19, 2010
I recently purchased the source code of an existing DotNetNuke module in order to make a few modifications. The source of the module contains various .ascx, ascx.resx and .ascx.vb files. as well as a main.dll file. Lets call them:
myfile.ascx
myfile.ascx.resx
myfile.ascx.vb
myfile.dll
I'm using Visual Studio 2008 PRO.
I've made a few changes to "myfile.ascx.vb". When I rebuild "my_module" via Build --> Rebuild my_module, I get confirmation that there are no errors in the Error List. I then upload a fresh copy of "mydll.dll" from the "/obj/release/" folder on my local machine up to the "/bin/" folder on my DotNetNuke site.
The issue that I'm having is that the changes that I made to "myfile.ascx.vb" are not appearing on my DotNetNuke site. Are there additional files that need to uploaded? I've checked timestamps on all of my local files and the only files that are updated after the build is "mydll.dll".
View 2 Replies
Nov 22, 2015
I am using the FileUpload control to upload a file to my database. I would like to store the last modified date in the database as well.
How can I get that information using VB.Net?
[URL] .....
View 1 Replies
Apr 4, 2011
I've got a user modification page, that displays a list of reports a user has access to using a GridView object.
What I want to do is, if someone makes a bunch of changes to a users page, but then clicks cancel, all changes that are made will be undone. My main issue here is the GridView, which has add/delete/modify buttons, tied to a separate table.
So if I open my own page, add a new report to the gridview, then hit cancel, I don't want that report to be saved to my account.. Likewise, if I delete a record, and then hit cancel, the record is not deleted.
View 2 Replies
Jan 13, 2011
In my applications need to seach files in particular directory based on modified date .i have to view in selected dates whats are files are modified in particular directory .
View 1 Replies
Feb 8, 2011
Is it possible to download a file and set its Date Modified attribute by means of Ajax? I tried to use server-side code below but couldn't set Date Modified although I explicitly used "Last-Modified" Response header:
try{
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename="+l_attchmntFileSpec);
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Last-Modified", "Tue, 15 Nov 2010 12:45:26 GMT");
Response.BinaryWrite(l_attchmntToDownload);
Response.End();
}
catch (Exception Ex)
{ ...
}
Note: The file in question is stored in my database. It is represented by byte array l_attchmntToDownload.
View 1 Replies
Aug 2, 2010
I have a page which lists all the files in a particular folder (all PDFs), using a data-table and gridview.
I'm currently sorting this table by the filename (by using a dataview), which isn't that helpful, and I want the gridview of files sorted by the file created or file modified date (as recorded in Windows).
If that's not possible, a second option would be to extract the date from the file name string (no problem doing that), and sort the dataview/datatable or gridview based on that. Example Filename: DailySalesReport-1-15-2010. My only hangup with this is how do I sort on date, when it's a string value? Convert to date? How would I sort the whole dataset based on this converted value?
[Code]....
View 2 Replies
Apr 8, 2010
I am trying to implement a license in which we will provide a license file which will be placed on the server root directory.This license file contain encrypted strings which have ServerName, Concurrent Sessions , Timeperiod.n this i have two issue.How could i calculate time as user can change server time.How could i maintain the concurrent login sessions [because i can't catch the event hen user close the browser].I will welcome any tehcnique otehr then javascript solution.[even polling] but i can't save session information in database
View 2 Replies
Feb 9, 2010
I want to allow user to save time ..... How can I manage the time.....
I mean How I will provide interface to user to insert time ...How will I manage in database...
View 1 Replies
May 20, 2010
Server Error in '/MedTegraSL.Web' Application.
Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
Source Error:
[Code]....
Source File:
c:ProductiveTeamsMedTegraPresentationMedTegraSLMedTegraSL.WebMainMaster.Master Line: 16 Assembly Load Trace: The following information can be to determine why the assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be loaded.
[Code]....
Stack Trace:
[Code]....
View 2 Replies
Mar 3, 2011
I am developing a website, in which client uploads some document files like doc, docx, htm, html, txt, pdf etc. I want to retrieve last modified date of an uploaded file. I have created one handler(.ashx) which does the job of saving the files.
Following is the code:
HttpPostedFile file = context.Request.Files[i];
string fileName = file.FileName;
file.SaveAs(Path.Combine(uploadPath, filename));
As you can see, its very simple to save the file using file.SaveAs() method. But this HttpPostedFile class is not exposing any property to retrieve last modified date of file.
how to retrieve last modified date of file before saving it to hard disk?
View 3 Replies
May 7, 2015
I did a winforms applicaion using C#. I has 'n' number of forms.I like to track application usage time from user login to application exit.
View 1 Replies
Oct 11, 2012
if user login first time in application in how i promot for change password in Asp.Net C#.
View 1 Replies
Apr 27, 2016
I have a checkbox on a templatefieled named chkbxlate. I want to write code to check a checkbox or all the checkboxes on that column if the system time is greater than 9:30am during roll call but I don't know how to go about it.
View 1 Replies
Jan 14, 2014
I have written a SP which maintains users log in and log out history,it works fine when any user logs in or clicks on log out, problem is that as per need its not to allowed to keep the screen idle for 1 minute or more then in the log out column Null value is passed.
SP
Create proc usp_trackuserlogindetails
@username varchar(50) = null,
@command int = 0
as
BEGIN
if(@command = 0)
begin
insert into userlog (USERNAME,LOGIN,LOGOUT) values (@username,Getdate(),Null)
[Code] ....
Here when user manually clicks the log out button then 1(table above) is the output.
When user leaves the screen idle then after 1 minute the page goes to the Login.aspx page if the user tries to do something on the current page,here 2(table above) is the output can i store some hard core value instead of Null like Session expire or the exact session expires time.
View 1 Replies
Feb 26, 2014
How get current date and time
example: TimeZone(UTC +10)
<html>
<head>
<script type="text/javascript">
function ClientTime() {
var dt = new Date();
var ss = dt.getSeconds();
var mm = dt.getMinutes();
var hh = dt.getHours();
[code]...
View 1 Replies
Jan 27, 2010
I want to know how I can reach my label inside my repeater.
I try in pageload like this but it is not recognized:
LblCur3.Text =
[Code]....
View 5 Replies
Aug 30, 2010
I'm connecting sucessfully to a WebService but when I try to connect from an "Intranet" to the external WebService i don't have enought rights to reach the external server. Is there any thing that i can do programatically in order to skip these rights?
View 6 Replies