Questions tagged [validating]
107 questions
3
votes
2 answers
JSON validation using REST assured
i'm trying to validate Json Objects. I use https://code.google.com/p/rest-assured/wiki/Downloads?tm=2,
import static com.jayway.restassured.module.jsv.JsonSchemaValidator.matchesJsonSchemaInClasspath;
import static…

user3510509
- 33
- 1
- 5
3
votes
2 answers
Prevent Validating/Validated event from firing in custom textbox - vb.net
I have a custom text box component (inherits from system.windows.forms.textbox) that I created in vb.net (2005) that handles the input of numeric data. It works well.
I would like to suppress the validating and validated events from firing if the…

Bluebill
- 147
- 2
- 11
3
votes
0 answers
oauth access token validation google
How can we validate the Oauth access token being used for accessing a resource ?Here is the scenario i am facing .I am storing the long-lived access token for accessing a resource.Now it suddenly started failing for that access token and i could not…

sumit kar
- 31
- 2
3
votes
3 answers
validating my app im receiving the message "No identities are available for signing"
I archived my app and then put it through validation. a window came up titled "Choose an application record and an Identity to sign with" and then a yellow triangle and the message "No identities are available for signing" was displayed and options…

Jarrah Bridges
- 35
- 1
- 8
2
votes
2 answers
Python validating web forms data
I am able to extract the form field data, but I am NOT able to Put a check / validate the information to see if The field is not empty.
I am writing it in Apache+mod_wsgi, browser FF, Python 2.6, Ubuntu 10.04 64bit
The Following is the sample code…

NCS
- 21
- 1
2
votes
3 answers
How do I display error text via Javascript?
I'm validating forms with Javascript, and I found out how to switch borders/backgrounds of input fields if there is an error, but I want to display text next to the box. How would I do that? Thanks!

Caleb
- 827
- 2
- 13
- 30
2
votes
2 answers
How can i check for character , number and special characters in a string?
I want to user to enter only numbers and characters in textbox i.e no special charaters.
I don't want to use key press event of textbox.
As i need same validation in gridview.
So i want to validate whole string.
Thanks in advance.

Preeti
- 1,386
- 8
- 57
- 112
2
votes
3 answers
How to get tzinfo from ActiveSupport::TimeZones.zones_map?
I'm trying to retrieve an array of all time zones tzinfo but I only need the "America/Los_Angeles" part from each so I can validate timezones being received from an iOS mobile client. Currently running the…

dsieczko
- 403
- 3
- 11
2
votes
1 answer
Rails Validating Virtual Attributes
My model looks like this:
class Item < ActiveRecord::Base
has_many :locations
validate :validate_item_location
def item_location
locations.address+','+locations.city+','+locations.country
end
def item_location=(str)
geo =…

xpepermint
- 35,055
- 30
- 109
- 163
2
votes
1 answer
C# problems with Validating String and displaying an error messages when null or empty
I'm trying to get error messages to show if two textboxes are empty and this stops the form from processing any data if so.
The error message shows when the textboxPhoneNum.Text is empty or filled with invalid data.
However it does not show when…

user2867035
- 165
- 1
- 1
- 6
2
votes
3 answers
Check if user input are in the comboBox items
This is how I check if a user input a empty in comboBox
if (string.IsNullOrEmpty(comboBox.Text))
{
MessageBox.Show("No Item is Selected");
}
How to check if user input are in the comboBox items? For example the comboBox items are a,b,c. When…

Square Ponge
- 702
- 2
- 10
- 26
2
votes
1 answer
Desactivate alert dialog positive button on empty string input
I want to enable an alertDialog positive button only when user input is not empty and disable it if user input is empty, a king of toggling for validation purpose, user input must not be empty. here is my code, even if I put a string the button does…

user1949397
- 23
- 3
2
votes
1 answer
Show error message if user leaves datagridview cell blank
I'm trying to validate a users data in a datagridview. Right now I have a column that needs to show an error message if left blank by the user. I've figured out how to show an error message if the datagridview cell is expecting a number but the user…

stackexchange12
- 622
- 9
- 20
- 41
2
votes
2 answers
How to validate namespace name in CodeDOM?
I found class name validation method using CodeDOM from SE and I used it:
System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(string value)
through this link:Is there a .NET function to validate a class name?
But, class names…

Irshad
- 3,071
- 5
- 30
- 51
2
votes
3 answers
Create class object based on string identifier in C#
I am new to programming to kindly bear me. I using c sharp, .net 4, VS 2010
I have a interface class called IHandler with method IsValidate().
I have a message like AMOUNT 50 22.4, where AMOUNT is identifier.
So format of messages can be like FLOW…

bayyinah
- 139
- 1
- 3
- 12