Creating user control/custom image control to handle multilingual site

Discussion in 'ASP .Net' started by SamIAm, Oct 17, 2003.

  1. SamIAm

    SamIAm Guest

    Hi There

    I need to create either a user control or custom control to replace my image
    controls. I need to be able to dynamically assign a id and file name to the
    control before rendering it.

    Any help appreciated,

    S
     
    SamIAm, Oct 17, 2003
    #1
    1. Advertising

  2. SamIAm

    Jerry III Guest

    Why can't you just use server side img? Like this:

    <script language="C#" runat="server">
    public void Page_Load(Object sender, EventArgs e)
    {
    Img.src = "Whatever.png"; // Put your logic here to assign the source
    url
    }
    </script>
    <img id="Img" src="~/default.png" runat="server" />

    The id should stay the same as the image should have the same meaning in
    different languages, much like a header is always a header regardless if
    it's in English or Japanese.

    Jerry

    "SamIAm" <> wrote in message
    news:u%...
    > Hi There
    >
    > I need to create either a user control or custom control to replace my

    image
    > controls. I need to be able to dynamically assign a id and file name to

    the
    > control before rendering it.
    >
    > Any help appreciated,
    >
    > S
    >
    >
     
    Jerry III, Oct 17, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JoanneC
    Replies:
    0
    Views:
    432
    JoanneC
    Aug 28, 2003
  2. JoanneC
    Replies:
    0
    Views:
    527
    JoanneC
    Aug 30, 2003
  3. Lloyd Dupont

    trying to write a multilingual web site

    Lloyd Dupont, Jan 8, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    495
    Lloyd Dupont
    Jan 10, 2006
  4. Ikke
    Replies:
    28
    Views:
    952
    John Hosking
    Apr 14, 2007
  5. Ed

    ASP multilingual site

    Ed, Feb 6, 2004, in forum: ASP General
    Replies:
    3
    Views:
    119
    Bullschmidt
    Feb 10, 2004
Loading...

Share This Page