Click here to Skip to main content
15,891,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: I want SMS of application Pin
Michael Sync11-Jul-07 23:09
Michael Sync11-Jul-07 23:09 
AnswerRe: I want SMS of application Pin
Sven Cipido11-Jul-07 20:42
Sven Cipido11-Jul-07 20:42 
GeneralRe: I want SMS of application Pin
srinivassam11-Jul-07 23:00
srinivassam11-Jul-07 23:00 
AnswerRe: I want SMS of application Pin
Vasudevan Deepak Kumar11-Jul-07 22:23
Vasudevan Deepak Kumar11-Jul-07 22:23 
QuestionWhere should I place a code that I wish to be run all the time during run time? Pin
Khoramdin11-Jul-07 10:20
Khoramdin11-Jul-07 10:20 
AnswerRe: Where should I place a code that I wish to be run all the time during run time? Pin
Giorgi Dalakishvili11-Jul-07 10:35
mentorGiorgi Dalakishvili11-Jul-07 10:35 
AnswerRe: Where should I place a code that I wish to be run all the time during run time? Pin
Martin#11-Jul-07 10:38
Martin#11-Jul-07 10:38 
QuestionMVP and Validation in C# and ASP.Net Pin
martin_hughes11-Jul-07 8:47
martin_hughes11-Jul-07 8:47 
Hi all,

I've been looking at the MVP pattern recently, and it impressed me so much that I've converted my ASP.Net application to make extensive use of it. However, I'm wondering about the best way in which to incorporate validation into the pattern.

Formally I was using the Regex validator in the aspx page; clearly, this is was an inflexible approach - and wouldn't be at all feasible as and when I update the application to Silverlight or roll it as a Winforms app. MVP does solve this problem on a page by page basis, however I can't help but think that in terms of the application I've simply moved a problem up a level, rather than solved it.

In my application some areas of validation are common across different pages. For example, a number of pages are required to validate that the user has entered curreny values and not stupid stuff like "Mike is Ace!" etc. Now I can code this directly in the "presentor", but by doing so I prevent the same code being shared throughout the application.

A thought I had was to create an abstract CustomValidator object, and then make each presentor implement an IValidatable interface which could be passed into the concrete CustomValidator. Is this a good approach, or can anyone suggest a better way?

One other thing that is giving me pause for thought is the ASP.Net Session. Without coupling the presentor to the "web", how can I access the session and maintain portability if (when!) I need to convert to other platforms?

Thanks,

Martin.
AnswerRe: MVP and Validation in C# and ASP.Net [modified] Pin
Pete O'Hanlon11-Jul-07 9:17
mvePete O'Hanlon11-Jul-07 9:17 
GeneralRe: MVP and Validation in C# and ASP.Net Pin
martin_hughes11-Jul-07 9:38
martin_hughes11-Jul-07 9:38 
GeneralRe: MVP and Validation in C# and ASP.Net Pin
Pete O'Hanlon11-Jul-07 11:40
mvePete O'Hanlon11-Jul-07 11:40 
AnswerRe: MVP and Validation in C# and ASP.Net Pin
Kevin McFarlane11-Jul-07 12:53
Kevin McFarlane11-Jul-07 12:53 
Questionobsfucation Pin
snorkie11-Jul-07 8:42
professionalsnorkie11-Jul-07 8:42 
AnswerRe: obsfucation Pin
Judah Gabriel Himango11-Jul-07 12:52
sponsorJudah Gabriel Himango11-Jul-07 12:52 
GeneralRe: obsfucation Pin
snorkie11-Jul-07 16:49
professionalsnorkie11-Jul-07 16:49 
GeneralRe: obsfucation Pin
Judah Gabriel Himango12-Jul-07 4:53
sponsorJudah Gabriel Himango12-Jul-07 4:53 
AnswerRe: obsfucation Pin
Vega0212-Jul-07 21:28
Vega0212-Jul-07 21:28 
Questionmovable rectangle on image Pin
R.Myers11-Jul-07 7:37
R.Myers11-Jul-07 7:37 
AnswerRe: movable rectangle on image Pin
User 665811-Jul-07 8:05
User 665811-Jul-07 8:05 
AnswerRe: movable rectangle on image Pin
PhilDanger11-Jul-07 8:25
PhilDanger11-Jul-07 8:25 
GeneralRe: movable rectangle on image Pin
R.Myers11-Jul-07 9:01
R.Myers11-Jul-07 9:01 
QuestionC# enum with string arrays Pin
saymajum11-Jul-07 6:51
saymajum11-Jul-07 6:51 
AnswerRe: C# enum with string arrays Pin
MidwestLimey11-Jul-07 6:59
professionalMidwestLimey11-Jul-07 6:59 
AnswerRe: C# enum with string arrays Pin
PIEBALDconsult11-Jul-07 10:56
mvePIEBALDconsult11-Jul-07 10:56 
Questionerror handle [modified] Pin
daku111-Jul-07 6:44
daku111-Jul-07 6:44 

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.