Tags: asp, button1, button1resource1, codeltaspbutton, metaresourcekey, net, programatically, runat, runtime, server, value

How to get meta:resourcekey programatically?

On .Net » .Net Asp

1,285 words with 1 Comments; publish: Wed, 07 May 2008 10:12:00 GMT; (10061.52, « »)

I just want to get at runtime meta:resourcekey value.

This is my code:

<asp:Button ID="Button1" runat="server"

meta:resourcekey="Button1Resource1" Text="Button" />

The problem is that it's not an attribute of the control.

I'd like to know what is the value of meta:resourcekey. I mean, not the

content of the resource, but the value of this attribute. In this case

what I want to get as the result at runtime is "Button1Resource1"

Any idea how to get it?

Thanks

Luciano

All Comments

Leave a comment...

  • 1 Comments
    • Luciano,

      You could use commandargument="Button1Resource1"

      and use the command.

      Good Luck

      DWS

      "luciano.marchese.aspx.todaysummary.com.gmail.com" wrote:

      > I just want to get at runtime meta:resourcekey value.

      > This is my code:

      > <asp:Button ID="Button1" runat="server"

      > meta:resourcekey="Button1Resource1" Text="Button" />

      > The problem is that it's not an attribute of the control.

      > I'd like to know what is the value of meta:resourcekey. I mean, not the

      > content of the resource, but the value of this attribute. In this case

      > what I want to get as the result at runtime is "Button1Resource1"

      > Any idea how to get it?

      > Thanks

      > Luciano

      >

      #1; Wed, 07 May 2008 10:13:00 GMT