Click here to Skip to main content
13,351,661 members (43,378 online)
Rate this:
 
Please Sign up or sign in to vote.
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
Posted 27-Oct-15 1:11am
Comments
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

Refer link CustomControl in MVC[^]
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.180111.1 | Last Updated 27 Oct 2015
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100