Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 6,128 | Comments: 45,548

filter by tags archive

Comments

Sergio Pereira

I see your point... Looks ugly no matter what; but at least it can be made less verbose if you add a helper method in you page class (hopefully a common base class):

protected string R(string policyResName)

{

//figure this code out :)

return phrase;

}

And your script could be reduced to:

if($F('<%= PolicyDescription.ClientID %>')==

'<%=R("DescriptionNotFound")%>' ) 

{

alert('<%=R("EnterValidPolicyNumberOrDescription") %>'); 

return; 

}

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

  1. The low level interview question - 7 hours from now
  2. The worker pattern - 3 days from now

There are posts all the way to May 30, 2016

RECENT SERIES

  1. The design of RavenDB 4.0 (14):
    26 May 2016 - The client side
  2. RavenDB 3.5 whirl wind tour (14):
    25 May 2016 - Got anything to declare, ya smuggler?
  3. Tasks for the new comer (2):
    15 Apr 2016 - Quartz.NET with RavenDB
  4. Code through the looking glass (5):
    18 Mar 2016 - And a linear search to rule them
  5. Find the bug (8):
    29 Feb 2016 - When you can't rely on your own identity
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats