Hi meetsree83,
Please add runat=server to the anchor tag and assign the text and href as per your condition.
Check the below example.
HTML
<a id="anchor" runat="server" data-ajax="false" class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-btn-right"
data-transition="fade"></a>
C#
protected void Page_Load(object sender, EventArgs e)
{
string key = Request["key"];
string language = Request["lang"];
string href = "?key=" + key;
if (!this.IsPostBack)
{
if (language == "ur")
{
anchor.InnerText = "English";
href += "&lang=en";
}
else
{
anchor.InnerText = "اُردُو";
href += "&lang=ur";
}
anchor.HRef = href;
}
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim key As String = Request("key")
Dim language As String = Request("lang")
Dim href As String = "?key=" & key
If Not Me.IsPostBack Then
If language = "ur" Then
anchor.InnerText = "English"
href += "&lang=en"
Else
anchor.InnerText = "اُردُو"
href += "&lang=ur"
End If
anchor.HRef = href
End If
End Sub