Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
4.33/5 (3 votes)

<%=AllVetMed.Common.PageUtility.GetLocaleResourceString("FrontEndLoginCustomer")%>



It's working.

<asp:Button ID="btnLogIn" runat="server" CssClass="btn btn-success btn-large" ValidationGroup="login" Text="<%$AllVetMed.Common.PageUtility.GetLocaleResourceString(FrontEnd.LoginButton)%>" OnClick="btnLogInUser_Click" />

But It's not working.


Method:

public static string GetLocaleResourceString(string strkey)
{
string Resource_Name = string.Empty;
CRUD objCRUD = new CRUD();
HttpResponseMessage response = objCRUD.Get("api/LocaleResource/1/" + PageUtility.Encryptdata(strkey)); // Blocking call!
if (response.IsSuccessStatusCode)
{
var Module = response.Content.ReadAsAsync<localeresourcemodel>().Result;
if (Module != null)
{
Resource_Name = Module.ResourceValue;
}

}
return Resource_Name;
}
Posted

Try This.

XML
<% btnLogIn.Text=AllVetMed.Common.PageUtility.GetLocaleResourceString(FrontEnd.LoginButton) %>

<asp:Button ID="btnLogIn" runat="server" CssClass="btn btn-success btn-large" ValidationGroup="login" OnClick="btnLogInUser_Click" />
 
Share this answer
 
Comments
Member 10266652 11-Dec-13 10:19am    
i am trying this but its not working...
Member 10266652 11-Dec-13 10:29am    
Oh'so sorry it's working Ok.
Thank you.
In your aspx.cs file

add this line..

C#
btnLogIn.DataBind();



use <%# instead of <%$
It should work fine...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900