Asp.net - Implement Security Trimming With A Website With Multiple Folders And Multiple Web.config Files?

Jun 18, 2012

I have a website that has highly granulised access and hence requires many web.config files. The problem is I would like to trim the menu so that only certain users will have access to certain folders. I have enabled trimming and setup roles in the sitemap, however when I access the page the menu is not show, as I am authorized to view the default page which is not in a subfolder. When I type the url of a page in sub folder's I have access.

How should I handle this:

A site map for each web.config file - don't know how this will work Removing the sub web.config file to only use a single one

View 3 Replies


ADVERTISEMENT

Searching Multiple Files In Multiple Sub-folders

Mar 30, 2010

I'm developing an application to help law enforcement retrieve and analyze logs and other files left by the use of Pidgin (a multi-protocol messenger client). Right now I'm nearly done, but I want to add the ability to search chat logs for user-defined words or phrases and I don't even know where to begin.

Chat logs are stored as html documents in a folder/sub-folder/sub-folder/sub-folder fashion, where each sub-folder can have dozens of sub-folders inside of it, and the final sub-folder can have dozens if not hundreds of chat logs. If anybody could point me in the right direction, I'd be very grateful.

(Also, this is the first program I've written since about 2005, and I'm essentially teaching myself VB as I go. If you'd like to see what I've cobbled together so far, you can find the program here.)

View 1 Replies

Collecting .xml Files From Multiple Folders?

Jul 29, 2010

Here is my need for a windows form program. I have a program that creates .xml files with the same name but on different dates. It is broken down by Type/Date/Time/file.xml. The "file.xml" is the same name every time.

What i need is to grab all of these xml files and export them to excel by pulling certain information out of them.

coding for searching through a windows file structure to pull these files out.

There will be something like 30-40 of these files spread throughout different "Type", "Date" and "Time"

View 3 Replies

Download Multiple Files And Folders

Jun 21, 2010

i have been assigned a project by my organization to make a portal using vb.net which would list all the files and folders kept at the server, and i need to add a functionality wherein on a single click the user should be able to download all the files present in a particular a listbox which contains various files selected for the download, iam using file.copy method for this as the files are to be copied in the intranet only but this works fine when i run it on my computer but as soon as i deploy it and in the client server architecture the files are not copied even to the server nor in the client, although no error is shown. [code]

View 13 Replies

Dialog For Selecting Multiple Folders And Files?

Jun 24, 2011

I was wondering, if there is a control for selecting multiple folders and files in an OpenFileDialog, like this (In MFC)Or if there is a way to create that kind of contro

View 14 Replies

Email When Files In Multiple Folders Exist Aged 15min Or Older?

Nov 17, 2011

I have a list of directories that get files added to by other users on my network.I would like a script (triggered by scheduled task) that would detect if there are files in these folders older than 15 minutes, and send me an email. I am able to run Batch/DOS, Python, Perl, or VBS - I have them all installed on the server. As long as they can be triggered from Scheduled task.

Example:

C:UsersFTPJoeSFromCustomer <files dropped here>
C:UsersFTPMarkFromCustomer <files dropped here>
C:UsersFTPRobbieFromCustomer <files dropped here>
C:UsersFTPTammyFromCustomer <files dropped here>

[code]....

View 4 Replies

VS 2010 - Keeping Files / Folders Synchronized Across Multiple Client Computers

Aug 10, 2011

(Currently using VB.NET 2010 Express) I'm trying to make a program, the main of which is file transfer. I'm trying to create a program that will keep files and folders synchronized across multiple client computers. I'm using a File system watcher to trigger events, and Using a simple System.Net.Sockets UDP client transfer (found via google) to transfer commands between it and itself on other computers.

Here's that code (this just sends from one textbox to another over the internet)
Imports System.Net.Sockets
Imports System.Net
Imports System.Text
Dim udpClient As New UdpClient(1024)
Dim RemoteIpEndPoint As New IPEndPoint(IPAddress.Any, 0)
[Code] .....

By this method, I can rename, move, or delete files. I want to implement file transfer, so that whenever a new file is created, or updated, my program will automatically transfer the file to the other computers and update them there.

View 3 Replies

