web 2.0

ASP.NET(vb.net) & Localize - asp:Localize

ASP.NET(vb.net) & Localize - asp:Localize - asp:Localize : The Localize Control lets you localize any element on an .aspx page. It provides a design time feature not offered by its base class, the Literal control; in particular, the Localize control provides design time editing of static content so you can see a default value while working in page design mode.

ShotDev Focus:
- ASP.NET(vb.net) & Localize - asp:Localize

ASP.NET(vb.net) & Localize - asp:Localize

Example

Localize.aspx

<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs)
Localize1.Text = "This <b>text</b> is inserted dynamically."
If radioEncode.Checked = True Then
Localize1.Mode = LiteralMode.Encode
ElseIf radioPassthrough.Checked = True Then
Localize1.Mode = LiteralMode.PassThrough
End If
End Sub
</script>
<html>
<head">
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:RadioButton
ID="radioEncode"
runat="server"
GroupName="LocalizeMode"
Checked="True"
Text="Encode"
AutoPostBack="True" />
<br />
<asp:RadioButton
ID="radioPassthrough"
runat="server"
GroupName="LocalizeMode"
Text="PassThrough"
AutoPostBack="True" />
<br />
<br />
<asp:Localize ID="Localize1" runat="server"></asp:Localize>
</div>
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & Localize - asp:Localize
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.