Web Forms :: Get A List Or Folders In The App_Theme Directory
Aug 6, 2010
I would like to display a list of all the Themes in the App_Theme directory and allow the user to select the theme they would like to use. Is there already a method that would return the folder name back to me in the app_theme folder?
View 1 Replies
Similar Messages:
Apr 4, 2011
I am developing an asp.net web application. I have to access one of the image in images folder in root directory. I am using following code in my code behind file.
string imageDirectory = HttpContext.Current.Server.MapPath("~/images/");
string imageUrl = imageDirectory + "/img1.bmp";
This works fine in my local machine. My question is does this code work when I move my application to production ?
View 2 Replies
Jun 12, 2010
how can we write a code for displaying a files and folders of server directory using Grid View in asp.net?
View 3 Replies
Feb 3, 2010
I have a page that shows a list of the files in an upload directory. ie: My customer uploads a file through my web page and the file ends up in the proper directory. When I click on a file name, the url path is missing the directory name. It's as if my customer uploaded directly to my root. Interestingly, when I upload a file through the same web page, the path remains intact and I am able to click on the link and download the file. How can I get the proper path in my url name. Here is my code .
[Code]....
View 1 Replies
May 7, 2015
How I can see my folders in a list or DataGridView,and save images in the selected folder.
View 1 Replies
Feb 24, 2011
If my application URL is this:
http://localhost:51422/MyApp/Pages/FormView.aspx
I want 2 things:
1- I don't want any people to delete "...../FormView.aspx" and go to this[URL] and browse the directory pages and folders names.
2- If anybody tired that, the application should redirect him to login page or home page.
View 5 Replies
Jun 21, 2010
Listing folders in folders then creating arrays in JS for each of the folders?
Directory Structure:
I have a directory structure as follows;
ad_folder
--folderA
--folderB
--folderC
--anotherFolder
--etcfolder
--afile.aspx
--anotherfile.gif
ad_code
--folderA
--folderB
--afile.aspx
--anotherfile.gif
ad_prep
--folderA
--etcfolder
--afile.aspx
--anotherfile.gif
ad_bin
--etcfolder
--afile.aspx
--anotherfile.gif
other Folder
files folder
assetsfolder
index.aspx
web.config
image.gif
Task at hand:
I want code in VB.NET to create javascript arrays of the folder contents that can then be used on the client end. I only need arrays for all folders contained in folders starting with ad_ and an array for all the base folders . like so:
var folders=["ad_folder","ad_code","ad_prep","ad_bin"];
var ad_folder=["folderA","folderB","folderC","anotherFolder","etcfolder"];
var ad_code=["folderA","folderB"];
var ad_prep=["folderA","etcfolder"];
var ad_bin=["etcfolder"];
note that I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.
[code]...
View 3 Replies
Mar 11, 2011
We have an aspx page that displays list of html file & folders from an shared folder. The html files and folder within this shared folder is being maitained by the end users. These are the static html files. When user clicks on any of the file, our .net code open up that file in the new window.
Recently there was an change in the requirement. End user wanted to display some of the data dynamically in the HTML page. We the asked end users to replace the static/hard coded data(eg. City name) within the html files. Find below sample code for your reference
Existing code in html
[Code]....
New code in html
[Code]....
To achieve this our .net code looks for the tag values(State or City) within the lookup table in SQL DB. It then gets the value from the respective tag from DB and replaces the custom tag with the DB value
Eg: <TAG:DYNAMIC value="State"> is being replaced by the value of the State tag in DB.
In order to achieve this we parse the entire html file and then replace the dynamic tags with the DB value. The parsing happens quick in smaller html files but takes almost 10-12 secs to parse bigger files (around 255KBs). We also noticed that even though we increase the number of our custom tags within the bigger files, the code takes same time to open the parsed html file. So it looks like DB hit is not an issue and looks like the issue lies in the parsing of the files. Find below code that parses the html file
[Code]....
On further analysis we noticed the while loop within the above code takes longer to execute. Let me know if there is any better and faster way to parse bigger html files.
View 1 Replies
Dec 23, 2010
I'm trying to display a list of Excel files that are stored in multiple folders in adatagrid but the .GetFiles part of the routine in my loop only gets the very last excel file rather than all that meet the criteria. Below is the code I've been working on for several days. This is the first time I have tried to use a "For next loop," and I am having much trouble with this. Using the same loop code posted I was able to verify that the loop was working by appending some text into a temporary label.
[Code]....
View 6 Replies
Apr 12, 2010
I need to tell somehow to ASP.NET to read the images from the ASP.NET APP_THEME folder.
so instead of this:
[Code]....
View 3 Replies
Mar 13, 2010
have a probleme with my search filter, i want to list the users of an organizational unit result.filter =(& (objectClass= user)(ou=dep1)); ====> it didn't work for me
View 1 Replies
Jun 15, 2010
I need to list a group of users, their group name is (IRS Group) to a list group. how to do this. I'm very new to asp.net and dont have much knowlegde about acctive directory.
View 1 Replies
Mar 25, 2010
how to get the member of property of a active directory group?
I am using .NET 2 framework and c# laungauge.
View 2 Replies
Jul 17, 2015
I am wanting to make a sign in and out site for reception I have made it so far using C#, I have got the visitor part sorted, how I could let staff choose there name from a list that has retrieved the names from active directory and then that pulls there name into the SQL Database and then adds a row with there name into as including other columns but I can do the other columns.
View 1 Replies
Jun 16, 2010
Is there a way to stop someone from looking into the App_Themes folder, by putting it into the url, like this:
http://localhost/myapp/app_themes/
same with app_data, can those be blocked, i didn't try app_data as i don't have anything in there, but just curious, as app_themes I was able to get into. Is this an IIS setting I need to adjust?
View 6 Replies
Dec 23, 2010
The Stylesheet in the App_Theme folder gets cached in the browser. What should be the approach? so that whenever there is a new deployment the browser should take the latest stylesheets and not the one cached in the browser.
This was happening for other css(which are not in theme folder) too, so used custom control as mentioned in the link
[URL]
How this could be done for the CSS in the Theme folder?
Edit: The theme name is mentioned in the web.config as mentioned below. so its not just the html link tag which I had solved by using the method mentioned in the link.
<pages styleSheetTheme="Default">
<controls>
</controls>
</pages>
View 3 Replies
Feb 26, 2011
I have a web site project that uses an App_theme folder for styles. When I run the site the styles are not applied to the site. What is going on?It works on other developers computers, but they are using a local IIS 7 server whereas I am using the built in Visual Studio IIS. Note - the site is setup using a web site project (not application).
View 2 Replies
Jan 15, 2010
Suppose I have a folder inside the web application:-
applicationdatabase
In this folder there are 3 files
1.xls
2.mdf
3.jpg
How to get the 3 file names into a Gridview ?
View 3 Replies
Jun 13, 2010
I'm trying to create a list of image buttons dynamically, but I'm having trouble displaying the images. I'm using the Directory.GetFullPath method, but I don't think its the right thing to do.I've viewed the page, and the image path is showing as
'd:Hosting6238630htmlPropertiesCedarsext%20front.jpg'. I know this isn'r right and that it needs to be something like www.annereevelettings.co.uk/property/images..., but the question is, how do I do it?The page can be seen at the following address
www.annereevelettings.co.uk/property.aspx.
Here is the code that I am using:
[Code]....
View 8 Replies
May 7, 2010
Is there anyway i can mention which CSS file should be attached to my Page automatically when running A Page with ASP.NET Themes /Skins ? I want to associate my own CSS which resides in a folder other than the APP_Themes Folder to the Page
View 1 Replies
Jan 20, 2011
I have a simple web app project in Visual Studio 2010 (converted from 2008 project). For some reason when I publish the app, Visual Studio doesn't copy the App_Theme -folder to the publish destination folder. This will cause the app to fail when deployed to production environment.
App_Theme is considered as "system" folder by VS (shown as grey), which means that I can't manually set it's publish properties.
how to get VS to copy App_Theme -folder when deploying?
View 1 Replies
May 20, 2010
how I can prevent someone from viewing directory list (files) from url?
For example: [URL]... I don't want anyone to see directory list of files under the folder directory by just entering above. I have several project folders for my web app and in each folder, I have a web.config file <authorization><deny users="?" /></authorization> as well as <location> tags. They are working fine from preventing unauthorize access to the .aspx pages and redirecting to login page. But still want to prevent viewing the directory folder.
View 1 Replies
Mar 2, 2011
How can I get a list of users from active directory? Is there a way to pull username, firstname, lastname? I saw a similar post where this was used:
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "YOURDOMAIN"); I have never done anything with active directory so I am completely lost.
View 3 Replies
Feb 8, 2011
I'm trying to populate a dropdown list with a list of all the usergroups in existence in an existing active directory.
View 3 Replies
Jul 23, 2010
i have a folder where some txt files are located.
i want to get list of those txt files using query in SQL Procedure.
I tried some Query it is not returning Txt files in List. It just Listing Folders.
how can i achieve this.
View 3 Replies