Login Form And Security Trimming

Apr 1, 2009

I have a form which has a tabgroup with three tabs. One of the tabs has a bunch of utilities a domain admin would use. Is there any way to create a login form that grabs info from active directory, and based on the group you're in, the correct tabs will appear on the form. For example if you are in the domain admins group, that tab will appear, if you are in the helpdesk group it won't show.

View 12 Replies

Security(transparency) - Write A String Back To File After Trimming?

Mar 25, 2011

I'm writing on a texthandler-project for Vista.(Compiler : Visual Studio 2010-vb)My code must write a string back to file after trimming. I've decided to run the application as a full trust app. The code obtains the permission via fileiopermission,but still the result is:Acces is denied/Unauthorizedaccessexception (It's not Readonly).

View 4 Replies

Multiple Web Cam Security App?

Feb 14, 2012

I can use the c110 cam and one of the 270 versions at same time to get two seperate displays but when I try to usetwo of the 270 cams at same time which both show in device manager, I get "camera in use by another application" even though there are two cams (270's)and I reference them both seperately from a populated combo box containig all media devices present.will need to use all of the same type of cam for this app which will have from 4 to 16 or more cameras viewing and or recording at the same time. If there were 16 slightly different versions of the same cam which would give me different drivers, It would be fine but as you can probably imagine, not acceptable.

View 4 Replies

Exe Security/diff Result On Multiple OS?

Jun 1, 2009

I have created a small app that gives, User Name, Pc Name, Domain & Local IP Address. I run the exe from my pc (development pc), it works fine. I put the exe on network shared folder and run it from my pc, It works fine. I put the exe on network shared folder and run it from another pc (logged in as admin) it gives "Application attempt to perform an operation not allowed by the security policy. To Grant this application the required permission, contact your system administrator, or use the Microsoft .Net framework Configuration Tool."

so, I contacted my self (since I am the System admin) :) and myself did not know the answer even after I read this [URL]... which says On the Web server, open Administrative Tools, and then double-click Microsoft .NET Framework Configuration. and the the other pc is XP not Windows server.Now If i copy the exe to this pc on a local drive, it will work fine and give right result. Another weird thing is when I run this exe from Windows 2003 server, and it gives a security warning, after i press ok, all the result was fine except the ip address with was "::1"

[Code]...

View 6 Replies

COM-Visible And Multiple Folders?

Jul 20, 2010

I have built a com object in vb with the "Make Assembly COM Visible" that I use from the strange dialect, "Clarioneese." I maintain 2 versions of our main software, so I have 2 folders, one for each version.My COM object works from one of the folders, but not the other. I copied the exposed dll into both. I used regasm on the copy in the nonworking folder, but still, my Clarioneese programs can only work it if run from one folder, and not the other.Working Folder: C:cs46exe (I didn't name this, don't blame it on me)Non working folder: C:cssqlsdkv6 (I inherited this awful folder structure)If I move an exe built by Clarion into the cs46exe folder, the dll works, but not in the v6 folder.I thought I understood how this works, but I guess not. You can't be successful at this unless you're at least 1/2 a bubble off level.

View 2 Replies

Compressing Multiple Sub Folders?

Oct 26, 2011

I've written a backup utility for one of our applications; this process involves coping sub directories of a specified base folder and an unknown number of folders within folders. I've got the process down to copy the files and directories pretty easily but I want to compress the folder structure to keep the space needed as small as possible.I've found a few utilities that work well for getting the files from the specified base folder but not any of the folders that exist in the specified start directory.The one utility I found required me to recursively search directories for the variably named directories and I am hoping for a simple switch that can be used that says base folder/file and sub directories.

View 1 Replies

Copy One File In To Multiple Folders?

Jun 1, 2010

This one has been troubling me for some time , i keep coming back to it researching it for a couple of days on and off then get disheartened and give up for a while.Basically i want to copy one file in to multiple folders that have the same structure except for one distinction

[Code]...

View 2 Replies

Copying Multiple Folders From One Location To Another?

May 17, 2012

I recently designed a web application using VB.Net and tried to copy a folder (containing multiple files) from one disk drive to another but unfortunately I didn't succeed.I tried using a file upload but that is only for single/multiple file selection however I want to select a complete folder instead of multiple files.

View 4 Replies

VB Code For FTP With Multiple Folders For Each FTP User?

Oct 15, 2011

I need to rename/move a file to a different folder after downloading. When I log into the customer's FTP site via the url, user, password it put in into a particular folder. I can download these files using the URI but I cannot Rename (Move) into a different folder (i.e. DONE). I get a The remote server returned an error: (550) File unavailable (e.g., file not found, no access using the FTP Class and FTPClient. [url]...

View 1 Replies

Implement Without Multiple Inheritance?

Sep 1, 2011

I have a library of graphical controls used to display values from a remote device. The controls are typically graphical objects such as a digital meter, analog meter, vertical bar, etc. I first create these controls with a value property. The control will display the value property, e.g. the meter needle will move to the position representing the value.

The next thing I do is to create a new control that inherits the previous discussed control. The new control adds properties that allows the value to be set from values retreived through a communication component. My code that does this is 99% the same for all of the controls. Since I already inherit the graphical control, I can not inherit the class that retreives the values from the communication component.

[Code]....

View 5 Replies

Read A File From From Multiple Folders In VB 2010?

Dec 15, 2011

I'm currently making a program in Visual Basic 2010 for my Course work, and I'm struggling a little as it involves a "log-in system."

The system will save the Users Information in a folder (Called UserInfo.txt) (Address, Password, Email etc..), and the folder name being the username of the User.

When an Admin wants to view or edit a User, I want the Admin to be able to select the User from a drop-down list and when selected, the information of the user loads in and is displayed in the text boxes bellow (on the same form). The Information can then be edited and Saved back to the file of that user selected with a "Save" button.

View 7 Replies

Implement Multiple Threads In Application

May 12, 2010

I need help to implement multiple threads in application.Assume ds.table(0) has 5 and sometime 6 rows rows for i=0 to ds.tables(0).rows.count-1.I have to apply multiple threads, means all five/six rows should start at once using thead and "Process 1" .."Process 4" should also handled by threads.This is hierarchy that I have to apply with threads, how can I do it. It is requested to put piece of code so I can understand better.

View 13 Replies

VS 2008 Implement Multiple BackGroundWorkers?

Mar 24, 2009

I am making an application that has a tabbed interface. Each tab uses a UserControl with the controls that I need on it. The user enters some data & clicks a button, which starts a lengthy process. I would like to run that process in a BGW, so that the user can switch to (or open) another tab & process another set of data simultaneously.

View 7 Replies

Selection Of Multiple Folders At A Time / Scrollbar Position?

Jun 1, 2010

A couple of questions about the FolderBrowserDialog in VB .NET Express 2005...
1. How can I make it so this control allows selection of multiple folders at a time?
2. It remembers the folder I selected last time (in the same session), and highlights that folder, which is good, but that selected folder appears near the bottom of the window. Is there a way to make it so the previously selected folder appears in the middle of the window (i.e. the scroll bar is further down the window)? See screen shot attached for how it currently looks when the window opens.

View 2 Replies

Implementing Config File That Multiple Projects Can Read?

Mar 7, 2011

I am using VB.NET 2010 with a solution that consists of class libraries and winform projects.

Each project has an app.config for it's specific needs. There are however, several settings that are common across all projects. I would like to implement a common config file to hold those, but that effort hasn't been very successful.

After much searching I developed a test program to play with and it was working until I moved the Globalsettings into a separate file. Below is a paste of my code along with the config files I've been experimenting with. I've added the references to system.configuration and made sure my config files are set to always copy to the output directory.

The code compiles, but GlobalSettingsLookup is never set to an instance of NamevalueCollection. I'm guessing it's because the ConfigurationManager can't load the section "GlobalSettings"(?) That's just a guess

My Code:

Dim GlobalsettingsLookup As NameValueCollection = CType(System.Configuration.ConfigurationManager.GetSection("GlobalSettings"), System.Collections.Specialized.NameValueCollection)

[Code].....

View 5 Replies

Usage Of Interfaces To Implement Multiple Inheritance?

Dec 15, 2011

Can any one explain the usage of interfaces to implement multiple inheritance in VB.NET.

View 6 Replies

Implement The AutoComplete Functionality For Multiple Word In A Textbox?

Aug 4, 2010

I am using Visual Basic 2010 Express to develop my windows application.

I am developing an application wherein I need a functionality similar to the outlook email address.

In outlook, we are able to enter multiple email addresses in "To" address box. When typing first few chars of an email, the AutoComplete functionality displays the list of possible email addresses. Either we can select from the list or we can continue typing. As and when we type email addresses, the AutoComplete functionality shows the list of possible email addresses for every email address that we type in the textbox (if anything is there). I am trying to implement this functionality in my application

I found there is a AutoComplete functionality for textbox. below is the code

[Code]....

I know that the AutoComplete is only for one word and not for multiple.

But How to implement the AutoComplete functionality for multiple word in a textbox?

View 2 Replies

Website In Multiple Languages?

Apr 5, 2012

I need to write a web application that should be available in several languages.

I can think of several way to do this, but I would like some advice on the best method.

1) put a table on the SQL server where each line as a unique ID and a column for the text for each language

