.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

validated duplication

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :WPF

Hi All.

In DetailForm I would like to validate TextBox1 in case when user try to save record. How to prevent save duplication value? I will appreciate for sample.


View Complete Post

More Related Resource Links

if 'other' from drop down is selected, the respective details textbox is now validated using a req

Hi, I'm developing a system with a number of drop down lists. One of the questions relates to the light conditions at the time of the incident (for example, it could be dark, poorly lit, dusk etc...)One of the options on the drop down list is 'other'. (i argue with my client that if they're using dropdown lists, don't use other, but they disagree)The next field is 'If other, please give details'. What i'm basically looking to acheive is to say that if you select 'other' from the dropdown list, the 'if other' field becomes required using a requiredfield validator. (and the reverse too, so if you choose a pre-poulated answer such as 'dusk', the 'if other' field is not required.)I have all my other validations working fine and my drop down list is populated from an SQLDatasource (not ASP.net Items)My dropdown list id= ddlLightMy 'other' field id= txtbxLightOtherMy required validator for the 'other' field id= requiredvalLightOthermy sqldatasource id= sqldatasourcelightI'm thinking something like this, but it's not quite working for me:If ddlLight.Text = ("other") Thentxtbxlightother...Any assistance would be great. I've done this before and i'nm frustrating myself as i can't seem to work it out!ThankMike

prevent duplication value


Hi All.

In child form I have SvcTextBox. That is editable field and I would like to prevent user to save duplication value. How it to do?


SharePoint 2010 Installation Failed - FIPS validated cryptographic algorithms

Hi All,
We are trying to install SharePoint 2010 foundation on a Windows 2008 Standard-SP2 (NOT R2).
After installing SharePoint when we run the config wizard for the first time we get the below mentioned error. We have another box which hosts MS SQL Server 2008 and we noticed that the config database is created but the wizard fails during the Create Config Database step.
Local security policy for FIPS is disabled.

Failed to create the configuration database.
An exception of type System.InvalidOperationException was thrown.  Additional exception information: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
   at System.Security.Cryptography.SHA256Managed..ctor()
   at Microsoft.SharePoint.UserCode.SPSolutionValidatorCollection.ComputeHash()
   at Microsoft.SharePoint.Administration.SPUserCodeService.UpdateValidatorsHash()
   at Microsoft.SharePoint.Administration.SPPersistedChildCollection`1.Add(T newObj, Boolean ensure)
   at Microsoft.Sha

SQL 2008 login server duplication


New Laptop running SQL server express 2008 R2.  Did a reinstall of SQL after some had uninstalled the first install. 

When logging in now I see the server name twice as well as local twice. How can I remove the duplicate names?


xsd with duplication test



I have an XML which has a dynamic number on elements.

I also don't know the names of the elements

I want to verify using an XSD file that for each child node, no element will repeat himself

meaning, the following is illegal.


<a> b </a>

<a> c </a>


what should I write inside the XSD file?


Tsahi Bar

How much web layer input (ex. GridView DataKeys) should be validated in the business layer?


Back in the day when we were mostly submitting forms from one page to another we used to have to validate all post parameters to make sure that the ids somehow belonged to the user that was currently logged in.  After all you didn't want a "hacker" to be able to pull someone else's information.  In modern ASP.NET application in a situation where a lot of these keys are part of server controls (ex DataKeys of GridView) and is stored in ViewState which is supposedly stamped with a hash that gets validated on every post back, does anyone still validate that the key that was retrieved in fact belongs to the user?

I currently do, my business layer methods tend to take an instance of a "profile" object that is maintained in session for each user, the profile contains all basic information including the company etc. that the user is associated with.  Having the profile in every business method I can validate that any piece of information requested by the web layer from the business layer does in fact belong to the user requesting it.  Another thought is that the library (business layer) can also be reused outside of ASP.NET where perhaps the input would not be as secure.  I am wondering if all of this is overkill as all of my basic GetSomething() methods tend to have extra trips to the database to make sure that an ID

FIPS validated cryptographic algorithms


I have enabled the FIPS algorithm policy on our windows server2008 machine. Now, any page that has a viewstate is abending with the following error: 

This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

This is used in a web farm so we have a machine key defined in our machine.config. If I add decryption="3DES" to the end of that key everything works again. My guess is the default is AES which isn't FIPS compliant. I also noticed this is not an issue on my iis 6.0 servers running server 2003. Very similar setup.

Is there a better way to handle this situation? I read some articles about doing something similar in the app web config. The web.config worked fine. However, the machine.config change seems better because I won't have to change every application.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend