.net - Enterprise Library RangeValidator Syntax

Jan 8, 2010

I'm trying to use the Enterprise Library RangeValidator attribute to validate that a decimal value is greater than zero:

<RangeValidator(GetType(Decimal), "0.00", RangeBoundaryType.Exclusive, "1", RangeBoundaryType.Ignore, "MyMessage", "", Nothing, False, "", "")> _
Public Property Holding() As Decimal

[Code]....

As far as I can see I am using the overload correctly. It works fine if I remove the messageTemplate related parameters but I want to be able to specify a custom message.

View 1 Replies


ADVERTISEMENT

Are Using Microsoft Enterprise Library?

Jun 13, 2009

In my shop we currently develop what I would consider small to medium sized projects.We have been investigating the Enterprise Library and how it may be able to help us in development.I have particularly been looking at the Logging block and comparing it with Log4Net.It seems to me that the Enterprise Library blocks would be an extremely over-engineered solution for something like simple application logging.That being said. Are you using the Enterprise Library and on what size projects? What are your thoughts on the Enterprise Library as a whole?

View 10 Replies

Logging Out Of The Box Vs. Enterprise Library?

Jan 26, 2009

I just got finished watching a short video on logging using some of the built in concepts in Visual Studio 2005. This seems to do a good job. My question is why do people look for other solutions to logging such as Enterprise Library or Log4Net when there is a simple solution out of the box?

The video I watched primarily used the following for logging.

Code: My.Application.Log.WriteEntry(sb.ToString, type)

View 4 Replies

Enterprise Library 5 Using MS Access Database?

Jul 7, 2010

how to use the Enterprise Library 5 connecting to a MS Access database using VB.NET 2010 on a windows forms application. Looking for quick code samples on how to add, select, update, delete records from an Access database.I'm trying to adopt Enterprise Library in my applications but I'm not finding much information on it.

View 2 Replies

Exception Using Microsoft Enterprise Library Data

Apr 15, 2009

i'm trying to debug an application i'm currently developing but somehow i'm now getting the following exception The type initializer for 'SupervisorProducao.MdlConstantes' threw an exception. the exception occurs when i reach this

[Code]...

View 1 Replies

Update 6.0 Enterprise Edition With MSDN Library

May 30, 2010

I want to know how can i update my visual basic 6.0 MSDN library.

View 1 Replies

VS 2010 NullReference Exception With Enterprise Library 3.10?

Mar 7, 2011

I'm getting a design time NullReferenceException on Dim db As Database = DatabaseFactory.CreateDatabase()and I can't figure out what to do about it. Has anyone experienced this problem or know the solution?

View 6 Replies

C# - Enterprise Library Strong Naming Guidance Package

Mar 18, 2009

For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1

I need this to sign the assemblies to add them to the GAC.

Does anybody know where I can find it?

View 2 Replies

Set Command Time Out For Enterprise Library 4.1 Data Access?

Sep 14, 2010

I am trying to set command timeout for enterprise library 4.1 data access. I used below code for get command object from Database.[code]....

View 2 Replies

Encrypt Connections Strings While Also Making Them Editable (using Enterprise Library)?

Jul 28, 2009

we are using the Enterprise Library data access application block in our data layer for an application. We must be doing something wrong though because we cannot seem to get encryption and the ability to reconfigure connection strings working well. For example, when the application starts, it checks if the connection strings are "Protected", and if they are not, we encrypt them using the following function:

[Code]...

Then comes another issue. If a user installs an update for the application, the first time it runs, nothing can connect if the config file was previously encrypted. A restart of the application (second time running) will fix the issue. with all of the battles we are fighting here, I wanted to ask if we are doing this right? How should we be encrypting and allowing updates. If you need to see the exceptions thrown, I can provide those upon request (will need to change some code to get them again, but it is doable).

View 4 Replies

"Refresh" Connection Strings Used By Enterprise Library?

Jun 15, 2009

Our app allows admins to connect to a different database, which means we need to temporarily decrypt the app.config's connection strings, re-write them, then re-encrypt it. Here's my current 'simplified' code showing how we do all 3 tasks:

Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
Dim section As ConfigurationSection = config.GetSection("connectionStrings")

