Captcha image not showing in my asp.net mvc application - html

#using CaptchaMvc.HtmlHelpers
<!DOCTYPE html>
<html lang="en">
<head>
#Scripts.Render("~/bundles/jquery", "~/bundles/modernizr")
#Scripts.Render("~/bundles/jqueryval")
#Scripts.Render("~/bundles/bootstrap")
#Styles.Render("~/Content/css")
</head>
<body>
<div>
<div>
#Html.Captcha(4)
<p class="Error"> #ViewBag.ErrMessage </p>
</div>
</div>
</body>
</html>
I am using simple captcha in login page but when application loads first login page captcha image not showing

You need to be registered, and have some specific code that you can get by going to the link below:
Recaptcha Solution here!

Related

share link of website on whatsapp with image tag also

How can we include an image in our website to display in WhatsApp when we share a link like this?
Code
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="####"></script> // plugin from
www.addthis.com
</head>
<body>
<form id="form1" runat="server">
<div class="addthis_inline_share_toolbox"></div>
</form>
</body>
</html>
To add an image for most of social sharing website, you will need to add some metadata in the head tag of your website
The metatag you are looking for specifically is "og:image". Here is an example.
<meta property="og:image" content="https://via.placeholder.com/150" />
Where the content field would point to the image you want. This tag will be used when you share your website on a lot of social media (WhatsApp, Facebook, LinkedIn...)
Note that for Twitter the tag is "twitter:image:src"
For more info you can look at this https://ogp.me/

Basic HTML file showing blank page

I just started learning html from Bindner's book (A Student's Guide to the Study, Practice, and Tools of Modern Mathematics), which has a chapter on it.
I wrote the code
<html>
<head>
<title> My Page <\title>
<\head>
<body>
<p> Hello everyone! <\p>
<\body>
<\html>
in notepad++ and saved it as my site.html. But when I opened it in browser, a blank page shows up. What am I doing wrong?
not \ but / in close tags.
<html>
<head>
<title> My Page </title>
</head>
<body>
<p> Hello everyone! </p>
</body>
</html>

How to include #RenderPage in a WebApi Application?

I am working on a Web Api application and below is the razor templates used in my code.
Image
The _layout.cshtml page contains footer which needs to be shared across the other templates. Below is the footer to be shared across templates.
<p> This is footer </p>
I have tried using the following to share the footer but it is not rendering the page.
#model SR.Services.External.Data.EmailNotificationModel
<html>
<head>
<title></title>
</head>
<body style=\"color:#808080;font-size:8pt;font-family:Arial\">
<p>
Hi #Model.TargetUserName,
</p>
<p>
You have been removed from community '#Model.ObjectName' by #Model.Initiator.
</p>
#Html.Partial("_layout.cshtml")
#Html.Partial("~/EmailTemplates/_layout.cshtml")
#RenderPage("~/EmailTemplates/_layout.cshtml")
#RenderPage("_layout.cshtml")
</body>
</html>
Any help is appreciated.

html - page is not returning from one file to home page

about.html
about/about.html
`
<!DOCTYPE html>
<html>
<head>
<title>My About Page</title>
</head>
<body>
<h1>About me</h1>
<p>bla bla</p>
<p>Back to Home</p>
</body>
</html>
**dayseven.html**
<!DOCTYPE html>
<html>
<head>
<title>Day Seven</title>
</head>
<body>
<p>Visit me at my website</p>
</body>
</html>
`
when i click on back home link in about.html file. It does't return on home page(dayseven.html), it shows file not found message and
url of page not found page is
http://localhost/practice_project4/about/dayseven.html
If you want dayseven.html to be your home page, you have to rename it to index.html. index.html is the default homepage file name on most systems. Alternatively, you could change the link in about.html to point to ../dayseven.html instead, but this would leave you without a homepage.
Also, your link does not work. You cannot post links to services on your local machine without a special setup, and especially not with a localhost URL.

Jquery mobile link to local file

I have following code in index.html:
<a data-ajax="false" rel="external" href="../Info/BasicDefinition.pdf"
data-theme="c" data-iconpos="top" data-icon="arrow-d" data-role="button">Structure</a>
But i get 404 error - file not found after click on structure link. What i must change? I want to open .pdf file from browser.
My file structure (MPSR - root folder of my web site)
-MPSR
-----index.html
-Info
-----BasicDefinition.pdf
Linking without Ajax
Links that point to other domains or that have rel="external", data-ajax="false" or target attributes will not be loaded with Ajax. Instead, these links will cause a full page refresh with no animated transition. Both attributes (rel="external" and data-ajax="false") have the same effect, but a different semantic meaning: rel="external" should be used when linking to another site or domain, while data-ajax="false" is useful for simply opting a page within your domain from being loaded via Ajax. Because of security restrictions, the framework always opts links to external domains out of the Ajax behavior.
Source: http://jquerymobile.com/demos/1.0.1/docs/pages/page-links.html
So, you can remove the rel="external" from your tag and it should work.
I can't post this on jsFiddle, as it wouldn't work, but I've tested here and it worked fine:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" />
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>
<a data-ajax="false" href="../info/test.txt" data-iconpos="top" data-icon="arrow-d" data-role="button">Link</a>
</p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
</body>
</html>
Folder structure:
\test
\info
\test.txt
\root
\index.html