Make Enumerations Available To Multiple Class Libraries?

Jan 27, 2010

I have a Solution with a web project and some class libraries. The enumerations are in a the enumerations folder within my web project. I would like to make some of the enumerations available to other class libraries within my Solution. Should I just add another class library and call it Enumerations to my Solution so that all class libraries and my web project can access them?

View 3 Replies


Similar Messages:

Architecture :: How To Make The Class Libraries

Jan 22, 2010

Task is to develop class libraries that can be re-use in projects but assambies should be copy righted. By this I mean developer will not give the code of class libraries to the clients yet they will provide the code of there sites/ applications, these libraries will be used just as internal development libraries. I want to make Business Logic Layer, DAL, Business Objects as class libraries

Q1. How I can control unathorised use of libraries ?

Q2. How to make assamlies non extendable ?

Q3. What security measurs I should take on this.

View 6 Replies

C# - Handling Multiple Languages Across Multiple Applications And Shared Libraries?

Jan 18, 2010

We are developing products that will be used in the following way:

Various shared libraries which may be used by multiple products. I anticipate these libraries will mostly need to access string resources that contain error messages/exceptions. Various end-user based applications, designed to run as standalone apps on a PC. They will be required to support multiple languages upon deployment/installation.

Various web-sites which may be required to support multiple languages either at deployment time or possibly at runtime (i.e. minimal or zero downtime). Potentially the site might need to support multiple languages at the same time if being accessed globally.

We may be required to allow customers access to our language files for editing themselves. We would not wish to allow them access to our source code (other than the resource files/dlls) in order to achieve this. We might need to incorporate a facility to log exceptions in our native language (English in this case) and display them in the translated language. This will us debug our customers solutions in the field.

I am already aware of products like RCWinTrans and handling multiple languages in VC++/MFC applications. However, the requirements we are faced with here are more extensive and thus require us to make a few up front decisions that could be difficult to change long term, so ideally we want to make the best choice now. Based on my own knowledge, I have a few questions although I may be missing some tricks with .net that will be happily received. Here are my questions:

What would be best? Put all our resources in a seperate DLL per VS solution OR put the resources in each VS project. The way I see it per solution is easier to manage, modify, and allow customer access. The per project solution seems cleaner though and makes the individual projects more portable. This method would apply to our shared library based solutions as well as our end-application based solutions.

Is it possible to have two seperate resource files loaded at once i.e. if we want to log the exceptions in English but supply them back up the food chain (as a message in an exception) in the translated language? Are there any tricks we can use to automate this like AOP?

View 1 Replies

C# - Convert Class Libraries From 3.5 To 4?

Nov 21, 2010

I have a Solution that has two class libraries. I'm trying to convert the whole solution from asp.net 3.5 to 4.

Right now the libraries are in my Visual Studio 2008 projects folder. I've installed VS 2010. Should I just copy the libraries from the 2008 project folder to my 2010 project folder and open them in VS 2010?

What is the best practices for this? The entire solution is in a single folder in my VS 2008 Project folder, and each application and class library is in their own subfolder.

View 3 Replies

MVC :: Designing The Class Libraries Structure?

Jan 12, 2011

I am starting an MVC application and designing the class libraries structure at the moment. I started off with the following class library structure as below.

[code]....

As there will be about 3-4 developers working on the project I thought it might be useful to split out each section of the application into their own class libraries so each developer can work on a different section without interferring with each other.

In our application we have 5 tabs e.g. Dashboard, Admin, Reports, Editor, Subscribers. Would it be wise to put each tab into its own class library like below.

[code]....

View 1 Replies

Design Guidelines For Developing Class Libraries?

Jan 18, 2010

our dev shop uses the naming guidelines as laid out in MS's MSDN content "Design Guidelines for Developing Class Libraries". It's a pain though having to refer to this via the web only. Does anyone know if this content is available in PDF or CHM format? My devs are resisting reviewing the webpage and I think sticking a portable file in their face might be more successful.

View 2 Replies

Version .net Site Like Doing So With AssemblyInfo.cs In Class Libraries?

May 31, 2010

Is it possible to version a asp.net site like doing so with AssemblyInfo.cs in Class Libraries?

View 2 Replies

AJAX :: Microsoftajax.js Libraries To Make My Webservice Calls Via Javascript - Services Returning Basic Types

Mar 9, 2010

I'm working with the MicrosoftAjax.js libraries to make my webservice calls via javascript, right now all my services are returning basic types, like string, int, bool. can i also have my services return things like DataSets, DataTables, or custom Classes that I have built to my javascript side?

View 3 Replies

What Is Name Of Class To Make An Object Of Div Class

Jan 30, 2011

Actually i want to cast the type from find control to div but i cant find the class with div or body or form name why so?

View 5 Replies

.net - Make Obejct Of A VB Class From C# Class?

Jan 9, 2011

Can i make obejct of a VB class from C# class, if possible then what i'll have to do?

View 3 Replies

Use Multiple JQuery And JQuery UI Libraries?

Apr 16, 2010

Is there a way to use multiple jQuery and jQuery UI Libraries in the same source?

I know about noConflict and using multiple jQuery Libraries with this method, however is it possible to use multiple jQuery UI Libraries?

Essentially I would like to use jQuery 1.2.6 and jQuery UI 1.6 together for a certain portion of the page that only works with those libraries

and then for everything else use the latest jQuery Libraries of 1.4.2 and UI 1.8.

View 2 Replies