[Code]....

View 2 Replies

.net - C# Library To Syntax-highlight Python Code On A HTML Page?

Jan 11, 2012

Is there any C#/VB.NET library that can produce HTML output from Python sourcecode ?
I mean display the Python sourcecode syntax-highlighted on a website ?

It should be C#/.NET code, not a JavaScript library. This is because I highlight many programming languages, and their HTML is already generated server-side, so I really can't use a JavaScript library.

View 1 Replies

Rangevalidator For Dd-mmm-yyyy Format

Jun 30, 2009

By default range validator support mm-dd-yyyy ..but how i will chage to dd-mmm-yyyy format..

I need to implement only with range validator no other validators..

View 1 Replies

RangeValidator Not Working When Selecting DropDownList Value Using JQuery?

Jul 2, 2010

I inherited a site which I am in the middle of updating which has a DropDownList and a RangeValidator assigned to it. The data is bound to the dropdown on Page_Load. The values are retrieved from the database so the value property of each item is set to the unique ID of the item in the DB.

The RangeValidator looks something like:

<asp:rangevalidator id="ddRangeValidator" runat="server" ControlToValidate="ddMenu" ErrorMessage="Please select value in range" MinimumValue="1" MaximumValue="100000" Type="Integer">*</asp:rangevalidator>

I have a method which automatically populates this value in jQuery e.g.

$("#ddMenu").val("An Option"); This works, however, when I try to post the page the range validation fails. Then even if I manually select that value, or select another valid value it still won't validate. The only way to make it validate is to select non-valid value and then re-selecting a valid one.

[Code]...

View 2 Replies

VB2010 Class Library: Create A Static Library Instead Of DLL?

Jun 21, 2011

I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?

View 6 Replies

Connect VB To Sqlyog Enterprise Database?

Jun 5, 2011

Make a program regarding on connecting vb.net user login program

View 1 Replies

Create Shared Enterprise Dataset In Dot Net?

Sep 3, 2009

I want to create an enterprise wide dataset so that my function will call this same dataset from any of the webpage. I've created shared code in the App_Code folder. In it, there's are dataset properties. Will the pages extract info from these dataset properties each time I call the shared program or will create new property for each page.I'm trying to emulate an Enterprise Java Bean type of coding.

View 2 Replies

Crystal Report For Vb 6.0 Enterprise Edition?

Jan 12, 2012

This is a Visual Studio forum but can you help me regarding Visual Basic 6.0 Enterprise Edition? I cannot find the CRYSTL32.exe in Visual basic 6.0 Enterpise Edition installation cd. I already some articles and it says that i can find it through this path CommonToolsVBCrysReptCrystl32.exe I alre cd.I saw in my installation cd this path (when I open the cd) Common/Tools... and there is no VBCrysReptCrystl32.exe VBCrysRept so that i can run the Crystl32.exe? I'll be needing it for my programming project which has Official Receipt issuance and somebody told me that i can use crystal report for pie Chart. Is that true that I can use Crystal report for pie Chart? Please also help me to find tutorial regarding crystal report. I am using Visual basic 6.0.

View 1 Replies

Include Sql Enterprise In Setup Project?

Apr 8, 2012

include sql enterprise in setup project?how to include sql enterprise when it's not appear in prerequisites of the setup projectand if it's not possible do i have install the full enterprise edition on the client machine?i use visual studio 2010 and sql enterprise 2008.i'm a database beginner and i always used to use sql express edition but now data base getting grow fast and the limitations of the sql express for 4gb make

View 1 Replies

.NET 2010 TO SQL SERVER 2008 Enterprise Connect?

Jun 2, 2011

I am trying to connect to SQL SERVER 2008 from vb.net but failed with Error 40. If I try to connecton to serversqlexpress, error 26 is raised.

View 1 Replies

Memory Limitation On X86 Win 2003 SP2 Enterprise Edition

Aug 24, 2011

We are using VB.NET 2008. This program must run on a 32 bit operating system.

The machine where the program is running at is a 24 core machine which has 16 Gig of RAM.

It has a Win Server 2003, Enterprise Edition SP2, x86 based PC.

