Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 30th, 2007, 12:11 PM
Authorized User
Join Date: Dec 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to display localization variable?

Hi everyone,

I am trying to display a value from a resource file on the web page, that needs to be implemented in javascript. I'm stuck on this error code, please someone help.
mResourceManager.GetString('rmPleaseEnter') returns the word Please Enter. mResourceManager is public mResourceManager as ResourceManager
During runtime i get the following error:
Compiler Error Message: BC30201: Expression expected.

if (CheckMandatoryField(document.Form1.txtClaimNo, "<%= mResourceManager.GetString('rmPleaseEnter')%>") == true) {

Similar Threads
Thread Thread Starter Forum Replies Last Post
localization veda ASP.NET 2.0 Basics 2 August 4th, 2008 07:48 AM
localization mohitkumarpaliwal ASP.NET 1.x and 2.0 Application Design 1 July 26th, 2007 03:09 PM
Localization Issues gcm_uk ASP.NET 2.0 Basics 1 June 9th, 2007 09:44 AM
How to display variable value not variable name? ticktack Classic ASP Basics 3 August 24th, 2004 09:56 PM
Can't display input variable passed on to php code mespejo Beginning PHP 2 November 25th, 2003 03:32 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.