Asp.net - Subdirectory URL Automatic Rewrite Rule?

Apr 25, 2012

I'm using ASP.NET 4 / VB.NET / IIS to build a web application. Folks will access the web application via a URL like so: [URL] So, for example, here is the urls for Jane Doe, John Doe, and James Doe respectively: [URL] I need to somehow pass them off (no matter what name is entered) to a default.aspx page which then pulls in the name portion of the url and uses it to perform a lookup against the database which contains info. about this particular person and displays a personalized page based on that information.

[Code]...

View 1 Replies


ADVERTISEMENT

Architecture - Apply The Correct Data From The GUI To The Parameters For The Rule And Execute The Rule

Apr 6, 2011

I have a very simple Business Rules Engine that has only three methods. One gets all the rules for the current operation, one will retrieve a list of parameters for the rules, the last applies the rules. The rules are stored in the database as user defined functions using parameters. The client will call the BRE pass in the operation and a Lot Number and the BRE checks for any rules that apply to this operation for this Lot. The client gets a list of rules that apply (the names of the corresponding UDF's in the database) and at which step in the operation the rule applies. When the material gets to a step that has a rule, it calls BRE to get parameters for the UDF for that operation, fills in the parameters with data contained in the GUI and calls the BRE to apply the rule with this lot's specific data. Multiple lots can share the same rule that is why there are parameters for the UDF. This all works well. However, this is assuming we have a set number of rules for each lot at each operation. If the lot needs a new rule applied at this operation we have to add a new rule and corresponding UDF into the BRE database. This is not a problem, the client will now see two rules, however, it only knows how to apply the parameters for the first rule, and there is no code for applying the parameters for the second rule.

For example: Rule 1 states that only the same Lot number items can be put into a carton. So the UDF expects one parameter called LotID and one parameter called Carton ID. It runs the rule (UDF) with these parameters and checks to ensure the lots match. Now the Lot requires a second rule: Only 25 items can be packed in the carton. We create a new rule and corresponding UDF, but this rule has the CartonID and a quantity associated with it.

The GUI can handle Rule 1 because it knows how to apply the correct data from the GUI to the parameters for the Rule and execute the rule, so LotID from the GUI = LotID in the parameter name in the UDF and CartonID from the GUI = CartonID parameter name in the UDF. Now there is a new rule, the GUI sees this new rule, gets the parameters, but has no way to applying the quantity to the new parameter to execute the rule without having to change the GUI. We don't expect there to be many rule changes, however, when they do occur we don't want to have to recompile the GUI every time. Does anyone have any suggestions on how to create a class that could determine the how to apply set the correct parameters? We have thought about a table in a database that maps the parameter names in the UDF with parameter names in the GUI so when we add a new UDF we update the table with the corresponding data from the GUI. That could work but may get cumbersome and would require us to make sure that, that table is kept current. Another suggestion was to name the parameters in the UDF the same as the parameters in the GUI, but this too, would require us to maintain the names in two locations.

View 5 Replies

Access DLL In SubDirectory?

Mar 11, 2011

What I'm looking to do is access a DLL in a subdirtory. So instead of doing this

\debug\App.exe
\debug\lib.dll
I want to do this,

[code].....

View 5 Replies

Where Is Chapter 5 Before Subdirectory

Nov 10, 2010

Anybody here downloaded the book of Tim Patrick "Programming Visuall Basic 2008? In page 172 it says: Extra Credit: Adding an Icon If you've still got a little energy left, we can make one more change before this chapter runs out of paper: adding a custom icon to the main form. Just follow these stepby-step instructions:

[Code]....

View 4 Replies

Get All Files In A Subdirectory Of Isostorage?

Jan 15, 2012

I want to list all files in a subdirectory on istostorage[code]...

View 1 Replies

Save File In Subdirectory?

Jan 17, 2012

I am opening one file checking some number on that then saveing that number in varaible renaming same file using that number.

View 1 Replies

C# :: Delete A Directory Having Subdirectory (not Empty)?

May 9, 2011

How can i delete a directory having subdirectory inside it which is not empty.

View 3 Replies

Movedirectory Move Only Subdirectory Not Maindirectory?

Mar 25, 2011

I am using VS 2005. I tested this code My.Computer.FileSystem.MoveDirectory("D:dir1","D:dir2") when I am moving a source directory to a destination directory its moving all subdirectory of source directory except the main directory... like the above code.... "dir1" not moving into "dir2" itself its moving all subdirectory of "dir1" into "dir2" except the main directory "dir1" itself..

View 2 Replies

VS 2008 Create Directory And Subdirectory?

Aug 18, 2010

How can i create a directory and subdirectorys?? for example how can i create the following directorys and subdirectorys:

[Code]...

View 1 Replies

Access The Public Subdirectory For The Output File(s)?

Jun 8, 2010

I am trying to create and add text to a file.When the code runs, sAppDirectory shows a subdirectory as indicated below, but an exception is thrown because the subdirectory doesn't exist. Windows Explorer shows a " . . . DocumentsMy Documents . . . " structure but the sAppDirectdory doesn't show the "My Documents" in the string. Where did it go?Is there a way I can keep this automatic rather than having to "hard code" the pathname?Or, how can I access the Public subdirectory for the output file(s) via an automatic method? See the code below.[code]....

View 6 Replies

Batch Printing PDF Files From DOS / Windows SubDirectory?

Sep 30, 2011

Any VB example of batch printing pdf files from a dos/windows subdirectory (with only Acrobat Reader installed)? I've got a folder full of pdf's (30 or 40) and I need to fire them off to the networked Laserjet. Also, is there a way in VB, to set the "full duplex" (double-sided) printing option for an HP Laserjet (PCL6)?

View 2 Replies

File I/O And Registry :: Copy Directory To Documents Subdirectory?

Dec 29, 2009

I am writing a program that needs to be able to copy a directory from C:Folder to a folder inside My Documents.I am aware of the My.Computer.FileSystem.SpecialDirectories.MyDocuments which places the directory in the root of My Documents. I however, want to copy the said folder to 'My DocumentExampleFolderFolder1'

View 1 Replies

Create New MS Outlook Rule VB

May 5, 2012

I'm trying to write a rule to compensate for laziness caused by program changes. Used to be, case numbers for family law cases where I work were written as follows: 12-DR-012345. Now, you can get away with 12DR12345, and the file management program accepts it.

View 1 Replies

How To Merge Two DataSets On Specified Rule

Apr 13, 2010

I'm trying to merge two datasets based on these rules:
1. With ds1 and ds2, If the Unique Key from ds1 is not found in ds2, copy it to ds2 and move to next row in the table, else, goto the next part
2. If the unique key in ds2 is found in ds1, check the DateLastEdited row.
a. If DateLastEdited in ds2 is greater then in ds1, copy the row from ds2 to ds1, else , do nothing

I'm just having trouble with the loops. Here's what I have:
Dim ds1 As DataSet = fillNetwork() 'this function fills ds1 with the dataset from a table found on a network
Dim ds2 As DataSet = fillLocal() 'this function fills ds1 with the dataset from a table found on local drive
Dim returnRows() As System.Data.DataRow = Nothing
For Each dtDs1 In ds1.Tables
[Code] .....
This bit of code is just trying to segregate the one that are in both tables from the ones that are just in one table.

View 6 Replies

Applying A Rule Set To Different Lines Of Text?

Apr 27, 2012

The general purpose of my application simply reads a line of text for example:

1. I have a printer issue
2. I have a software issue

I have a rule set as follows:

'Define the class 'Printer' with 14 values as a string...
Dim Printer(13) As String
'The string 'Printer' gets assigned a value, this is repeated another 13 times...
Printer(0) = "Printing"

[code]....

The code simply uses a number of keywords to detect if the issue is a 'printer', 'software', 'telephone',. or 'password' problem.I want to apply this rule set to 10 issues within the same rich text box, with the results sent to a text file. The exporting to a text file I can do, however the main issue is, i cannot read the lines individually.

View 5 Replies

VS 2010 Check First Rule (not Line) In RTB?

Mar 5, 2011

Let's say I have a rtb with a few lines.

line1: (empty)
line2: (empty)
Line3: "blablablablabla"
Line4: ..... etc

How do I get/read the first, only the first line? ("blablablabla")

View 9 Replies

Business Rule Engine - GUI To Check For Three Rules ?

Mar 30, 2011

I have a simple business rules engine that I need to write. I have looked at both Biztalk and Windows Workflow, but they are to much for what we need to do. This is a process that material will come to an operation, the GUI will check for three rules, one for the operation, one for the steps in the operation, and one for the item coming into the operation. These are the only three checks that will be done. It is possible there will be more than one rule for each check. I have a simple database set up to contain all the operations, steps and products and there is a crosstab table that links all the rules to each item. Here is an example of some rules (these are actual rules from the process):

View 5 Replies

Conceptual / Rule Implementation / String Manipulation

Dec 29, 2011

So I'm working on a software in VB.Net where I need to scrape information and process it according to rules. For example, simple string replace rules like making "Det" into "Detached" for a specific field, or a split/join rule, basic string operations. All my scraping rules are RegEx and I store them in a database in rows of rule sets for different situations.What is the best way behind creating/storing rules to manipulate text? I do not want to hardcode the rules into the software, but rather be able to add more as there will be a need for them. I want to store them in a database, but then how do I interpret them?

View 1 Replies

MVC Data Annotation Validation Rule For Collection?

Dec 2, 2010

Is there a dataannotation validate rule for a collection based property? I have the following
<DisplayName("Category")>
<Range(1, Integer.MaxValue, ErrorMessage:="Please select a category")>
Property CategoryId As Integer
<DisplayName("Technical Services")>
Property TechnicalServices As List(Of Integer)
I'm looking for a validator that I can add to the TechnicalServices property to set a minimum for the collection size.

View 1 Replies

Programmatically Modify Access Rule For Directory?

Oct 25, 2011

I want to programmatically change ACL for all the subdirectories into a containing one. Specially when ACL of a particolar user is found I want to duplicate that ACL, change the security identifier and add the rule.

Look at this code:

cDirectoryInfo = New DirectoryInfo(strPath)
cDirectorySecurity = cDirectoryInfo.GetAccessControl()
cAuthorizationRuleCollection = cDirectorySecurity.GetAccessRules(True, True,

[Code]....

View 5 Replies

GDI+ Flat File Disposal Rule For Textured Brush?

Dec 8, 2010

I place these 2 questions in this forum simply 'cause those that know GDI+ best are probably .Net vs. VB6 classic users... So here it goes.I'm using GDI+ flat file to generate a textured brush with image attributes. Creating these are no problem, but I can't find documentation that says whether disposing of the brush will dispose the original image & attributes handles I've assigned to the brush or whether I need to destroy those also? I can't locate anything that says whether GDI+ copies the handles or uses the ones I provided. Destroying the handles well before the brush is destroyed does no damage. Thus my assumption is that the handles are copied. But you know what they say about assumptions.

2. Likewise I use a GDI+ function to return the image assigned to a textured brush. Again, I don't know if that returned image handle is to be disposed by me or not. The returned handle changes every time I call the function, so I'm assuming that I should be destroying it. Thanx to all that can shed any light whether from personal experience or pointing me to some black & white documentation.

View 1 Replies

C++ To VB - Rewrite The Program In VB?

Oct 12, 2010

So there is a program that is missing some files and written in C++, and it can no longer be compiled. Therefore I am trying to rewrite the program in Visual Basic (C++ is not my preferred language... lol) And I need some help understanding what this code is doing and how I can, in a way, "convert" it to VB language. I looked for a C++ to VB.NET converted but it costs $199 and I actually want to know what the code is doing... Here is part of the code for one of the C++ files (it is part of a program that decodes a file type into a readable format, BTW.):

[code]...

I want to know what is going on here and how I can recreate this in Visual Basic.

View 13 Replies

How To Rewrite EDI Translator

Mar 28, 2011

Currently I have to parse each row in the file into a string array segments(). Then I look at the first few elements to see where I am at. E.G.

'Patient Loop
IF Segment(0) = 'NM1' and Segment(1) = 'QC' and current loop = '2000' Then
PatientFName = Segment(2)

[code].....

View 9 Replies

How To Rewrite VB6 DefInt A-Z

Oct 28, 2009

How would I rewrite VB6 DefInt A-Z inVB.net?

View 1 Replies

How To Rewrite WTF File

Mar 7, 2009

I need a code that rewrite the Realmlist.Wtf file but before that it have to ask for the path to the file. And if its possible it have to remember the path, so if I click it again it automatically change it.

View 9 Replies

Rewrite A VB Project?

Jan 9, 2012

I'm new to programming and gave VB.NET a try. I (almost) finished a project (using VB.NET Express 2010) and now I'd like to rewrite it in HTML5 or CSS or Javascript or AJAX, or embedded Flash. Which one would you recommend? Which one as those 5 would be easier to learn for someone with some vb.net experience?

View 4 Replies

Rewrite Some Code To C#?

Oct 23, 2011

I have some code that i have wrote earlier in VB.NET

Dim zippedLogFileName = f.FullName + ".gz"
Try
Using inputStream = f.OpenRead(),

[code].....

View 4 Replies

Enforce Validation Rule In Create Table Statement For A Coloumn

Dec 15, 2011

I want to enforce validation rule in create table statement for a coloumn. im using vb.net as front end and access as back end.

View 2 Replies

Import Or Create An Outlook 2003 Rule (.rwz) With VSTO 2005?

Jul 29, 2009

I would like to automatically create an Outlook rule (move email containing something in subject to folder xyz) but dont know how to achieve this. Of course I can create the rule and export it to a .rwz file. This file can be imported manually, but how can I import it automatically?

Can I import a rule through my VSTO 2005 Outlook (2003) Addin? Or can I create the rule from within this addin?

View 2 Replies

Pointer - Rewrite A C++ Library

Jan 4, 2012

I'm trying to rewrite a C++ library. But I have an issue. I'm not extremely pointer-savvy. In the C++ class there is a std::vector that holds unsigned int pointers (vector<unsigned int*>), and the int pointer just points to an array of integer data.

Here is the C++ code I'm a bit unsure about:

unsigned int* relocation = m_relocations.front();
m_relocations.pop();
unsigned int* reloc = *(unsigned int **)relocation;

View 3 Replies







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