Blank page with no error after i scaffolded Identity - asp.net

After i scaffolded identity when i run my project it gives me a blank page and the project doesn't have any errors, manually going to a page doesn't work either and when i try to view in browser a page view it gives me the same blank page.enter image description here

You have not given enough information for the question to be answered. If you are using Areas then the answer can be simply that you have not defined the Area Attribute at the beginning of your controller, such as
[Area("Landing")]
If this doesn't work then post extract of your code such as the program.cs, the HomeController.cs etc.. Then someone may be able to answer your question. :)

Related

How can I store data to use it any where in my element

I am face to a problem and I can not find a solution!!! may not enougn experience with CakePHP :o)
I created a setting pages (Controller+Model+view)
On admin_edit action, I created a form to enter the parameter of the web site, as the site of name (to be display on the layout), the status (online or not), the id of the home page, ect.
I may be did it wrong but until I can not use variable on all element.
I tried Configure::write or Set('val',$val) but with both of them, I could not use it eighter on the layout or on a controller.
As I spent almost a day, I would like tp know if someone can provide me an exemple to create an array (or something else) to be able to use it's value, either on a layout, a controller, a view, an element or a compnent, or a Helper. But the main need, would be on a Controller, the layout and the view.
may thank for any tuto or exemples
P.
Your question indicates that you need to get a basic understanding of how CakePHP works.
To understand how a request is made, take a look at the picture in the section "CakePHP request cycle" in this link:
http://book.cakephp.org/2.0/en/cakephp-overview/understanding-model-view-controller.html
As you can see, Controller asks Model for data, then sets that data to the View. The View can never send data back to the Controller - that would be a new request.
To understand the use of layouts,elements and how to set variables in views, see the cookbooks description of Views:
http://book.cakephp.org/2.0/en/views.html
And of course follow the blog tutorial is a good thing to get a grip of the basic concepts.

Spam in email form using .aspx language C# - how to add CAPTCHA

---- Final Solution ----
Since I am not familiar with asp - I decided to go with a jquery captcha ( thanks for all your help )
Edit New
I am using the reCaptcha with ASP.NET doc's found here:
https://developers.google.com/recaptcha/docs/aspnet
Okay I added the code the the page see screen shot here.
http://qualityplanners.com/1.png
I am now getting this error.
http://www.qualityplanners.com/freequotecs.aspx
The first step of the docs asks me to:
Download and Add Recaptcha.dll to the root.. how do I link it without visual studio?
Let me know
-O
Old Below
I need help with a client with aspx - I am only familiar with PHP.
He keeps getting spam with this old form the past web guy coded.
http://www.qualityplanners.com/freequotecs.aspx
I am looking into ways to add reCAPTCHA or an easy method to stop spam... even just adding a simple validation for whats 5+6 or something.
I tried looking into the documentation for reCAPTCHA or some other free online CAPTCHA scripts but keep getting error - I am probably installing it wrong.
Whats the correct way to do this?
This is the fiddle of the linked code.
http://dotnetfiddle.net/ROzRgl
Thanks in advance.
-O
I think you may have skipped step 1.
Add a reference on your website to library/bin/Release/Recaptcha.dll:
On the Visual Studio Website menu, choose Add Reference and then click
the .NET tab in the dialog box. Select the Recaptcha.dll component
from the list of .NET components and then click OK. If you don't see
the component, click the Browse tab and look for the assembly file on
your hard drive.

New UI SiteEdit Implementation

I have implemented New UI SiteEdit in Tridion 2011 SP1. When I have created a page without components in it ,I am able to edit the page. If I am inserting the component I am not able to edit the page. Please help on this issue?
When changing a Page in New UI (Experience Manager or XPM), the page is checked-out. What you might be seeing for other users is expected behavior--other users should not be able to edit the page in the CME or within XPM.
Also, you should be restricted from editing content page for even the same user that has a different session (e.g. viewing the page from another browser).
When editing the page with the same user and session, you should be able to add multiple components. The page is checked out. Editing content on the page should be "editing components," rather than the page itself.
Let us know if you're seeing something else.
This can be a result of having an syntax error in your inline editing commands (i.e. the JSON syntax inside HTML comments). Normally you would use the OOTB building blocks that generate this for you, however, in some extreme scenarios, this syntax is written out by hand. I suspect that you may have the latter scenario. Verify your component and component field command syntax.

HTML formatting error on Umbraco workflow notification emails

I've posted this in the Our Umbraco forum (http://our.umbraco.org/forum/ourumb-dev-forum/bugs/30914-HTML-formatting-error-on-workflow-notification-emails) but would like to expand the audience as I need a quick resolution to this problem.
There appears to be an issue with the HTML used in workflow notification emails, property names are displayed but their values are not visible. The HTML content is there and if I save the source as an .htm file and view it in Firefox the values are displayed (although in the wrong location).
The HTML is generated from the sendNotification function in the umbraco.cms.businesslogic.workflow namespace, I am using Umbraco v4.7.1.1 and this problem was noticed in Outlook 2007.
Has anybody else encountered this problem?
It appears that this issue has been logged with Umbraco (http://umbraco.codeplex.com/workitem/26577) but has not been addressed.
The fix is a simple code change, for my current project I have decided to download the CMS source code and make the change myself. This works but throws up maintenance issues e.g. ensuring my change is not wiped out during a CMS upgrade.

iframed ASP actions trouble

This is actually a follow up on my previous question (link)
I've created the HttpHandler and it works fine for now, I'll add flexibility by using the querystring and session to point the post I'm making in the right direction.
The next question is as follows.
Now that I have the old page iframed as it should be, there's still the trouble of handling the postbacks (or actions) these pages trigger.
Every button action (asp form post) refers to a page that is not there (it's on the other server from which I am importing functionality).
I've tried using a url mapping to the other server but I get an error that tells me the external link is not a valid virtual directory. Hence I discarded this option.
I there anyway to keep functionality going inside the iframe?
please do ask clarification if you need it.
I got a solution from a colleague.
before passing the response string to the Iframe from the handler I use a string.replace to adjust the urls in the old site. This way they point to the old site and everything works again :)

Resources