2) Do the same as 1 but then use an XML file

3) Put for each language a table on the SQL server with only two columns (ID,text)

4) The same as 3 but in XML files

5) make a DLL with a collection class (read the choosen language from the database and place it in a collection, then use a FIND function)

6) make a DLL with a collection class for each language where the data comes from an XML file in the resource of the project.

View 1 Replies

Visual Studio 2008 Log4net Multiple Modules, Same App.config Different Loggers, Dont Work?

Aug 20, 2009

I have 2 console apps projects in the same directory but different projects. There is some common code in the App_Code directory and a common app.config which gets build into seperate .exe.config files.One module (VScanDemonStarter) starts up and writes to one logger with its own appender going to a seperate file. It uses an process.start() to execute the other module (VScanDemon) in another command prompt hidden window.When I run VScanDemon by itself it puts entries into its log file. When I run VScanDemonStarter it puts entries into its (different) log file, the VScanDemon log file gets created, but no entries. I can see it is executing because some files get moved from one directory to another. Just no Log entries.

<root>
</root>
<appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender" >

[code].....

View 1 Replies

.net - Making A Search For Website Without Having To Nestle Multiple IFS?

Jan 4, 2011

I would like to search my database for products from a table(products)The problem is i do not want 600 rows of code with multiple if's.The code looks as following atm(do not want it like this)

Public Function GetSearchResults(ByVal County As Integer, Optional ByVal Searchtext As String = "", Optional ByVal Category As Integer = 0, Optional ByVal SubCategory As Integer = 0) As List(Of Product)
Dim dc As New DataClassesDataContext

[code]....

AND alot of elseifs and so on... The problem is that if the value is 0 at any of the above the search will be for all countys/categorys/headlines.... is there a better way to do this? i mean linq is great there have to be a way to make it more dynamic so i dont need the IFS.

View 4 Replies

VS 2010 - Multiple Login To One Website Using WebBrowser

Feb 12, 2012

I'm working on some application that can multiple login to one website right now I'm using webbrowser to login but can only for 1 account how to make it can multiple login? Can I use webbrowser to make it or have to use another method?

View 5 Replies

Website With Multiple Languages Can't Use Classes In C# Code?

Feb 23, 2012

I'm developing a new functionality for web site project with VB.NET default language in VS 2008. As my preferred language is C# I create subfolder for C# code in the App_Code folder and add appropriate codeSubDirectories element to web.config file. The problem is that I can't refer VB.NET classes in my C# code. All VB.NET classes and structures are placed in global namespace in the App_Code. But even if I place some VB.NET class in the same namespace I've use for my classes in C#, I still can't use them.

View 2 Replies

Combining Image Files - Take Multiple Picture Files And Compact Them Into One File

Dec 10, 2009

I know this is out there and probably illogical but I was wondering if it was possible to take multiple picture files and compact them into one file.... and then retrieve them from the program later? Way to combine any amount of image files into one file

Module Module1
Sub combine()
Dim img1 As New Bitmap("i1.jpg")

[CODE]...

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved