Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
GeneralRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter28-Jan-14 20:45
professionalKornfeld Eliyahu Peter28-Jan-14 20:45 
GeneralRe: Validation and Data storing in one step Pin
nitin_ion28-Jan-14 20:46
nitin_ion28-Jan-14 20:46 
GeneralRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter28-Jan-14 20:50
professionalKornfeld Eliyahu Peter28-Jan-14 20:50 
GeneralRe: Validation and Data storing in one step Pin
nitin_ion28-Jan-14 23:18
nitin_ion28-Jan-14 23:18 
AnswerRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter28-Jan-14 23:21
professionalKornfeld Eliyahu Peter28-Jan-14 23:21 
GeneralRe: Validation and Data storing in one step Pin
nitin_ion28-Jan-14 23:22
nitin_ion28-Jan-14 23:22 
GeneralRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter28-Jan-14 23:31
professionalKornfeld Eliyahu Peter28-Jan-14 23:31 
GeneralRe: Validation and Data storing in one step Pin
nitin_ion28-Jan-14 23:37
nitin_ion28-Jan-14 23:37 
that's what i am doing
but see
i need to first
extract
validate
store

[RegexValidator(@"[a-zA-Z@$^�-9\s\S]{2}", ErrorMessage = "ok")]
public string RecordType { get; set; }

[RegexValidator(@"[a-zA-Z@$^�-9\s\S]{2}",ErrorMessage="ok1")]
public string VersionNumber { get; set; }

[StringLengthValidator(1, 50, MessageTemplate = "Last Name must be between 1 and 70 characters")]
public string ClientName { get; set; }

-----------------
string Line="RA01XYZ 201401231445012345611012345678998765432101234DESTINATIONNAMESIZEIS70 SENDINGENTITYIDENTIFIER SENDERNAMESIZE70 ";
p.RecordType = Line;
p.VersionNumber = Line;

Now issue is that it will always start from 1 character it will not increment
RecordType will start from 1 to 2
so VersionNumber should start from 3 to 4
and ClientName from 5 to 50

i guess i'll try mentioning this using StringLength validator but then datatype validation will be a case
GeneralRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter29-Jan-14 0:16
professionalKornfeld Eliyahu Peter29-Jan-14 0:16 
GeneralRe: Validation and Data storing in one step Pin
nitin_ion29-Jan-14 21:09
nitin_ion29-Jan-14 21:09 
AnswerRe: Validation and Data storing in one step Pin
Matt T Heffron29-Jan-14 10:24
professionalMatt T Heffron29-Jan-14 10:24 
AnswerRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter29-Jan-14 21:49
professionalKornfeld Eliyahu Peter29-Jan-14 21:49 
GeneralRe: Validation and Data storing in one step Pin
Matt T Heffron30-Jan-14 6:38
professionalMatt T Heffron30-Jan-14 6:38 
GeneralRe: Validation and Data storing in one step Pin
Kornfeld Eliyahu Peter30-Jan-14 6:42
professionalKornfeld Eliyahu Peter30-Jan-14 6:42 
QuestionHighlight Text in html document Pin
Sumit Rastogi SRA27-Jan-14 20:27
professionalSumit Rastogi SRA27-Jan-14 20:27 
QuestionRe: Highlight Text in html document Pin
Richard MacCutchan27-Jan-14 22:18
mveRichard MacCutchan27-Jan-14 22:18 
AnswerRe: Highlight Text in html document Pin
Sumit Rastogi SRA27-Jan-14 22:57
professionalSumit Rastogi SRA27-Jan-14 22:57 
AnswerRe: Highlight Text in html document Pin
OriginalGriff27-Jan-14 22:27
mveOriginalGriff27-Jan-14 22:27 
GeneralRe: Highlight Text in html document Pin
Sumit Rastogi SRA27-Jan-14 22:57
professionalSumit Rastogi SRA27-Jan-14 22:57 
AnswerRe: Highlight Text in html document Pin
londhess27-Jan-14 22:35
londhess27-Jan-14 22:35 
GeneralRe: Highlight Text in html document Pin
Sumit Rastogi SRA27-Jan-14 23:00
professionalSumit Rastogi SRA27-Jan-14 23:00 
QuestionWhich of the following methods and attributes are NOT part of the VB.NET Exception class API? Pin
Sandhya Bandar27-Jan-14 11:15
Sandhya Bandar27-Jan-14 11:15 
AnswerRe: Which of the following methods and attributes are NOT part of the VB.NET Exception class API? Pin
Pete O'Hanlon27-Jan-14 11:44
mvePete O'Hanlon27-Jan-14 11:44 
AnswerRe: Which of the following methods and attributes are NOT part of the VB.NET Exception class API? Pin
Mycroft Holmes27-Jan-14 12:07
professionalMycroft Holmes27-Jan-14 12:07 
AnswerRe: Which of the following methods and attributes are NOT part of the VB.NET Exception class API? Pin
Keith Barrow27-Jan-14 12:57
professionalKeith Barrow27-Jan-14 12:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.