Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Creating user control/custom image control to handle multilingual site

Reply
Thread Tools

Creating user control/custom image control to handle multilingual site

 
 
SamIAm
Guest
Posts: n/a
 
      10-17-2003
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


 
Reply With Quote
 
 
 
 
Jerry III
Guest
Posts: n/a
 
      10-17-2003
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" <(E-Mail Removed)> wrote in message
news:u%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2005/06/21 Lectra.Kaledo.Style.V1R1C11.Multilingual, 2005/06/21 Lectra.Diamino.Fashion.V5R2.Multilingual, new ! vvcd NZ Computing 0 06-24-2005 02:17 AM
Creating multilingual websites - Part 2 Karl ASP .Net 0 08-25-2004 08:17 PM
Creating multilingual websites - Part 1 Toturial Karl ASP .Net 0 08-14-2004 02:55 PM
Is MS-Windows 2000 Server multilingual version needed for the deployment of multilingual website? JoanneC ASP .Net 0 08-30-2003 03:45 PM
MS-Windows 2000 Server multilingual version needed to deploy multilingual website? JoanneC ASP .Net 0 08-28-2003 11:26 AM



Advertisments