File Management Through Website
May 7, 2010
I have an ASP.net website where there are files available for download. I was looking at adding a page for admin who would get a listing of files from a sql database and if they want to they would be allowed to remove files permanently from the server (delete). The server would log this activity to a database, when and by whom the file was removed. The database limits their view of files available to them.
What would be the preferred method to perform this function? Would it be better that their request would be logged to a table in the DB which would be monitored by a service that would perform this operation locally on the database? I get an access denied error when attempting this operation directly from a webpage and I'm a bit reluctant to change my security policy to allow ASPNET direct access to the folder.
View 2 Replies
Similar Messages:
Aug 8, 2010
I have a Webservice that receives a file (byteArray) and saves it on server disk.
[Code]....
But my webservice isn't hosted on the same folder of my website.
I mean: [URL] Is it possible to put a webservice on the same folder of the main website? Or it's not a problem ? (Can I retrieve the files in the webservice's folder from website?)
View 1 Replies
Jan 4, 2011
how can I implement a Global Session in my ASP.NET 3.5 website in C# using Global.asax file ?
View 18 Replies
Jan 28, 2010
We are doing a web project for Container transaction Company. One of their requirement is User Management. The admin can set the permissions for the users. The users can only do anything according to the permissions given by the admin . How can Implement this feature.
View 2 Replies
Oct 19, 2010
We have a .Net solution for a website, consisting of 5 projects, and there are a few(less than 10) developers working on the solution. We deploy almost on a daily basis. The question is, how to setup the SVN repo to support this scenario (the daily deploy), also mentioning that not every commited file should go to production, there is a QA check before deploying.
View 2 Replies
Jul 11, 2010
have few doubts running though my mind which I want to clear. Here is my scenariolet's say I want to create a website for library management.I need to have registration page where I will allow users to register and login. My doubt is : After login how do I restrict users from accessing only the authorized page ? also I need to make sure that they should not access pages by entering the url directly without authentication ? i don't want to use the login controls provided in asp.net by default.
View 4 Replies
Jun 26, 2010
am building a asp.net website. Here I want ot use a preloader where diffrent-diffrent will load and work as preloader. These images will load untill full website is not loaded.
View 1 Replies
Nov 30, 2010
I am creating a website, where my client is planning to target 1000's or user registrations with their login area etc. Is it a good idea to use role management/aspnetdb for this purpose?
View 9 Replies
Sep 15, 2010
i have 2 web application that resides in 1 IIS7 application via Virtual Directory, i hope to connect the 2 website via Session, my question is can i pass a session value from website 1 to website 2?
View 3 Replies
Aug 28, 2010
I use cookie to change the language of my website.
When I click a LinkButton to change the language for first time it works but the other button doesn't work to change the language . I should delete cookie to change the language.
<asp:LinkButton ID="LinkButtonEn" runat="server" CommandArgument="en-US" OnCommand="LnkLang_Command" Text="English"></asp:LinkButton>
protected void LnkLang_Command(object sender, CommandEventArgs e)
{
Response.Cookies["mylang"].Value = "";
Response.Cookies["mylang"].Value = e.CommandArgument.ToString();
Response.Redirect("~/Default.aspx");
}
View 3 Replies
Apr 4, 2010
i need to count clicks on my website plus the pages the users are visiting.
at the moment i am using the page load and send the number of loads into a xml file, but i don't think is counting right.
i need to capture the URL and store it on the database
View 5 Replies
Jan 5, 2011
I read somewhere the website quits running after sometime if no one pings it. I wanted to know is there any way on IIS 6 that will keep the website up all the time(alive) even if no one accesses it
View 2 Replies
Apr 26, 2010
We recently migrated from VS 2008 to VS 2010. The migration went fine, except for our web project. Before, in VS 2008, the site showed up as http://localhost/Website. Now, it appears as C:...Website. It appears that when we did the migration, VS started to treat it as a file system website.
I've tried removing the existing site and re-adding it as an existing website, but it still displays it as C:...Website. Is there any way to convert it back to show it as a http://localhost/website, and run through IIS, as opposed to the default ASP.NET Development Server?
View 2 Replies
May 20, 2010
I have a question about viewstate:I have created a simple little website in 2008 (.net 3.5)I have one page with markup that looks like this:
[Code]....
View 2 Replies
Sep 30, 2010
I work in a multi server , multi webfarm environment (without sessions). We need to be able to identfy if a customer has arrived here for the first or has been before (even though they have not logged in)Not only will we change the text of our salutations depeding on this state but we will also use it in other busness logic. I can check for the existance of a cookie when they fire the Session_onStart event but I would have to write a cookie out to show they had previously visited for the next time the customer came to call.
If I wrote the cookie out in the Session_onStart then somehow I would have to tell the website that this was a first time visit. Also as this is a stateless webfarm - the next server may be different from the previous one which would fire a new Session_onStart event in its own right - which would see the cookie and assume it was not my first visit, even though it was my first visit on a different web page of the web site.
I dont want to write it out and say if its within X minutes of the cookie creation time you are still in your first visit as that x minutes wouldnt work 100% of the time If I dont write the cookie out on Session_onStart then when could I write it out?
View 6 Replies
Apr 10, 2010
Now i have faced some strange problem.I have added an arralist into session.And then accept it from another page .Every thing is work fine when locally(visual web developer).But when uploaded most of time error occured "System.NullReferenceException: Object reference not set to an instance of an object.".why?pls help me..
View 8 Replies
Apr 8, 2010
I would like to know if anyone knows of any way or software that will give me a count of the number of unique users to use my site in the last 5 minutes. I want to make some updates to my site during the day but I want to check to see if there is slow traffic then I can do it but if it's busy I can wait till a later time.
View 7 Replies
Sep 17, 2010
how to clear cokkies when my website open
View 3 Replies
Apr 13, 2010
How to get that how many pages accesses by a user in a website.
Actually, rather then putting code in each page I want some generalized method/technique that if user Logged to a website and during his Login period what was his activity and which page(s) he accesed.
Note:
1. My website pages are under MasterPage.
2. MasterPage has a MasterMenu.
3. For singlePage activity I used Page.GetType.Name
View 2 Replies
Oct 3, 2010
i 'm creating a website. i create a login form. after login my session will be start and all page of user profile will check first is session istart. i have stored userid in session for identify user. But i want to username of that userid. Remaiber username and userid are different. and i want to show only username on welcome tab.
e.g. userid= rksaini89
username= ramkrishn
so i want to show like this "welcome ramkrishn" on my home page and other many places on different forms. my confusion is that how to get username acording userid and where to keep store it. i can get it from database according session but i'm confused where to keep it so i can use it everywhere on my website.
View 1 Replies
Nov 25, 2010
is there a way to set code that automatically signs out the logged in user if they are redirected away from any file or directory under the main url?
View 2 Replies
Jul 28, 2010
when we accept user details in a login page and i want to use login details throughout the website.....can we do like this
session["uname"]=username;
string s=session["uname"].tostring(); this is in first page
string str=session["uname"].tostring(); this is my second web page
it is giving error
we can't access in other pages
View 5 Replies
Apr 16, 2010
I want to build a custom document management web application that ties in with sharepoint for the actual document versioning and storage. I'm hoping for something like a sharepoint widget that I can plug into my web application that would allow me to tie in with sharepoint and download documents, make edits to them, and upload them back to sharepoint, with sharepoint handling all of the versioning and storage. Basically I'm looking for a sharepoint API. If WSS is the answer to this, are there licensing issues that I need to consider?
View 4 Replies
Aug 3, 2010
I've done a bit of searching on this subject and haven't found anything so far. I am successfully using the Profile object and am saving Profile records away into my SQL Server Database. I have checked using the stored procedures and viewed the individual records to know they are there. However, I want to create a WebForm that can enumerate through all of the users in my Membership DB (Same DB as the Profile DB) and list each user in a grid showing what values each user has within their profile. For example:
Username
Profile Element 1
Profile Element 2
Profile Element 3
bob
true
false
true
fred
true
false
true
I want however to replace the 'Profile Element 1' etc etc to display the actual name of the Profile. I would like to do this programmatically so I don't have to recompile the website everytime I add a new Profile element.
View 2 Replies
Jul 5, 2010
since a have an app, that makes heavy use of AJAX (jQuery), I faced a problem of session timeout.
After a little bit of googling I found something like :
[Code]....
In the refresh page I have just this code :
[code]....
jQuery indeed calls refresh page, writes "success", however- session times out.
Am I doing wrong something? Is there a better way to prevent session time out?
View 4 Replies