When the VB.NET program VM Size reaches about 1.3 Gig, it says "Exception of type 'System.OutOfMemoryException' was thrown."

When I go to Task Manager and check the Processes, "Mem Usage" for this program is about 300 Meg and "VM Size" is 1,341,300.

These are the information from Accessories - System Tools - System

Information:

Total Physical Memory is 16.37 Gb.

Available physical memory is 14.46 Gb.

Total virtual memory is 17.74 Gb.

Available virtual memory is 15.73 Gb.

Can my VB.NET 32 bit program access more than 1.3 Gig of VM in Win 2003 SP2 Enterprise edition ? How can it do that ?

According to [URL] the memory limit on this kind of machine with x86 is 64 Gig.

View 8 Replies

Retrieve Variable From Sql(enterprise Manager) In Program?

Jul 4, 2011

My sql statement adds details of a new employee returns a @employeeID. I need to retrieve this @employeeID to display the details of the newly added employee in my viewprofile.asp.vb. How do i go about coding the VB to retrieve the @employeeID from the SQL and include the @employeeID variable in my VB code so that it displays my newly added information?

View 3 Replies

Difference Between Professional And Enterprise Edition Of Visual Studio

Aug 23, 2010

What is the difference between professional vs enterprise edition of visual studio.

View 2 Replies

IDE :: Sqlserver 2008 Expresss Installation For Enterprise Manager?

Jan 8, 2011

I have recently installed SQL SERVER 2008 Express edition for learning purpose. but I am unable to find SQL Enterprise Manager in the START Menu. It wont come with Express Edition?then, how can i create/manage databases. I am a starter in .Net. Anybody please help me.for your info, i have installed SQLEXPRADV_x86_ENU.exe - sql express with advanced services?

View 2 Replies

VB 6.0 Common Dialog Box With MS Office 2007 Enterprise Edition?

Oct 19, 2009

Whenever the code invokes the open dialogue box statement of the VB6.0 code, the application gets terminated.It is expected to open the dialogue box to provide the file path. I'm also having MS Office 2007 enterprise edition. If I do not have MS office 2007 enterprise edition installed, then it is working fine without any problem. So any suggestion/remarks to work on MS office 2007 enterprise edition?

View 1 Replies

Setup Of VB 6.0 Enterprise Edition Giving Initialisation File Error

Feb 18, 2010

I am having trouble while installing Visual Basic 6.0 . Setup gives message

View 5 Replies

Syntax/Command Trying To Implement Syntax Highlighting In RichTextBox?

Oct 12, 2011

I am having an issue trying to figure this out. I am writing a script editor that uses tabs (a tab control) and I want to implement syntax highlighting. My issue is that every sample I can find on syntax highlighting uses

Private Sub RichTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged

View 1 Replies

If Exists Then Update Else Insert Not Working Properly In SQL Server Enterprise Edition?

Apr 3, 2012

I have to insert/update shipper information and I wrote a stored procedure like this:

IF EXISTS (SELECT * FROM sysobjects WHERE name='usp_Nucleus_LSS_AddShipperInfo' AND type='P')
DROP PROCEDURE usp_Nucleus_LSS_AddShipperInfo
GO
CREATE PROCEDURE dbo.usp_Nucleus_LSS_AddShipperInfo

[code]....

I am using VB.Net 2.0 and SQL Server Enterprise edition.

View 1 Replies

C# - Syntax Conversion - Translate Syntax ?

Dec 16, 2009

Can any one translate the following syntax to vb.net.

m_TextBox.Loaded += TextBoxLoaded
m_TextBox.Loaded -= TextBoxLoaded;
private void TextBoxLoaded(object sender, RoutedEventArgs e)[code].....

View 4 Replies

Crystal Enterprise 10 Adhoc Query Rounds (trims) Data To 2 Decimal Digits : Get Exact Data (without Trim) As In Database?

Apr 5, 2010

I am using Crystal Enterprise 10 to run Adhoc Query to generate reports.My database has data with 4 digits after decimal point. But, the Ad Hoc query report rounds the data to 2 digits and displays that. Is there a way I can change this default behaviour to show the data as it is without rounding it?

View 5 Replies







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