I am using Validation application block in my project and want to set validation message from resource file, but not able to do that. I tried giving the path of resource file in messageTemplateResourceType and name of resource in messageTemplateResourceName.
But it did not help as I only receive the message if I have set something in messageTemplate even after setting the resource file.
None
0 Points
3 Posts
set messageTemplateResourceName from resource file in Validation appication block.
Aug 07, 2010 03:27 AM|dd_kk|LINK
Hi,
I am using Validation application block in my project and want to set validation message from resource file, but not able to do that. I tried giving the path of resource file in messageTemplateResourceType and name of resource in messageTemplateResourceName. But it did not help as I only receive the message if I have set something in messageTemplate even after setting the resource file.
Here is my code:
Can anyone help?
Thanks in advance
Divya
Contributor
4790 Points
1211 Posts
Re: set messageTemplateResourceName from resource file in Validation appication block.
Aug 07, 2010 08:06 AM|ketan_al|LINK
Hi,
Please refer following
http://www.pnpguidance.net/Post/ValidationApplicationBlockMessageTemplateTokensResourceFiles.aspx
http://www.davidhayden.com/blog/dave/archive/2007/04/28/EnterpriseLibraryValidationApplicationBlockMessageTemplateTokens.aspx
hope this helps
http://www.ketscode.com
MCP, MCTS,MCPD (Microsoft Azure Developer)
Please mark as answer if it helps
None
0 Points
3 Posts
Re: set messageTemplateResourceName from resource file in Validation appication block.
Aug 09, 2010 12:51 AM|dd_kk|LINK
Hi Ketan,
I have already gone through this link but this is not clear to me that how to set
MessageTemplateResourceType
in the config file. Can you plese help in the same.None
0 Points
1 Post
Re: set messageTemplateResourceName from resource file in Validation appication block.
Nov 02, 2010 07:10 AM|divyang_dv|LINK
Hi Divya,
I had the same problem which is now resolved. Have a look at below which might help,
http://entlib.codeplex.com/Thread/View.aspx?ThreadId=233016
Regards,
Divyang Vyas