C# - Multiple Rows Have Multiple Submit Buttons, Should I Make A Form For Each Button?

Jan 28, 2010

I am listing about 20 rows, each row represents an Order.Each row needs to have 3 buttons, each button click will perform a different action.I have 3 actions to handle each button post request, I am just unsure how to setup the Html forms for each button.

<tr>
<td>
<form method="post" action="/orders/do1"><input type=button ... /></form>
<form method="post" action="/orders/do2"><input type=button ... /></form> [code]....

Should I create 3 forms for each button, per row in my listing?(that would mean 20 rows x 3 forms = 60 forms on a page)Is that 'ok' to do? (i.e. or is there a better way to do this?)

View 8 Replies

Web Forms :: Multiple End Points With Multiple Contract And Class Using WCF?

May 7, 2015

I am developing WCF services with single Contract, but now i need to create multiple Contract & Class with multiple endpoints. My class hierarchy is as follows

Employee :IEmployee
{
}
User : IUser
{
}

I have 2 Interface IEmployee, IUser n 2 Class Employee, User. Creating different endpoints with same binding.

View 1 Replies

Web Forms :: How To Make DLL Of Class Files

Apr 16, 2010

I am working on a web project(asp.net with c#),In app_code there are 10 class files(.cs). I want to make only one DLL of these files. How can i do this.

View 6 Replies

How To Make Database Connection Class

Jan 19, 2011

how make the class for database activities and it can be used in code behind

coz i want avoid the connection opening, closing activities, insert,update etc methods in code behind frequently.

the class should include connection open and closing method, passing values to stored procedures etc.

How should we construct it?

View 8 Replies

How To Make Dynamic Class Names

Jan 25, 2010

I got a design which I basicly use for 100's of websites, and have a virtual folder for masterpages with is copied from a project using build events.Each Masterpage (as this stage), I can rename them or change the names if it helps with this problem, but I need to be able to access the propertys in the masterpage code / dllso I have come up with this

[Code]....

View 5 Replies

.net - Make A Vb.net See A Vb 2005 Class Assembly?

Jul 26, 2010

I am a java developer that inherited a vb.net web application. This app relies on a VB class assembly that builds in to a dll. I have made some changes to this class assembly but I cant seem to get the vb.net app to pick up the changes. I thought that using regsvr32.exe or regasm.exe would do the trick but after reading a bit more they don't appear to do what I need.When vb.net uses code such as this import where is it getting the reference to "MyClassName"?

<% Import namespace="MyClassName" %>

View 2 Replies

C# - How To Make A Generic Data Access Class

Aug 5, 2010

ASP.net C# 3.5 Framework, working in Visual Studio 2008 currently.

What I want is a Generic Data Access Class. I have seen several of them but what I want is to see one that I pass the Connection String and the SQL statement and it will return a List of Objects or when only one item an Object or when no response needed a boolean to let me know if it succeeded?

View 3 Replies

Possible To Make Dynamic Link Building Class

Jul 3, 2010

Im new to ASP.NET. Im trying to develop ecommerce web application and i found dynamic link building class and i dont understand how it works.

public class Link
{
// Builds an absolute URL
private static string BuildAbsolute(string relativeUri)
{
// get current uri
Uri uri = HttpContext.Current.Request.Url;
// build absolute path
[code]...

View 3 Replies

.net - Make A DataRow Class That Implements ILiquidizable?

Dec 12, 2010

I'm trying to use Dot Liquid which is one of the coolest templating engines for c#.

Dot Liquid uses a way in order to make using templates safe. Here is the explanation page.

Here is the Explanation from it's wiki:

[code]...

So when I pass DataRow to liquid, liquid wont let me show it's content and tells me that:

'System.Data.DataRow' is invalid because it is neither a built-in type nor implements ILiquidizable

Is there any solutions to pass DataRow object that implements ILiquidizable too?

View 1 Replies

Visual Studio :: Make A Class Like A Code Behind?

May 10, 2010

I have two classes (say someclass.cs and someclass.generatedcode.cs). How do I make the someclass.generatedcode.cs inside of someclass.cs (something like a code behind) in visual studio?

View 12 Replies

How To Make The Setting Works For Class Library Project In C# 2.0

Jan 29, 2010

I am putting the setting under the property of one of my C# Class Library project for app setting:

EUCAccountService_ConnectionString
EUCTelcoDB_ConnectionString

In the development, it works nicely. Until I deported to production, I realise that the component that use those thing .. it just hang. I found that under BIN when it compiled dewaCorp.EUC.TelcoDB.Data.dll.config and open up that file and turn out nothing.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
</configuration>

How to make this works? I thought by compiling it, it turned to some sort config file or something. But it didn't.

View 2 Replies

Make Asynchronous Call In Static Class Function?

May 17, 2010

is it possible to make an asynchronous call to a static class function?

View 3 Replies

WCF / ASMX :: Web Service Can't Make An External Call To A Class Library?

Feb 10, 2011

I have an asmx web service, and every time I try to call a static method in another project (which is a class library), I get an internal server error 500.

View 3 Replies

How To Make A Class Recognize That An Interface Found In A Separate File Exists

Mar 8, 2010

I've made an interface called ApprovalEvent in a separate file with the namespace myproject... I've also made a class called PurchaseOrder... it's also in the same namespace, just in a separate file. Whenever I try to make PurchaseOrder implement ApprovalEvent it always says that ApprovalEvent is undefined...

How can I make the class recognize that the interface exists but is in a different file?

Here's some code:

[Code]....

View 1 Replies







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