---
title: "Setting properties in resource file"  
description: "Setting properties in resource file"  
author: "marcel ethan"  
published: 2014-11-20  
updated: 2014-11-20  
canonical: https://www.mindstick.com/forum/12649/setting-properties-in-resource-file  
category: "asp.net"  
tags: ["c#", "telerik"]  
reading_time: 1 minute  

---

# Setting properties in resource file

My site needs to be french and english and I am using [resource files](https://www.mindstick.com/forum/23026/c-sharp-tool-generates-res-files-binary-resource-files) to accomplish this. My boss now wants to see sample text inside the [text boxes](https://www.mindstick.com/forum/34261/how-to-split-data-to-text-boxes-when-read-qr-code-data). We are using telerik [controls](https://www.mindstick.com/articles/66/how-to-create-controls-at-run-time-in-csharp-dot-net) to do this and I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to set the sample text to either english or french.

I may have to make a custom [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) for this so I can have an extra label that is the sample text.

My [question](https://www.mindstick.com/blog/23175/how-to-solve-neet-question-paper-in-less-time) is: Can you set other [properties](https://www.mindstick.com/articles/23331/nootropics-7-different-types-and-their-unique-properties) besides the [text property](https://www.mindstick.com/forum/161/problem-in-getting-text-property-for-sender-object) in the resource files.

ie: Label1Resource.EmptyMessage.Text

with resource set to: Empty message

## Replies

### Reply by Takeshi Okada

For local resources ASP.NET matches the attributes in the element:

```
<asp:Label ID="lblErrorMsg" runat="server"meta:resourcekey="lblErrorMsg" Text="Label">  </asp:Label>
```

So in the [resource](https://www.mindstick.com/blog/43433/top-best-resources-for-women-about-beauty-and-health) file you would define the localized text for "Text" as:

name: *lblErrorMsg.Text* and value: *Label*

If you have an attribute on the telrik control named *EmptyText* you would address that [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) in the resource file as such:

name: *lblErrorMsg.EmptyText* value: *Your text*


---

Original Source: https://www.mindstick.com/forum/12649/setting-properties-in-resource-file

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
