.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links


Posted By:      Posted Date: October 16, 2010    Points: 0   Category :SharePoint
I have created an application page which has 2 normal html pages . therefore in the layouts folder I have

_layouts\FileView  and in there I have 3 files which is Hello.aspx, wait.htm,notfound.htm . The hello.aspx basically calls the htm in a iframe based on a condition. The hello.aspx loads fine with the codebehind working ok.  But my issue issue is when the aspx calls the htm a logon prompt appears even though IE has pass through authentication on intranet. when I call the htm manually on the IE address bar it prompts for a logon however the aspx is not.

View Complete Post

More Related Resource Links

Copying files to a folder on web server



I have few files in FolderA on the web server.

I want the users to select a fews files from FolderA and copy them to FolderB on the same web server.

I want to list all the files in FolderA and allow the user to select a few files and copy.

I want to copy the files programatically when the user selects a few files and click on Copy button.

How to copy the files quickly from folderA to FolderB?




How to use Resource files added to Resources Folder ?



I have added .CSS file in Resources folder of the project.In the same way i can add Images or any other files.But i am unable to use those files in Server Control Project.How to apply CssClass property to any predefined server control to the css file that is stored in the Resources folder  ?

Please guide how to use those Resource files . 

Deploy folder for a .rdl files

In a win form app, i use a report viewer for local reporting, the troble is: I can't find a "Aplication relative folder" where to strore those .rdl files, so i can find them in a run time. Thks for any ideas. I'm using vb2010 express an sql 2008 expressDANIEL CABAÑAS LEÓN - I'M NOT AFRAID TO DIE, I'M NOT AFRAID TO LIVE

Copy files from one folder to another

hi  I am able to create a folder but is not able to copy files from the source to the newly created folder. Is there something that i missed out? Thanks  Dim sitename As String = "~/site/" & txtUsername.Text Directory.CreateDirectory(Server.MapPath(sitename))            Try                Dim f() As String = Directory.GetFiles("/site/source/")                For i As Integer = 0 To UBound(f)                    File.Copy(f(i), Server.MapPath(sitename) & "\" & (f(i)))                Next            Catch ex As ExceptionEnd Try  

How to run exe in different folder than dll files

Hello, How can I run de exe file in a different folder than the dll files? Now ill get the error: " Could not load file or assembly 'Pangaea.CMS.Module, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified" thx

Why are folder web.config files excluded?

I am asking this mainly out of curiosity. When access rules are created for folders using WSAT, web.config files are generated in these folders. I thought these rules should be deployed with the application (It is at least the case for all my applications), but these file are not included after creation so they are not deployed by default. What is the rationale behind this?

Querystring to determine what Document Library Folder's files to list?

First of all, any webpart that alllows you to list documents in a particular folder of a Document library? Second, possible to pass what folder to list via a query string to  that webpart ? Thanks.

Securing files using Handler and App_Data folder

HiI have secured some files on my webserver by putting them into the App_Data folder in the root (I do not have the option to secure folders using the ASAPI filter)The user gets access to these files by requesting them through a handler, fx. by requesting ~/Handler.ashx?file=App_Data/MySubFolder/MyFile.jpgNow, I want to make all the content in a specific folder called "Members" (a single subdirectory of the App_Data folder) available only by passing a specific password. That is by requesting ~/Handler.ashx?file=App_Data/MySubFolder/MyFile.jpg&password=xxxxIn my Handler.ashx I have written some logic seeking if InStr(context.Request.QueryString("file"), "Members") = 0 before sending the file. If inStr <> 0 a password is required.Is this a good way to secure a folder in and its content? Is there a way of getting access anyway, like using some kind of "sub-directory" line in the path (the same way as you can request parent directory by using "../../Myfile.jpg)? I know there will be a problem if someone fx. legitimately tries to access the file App_Data/Members.jpgThanks in advance!-Jesper

Copy folder from FTP site using SSH to local machine using DOS batch files



Is there a way to copy a folder from an FTP site listening on SSH connection using DOS batch files? I know that there are several third party tools out there that accomplish this. I am NOT looking for that solution. I tried this in Powershell, but could not find a solution, and I am hoping a simple DOS batch file can handle this.


Any help would be appreciated...

Dave SQL Developer

how to delete files from folder in webserver


hi i m using fileupload concept and saving the files to a folder download.hw can i check the files names saved in that folder while site is hosted on webserver.is there any way to delete some of files from that folder runtime. 

copy a folder and subfolders + files from remote location to local drive



i am making a windows application( C#.Net) in which there is a folder placed at remote location( on other computer). this folder contains files + subfolders inside it. i need to copy all the files and subfolders present inside this main folder to my local drive. How can i do this. 

Thanks in advance

SSIS Package that dynamically pick the relevant Files in the folder

 I have 4 flat File named 


I have to create a package that  dynamically pick the files and  Dump the data from Migration_Benefits flat file to Benefits table and Migration_Members  flat file to Members table. I need package one for benefits and one for members

Please help me with this asap. Thanks 

Opening an XSLT file in my layouts folder


Hello all,


I'm creating an email templating system using XSLT files for the templates. I need to be able to access these XSLT files from code, so i'm deploying them in a layouts folder - how can I then open these files? I can't figure out how to create a valid path without hard coding the hive path (a bad thing!).

I'm vaguely aware that i can access these files by URL as they're in a layouts folder, but so far i'm getting a 401 when i try to grab them - ideally i'll be able to open them with a full file system path and use things like File.exists()

All help appreciated!


Uploading Office 2003 files are set to Folder Content Type


Hi All,

Been pulling my hair out trying to figure this one and am hoping that you are able to help.

Have been putting together a new SP2010 Standard environment and have gone as far as creating some sites, sub sites and generating Content Types and assigning to Doc Libraries etc.

The problem comes when we are attempting to upload existing Office 2003 files, namely Word .doc files, and only happens on specific libraries, this is not across the board.

 When we upload an existing 2003 file to the affected library, we are not able to set any meta data to the file as SharePoint registers the Content Type as a Folder as seen in the properties of the file:


Description: cid:image001.png@01CB5A4C.D9F0EA90


However, if we upload a pre-existing Office 2010 .docx, we get the full array of Meta Data and the correct Content Type has been assigned.


Do any wonderful people have any clues as to what could be causing this?


Thanks in advance

Help with authorization in web.config to deny access to files in a folder



I have a web site that has a folder called Files that contains PDF files.  These PDF files should not be accessible to people who have not signed in to the web site. 

The login URL is www.mysite.com/Account/Login.aspx and the register URL is www.mysite.com/Account/Register.aspx. 

Once the person is signed in they can go to www.mysite.com/Documents/Documents.aspx.  This page has a gridview that lists the PDF files in the Files folder with a link to them.  If the person is not signed in, he/she can't view this Documents.aspx page.  However, if anyone has the URL to the PDF files, they can view those files without having to sign in.

How can I prevent someone from accessing the PDF files in this folder?

The site is hosted on GoDaddy using IIS 6.0.

Thanks in advance.

Read Access Files from Folder with SSIS

Can some body suggest how to read access files from folder location and insert the data from access Db table to Sql 2008

How to convert DVD movies, VIDEO_TS Folder, DVD IFO files to MP4, AVI, WMV, 3GP, 3P2, MOV, MPG, VOB,

This guide shows you how to convert DVD movies, VIDEO_TS Folder, DVD IFO files to MP4, AVI, WMV, 3GP, 3P2, MOV, MPG, VOB, RM, RMVB, MKV, FLV, DivX, XviD, H.264, MP3, AAC, M4A, WMA, AC3, OGG, WAV, RA, RAM, etc by using the Best DVD Ripper, so you can edit these movies with Windows Movie Maker or put them on your mobile devices to enjoy such as iPod, iPad, iPhone, PSP, Zune, Creative Zen, Zune, Sansa, Walkman, Archos, Xbox, Blackberry, Nokia, etc.

Step 1: Download, install and run this DVD Ripper

Step 2: Load DVD disc, VIDEO_TS Folder or IFO files
You can load your DVD from DVD drive, DVD folder(VIDEO_TS) in your PC and also IFO files by clicking "Load DVD" button.


After loading your DVD movies, you will see the following screen.


Step 3: Choose output format
Select the output video or audio format you want from the "Profile" drop-down list.

Im<br/></div></div></td></tr><tr><td><table width=
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend