Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i want to change the page title from resource file from code behind any body have any idea how to change it from resource file???
Posted
Comments
[no name] 22-Jun-11 7:40am    
can you be more specific what is your requirement?

1 solution

Resource file works on key value pair concept. You will have all the values in resource file already and when you want to assign a variable with the resource key, you can assign it as below.

ViewData["error"]="resourcefilekey";

In the view, we can directly use error value for display.

Regards,
Lakshmikanth.M
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900