Author: sumit
Creating IP based Access Validation
First you have to create a validation class which will do the work. Once that is done, now you can use the attributes in your controllers and actions like this:
Creating Meta Classes for Meta Data
you can create new meta classes for meta data like display name, required or not, etc.
Manually Logging User with Role
To logging a user with a custom role, you have to create an authentication cookies, only after user has been authenticated (Username and password has been verified). FormsAuthenticationTicket Class Namespace: System.Web.SecurityAssembly: System.Web.dll Constructor: public FormsAuthenticationTicket (int…
Password Mismatch
you can use the following code to check the password matching
Showing Logging in text while server is processing
Use the following JavaScript code.
Add Custom Files and using them in Posts/Pages
Do the Following: Install wp File Manger create a new folder for your uploads upload your files go to your file, right click and click get info copy the link and paste it where ever…