Click here to Skip to main content
15,564,334 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
please convert this code in to razor syntax i can not find any solution

<google:PasswordStrength ID="PS" TargetControlID="txtPassword" CssClass="password" runat="server" />

i am found this artical in
Google Password Strength API[^]
but i can not convert the code mvc4 razor view engine
Suvendu Shekhar Giri 27-Oct-15 6:17am    
better to ask this in the feedback section of that article to get a quick reply.
F-ES Sitecore 27-Oct-15 6:21am    
There is no "conversion", you will need to take the relevant code (the bit that communicates with the google api) and implement it via an Action rather than a custom control as per the example. This will involve a basic understanding of MVC, but you should have that anyway if you are attempting to develop using MVC.

1 solution

You have to create PasswordStrenthControl static class and implement logic in that class.

Refer link CustomControl in MVC[^]
Share this answer

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