Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

truegilly

@truegilly
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how can i create a countdown timer using C# ?
    T truegilly

    Hi guys, Im about to start development on a countdown timer that will display the time left for a particular product. the format will be like this - 00:00:11. I have been watching the AJAX video tutorials so im thinking of approaching this by setting an updatePannel with a timer with a tick event every 1000ms. Inside the updatePannel i could have a label that is attached to a C# method that contains the countdown logic 2 questions... 1: is this a good way forward or not. 2: can anyone suggest data time classes/methods that i will find useful so for example an admin can enter a start date and an end date and the timer will show the days, hours, minutes and seconds remaining. the site im trying to emulate is this http://www.telebid.com/ looks like they have AJAX countdown timers too. thank you for your help Truegilly

    C# question csharp com help tutorial

  • Access denied to folder in ASP.NET project either though I have granted all users full permissions !!
    T truegilly

    ok ive got it working, it was my code, i needed to add the file name of the uploaded file MyFile.PostedFile.SaveAs("C:\\Downloads\\" + justFileName); also i lost the @ at the beginning thanks Truegilly

    ASP.NET csharp question asp-net sysadmin help

  • Access denied to folder in ASP.NET project either though I have granted all users full permissions !!
    T truegilly

    Hello, i have made a very simple file upload app, that i want users to be able to upload images to a folder on my server, well localhost for the time being :laugh: here is the simple upload code...

        protected void ButtonRegisterDetails\_Click(object sender, EventArgs e)  
        {  
            // display properties of the uploaded file  
            String FileName = MyFile.PostedFile.FileName;  
            String FileContent = MyFile.PostedFile.ContentType;  
            int FileSize = MyFile.PostedFile.ContentLength;  
    
            // get just the file name  
            String justFileName = Path.GetFileName(FileName);  
    
            try  
            {  
                MyFile.PostedFile.SaveAs(@"C:\\Downloads");  
               ProgressTextBox.Text = "uploaded ok.... i think";  
            }  
            catch (Exception ex)  
            {  
                ProgressTextBox.Text = ex.Message.ToString();  
            }  
    
        }  
    

    The code looks fine but the problem i have is that i keep getting an exception saying that the access to the destination folder is denied. Access to the path 'C:\Downloads' is denied. Ive been reading about granting permissions for 2 days now, and although im new to IIS i believe that because i have the NETWORK SERVICE but not ASPNET user available im using IIS 6. in a disparate attempt to try and solve this i created a new project using the same C# code as above and pointed the images to be saved in a new directory "C:\Downloads". i granted full access permissions to all the users that were listed when i right clicked on the C:\Downloads dir and selected.... Sharing and Security Security tab add Advanced Find Now The users that people have said should work "IUSR_mycomputer" and "NETWORK SERVICE" make no difference either, but even by giving all users, well over 60 of them full access permissions it makes no difference. :confused: could it be something to do with the way ASP.NET, or IIS is installed on my machine ?? Im using Windows XP pro 64bit and Visual studio 2008. basically my question is.... how can i grant write permissions to a folder in my asp.net app as changing permissions in the Sharing and Security properties has done nothing ?? :sigh: thank you for your time.... please help :(( Truegilly

    ASP.NET csharp question asp-net sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups