how can i get my login page in area? - asp.net-mvc-3

I have 2 areas in my project: Admins , Members
and I have Login.csthml in view folder.
Therefor,its Address is:
http:localhost.com:5555/Areas/Members/view/Login.cshtml
I want to create the text link "login" at home page of my site ,
when i click on it, it should go to login page that i said above.
i use this code:
#Html.Action("Login", "Members")
but , it doesnt know it should go to Members Area, and it throws an error:
{"The view 'Login' or its master was not found or no view engine
supports the searched locations. The following locations were
searched:\r\n~/Views/Members/Login.aspx\r\n~/Views/Members/Login.ascx\r\n~/Views/Shared/Login.aspx\r\n~/Views/Shared/Login.ascx\r\n~/Views/Members/Login.cshtml\r\n~/Views/Members/Login.vbhtml\r\n~/Views/Shared/Login.cshtml\r\n~/Views/Shared/Login.vbhtml"}
what should i do?

Do you have the area registeration on the Global.asax? When adding an area by right-clicking on the project and using the wizard all the coding for that is done automatically.
Also the address you posted is not correct... it should be something like http: localhost:[port]/[AreaName]/Members/Login
try using this url form to see if the routing is working or not

Related

Lektor server doubles subfolder in url without obvious reason

I am trying to export an existing php-based dynamic webpage into a lektor project which up to now really worked well.
Unfortunately one problem is giving me a headache:
While my navigation works perfectly with every page and subpage, links to subpages in the content section don't.
E.g. if I set a relative path like
[My Link to Subpage](/peter/personalinfo)
it is correctly shown in the browser view. If I hover the mouse over the link the browser shows the correct url 127.0.0.1:5000/peter/personalinfo.
But if I click it I get
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
and the url in the address field shows
127.0.0.1:5000/peter/peter/personalinfo
So I click the correct url but the browser calls the wrong url and of course can't find anything there.
I don't understand how this doubling can happen. I naively would expect that if I clicked a link the browser would exactly look at that address. But it seems like the server is redirecting to the malformed url. And yes, it does so with any link to a subpage.
the navigation looks like this:
Home
News
Peter
-- Personalinfo
-- Contact
-- Portfolio
Bob
-- Personalinfo
-- Contact
-- Portfolio
Any idea why this happens and how to change it?
Update: The problem doesn't appear with the built static page on a webserver.
there is an open issue (#997) that is already fixed and will be released soon. But you can fix this yourself, just append a slash at the end of your link [My Link to Subpage](/peter/personalinfo/)

Why i am unable to click the notification,message,profile section

I am currently doing laravel project and I have downloaded the Ace admin template. I have mentioned my problem details in the image. User manager, notification, messages and profile section are not clickable. What might be the problem?
The thing is I want to log out the admin section from the dashboard. I have successfully done the login section.
enter image description here
I think you forget to give url to the usermanager and notification profile
In your image I see like this, your url should be look something like this newportal.test/admin/dashboard/usermanager. Instead of newportal.test/admin/dashboard/# because you are appending # in your url, So click function wont work in your case.
Solution
Give a anchor tag to your notification and usermanager
<a href="newportal.test/admin/dashboard/usermanager" >User manger</a>

Joomla Submit article redirect to homepage

I have site that user can submit an article in frontend . I have create menu submit article, but when i click it , it redirect to homepage.
Thank you
The guidelines are here: Joomla : How to create an article from the front end.
Go through below:
Your menu item should not have access to only special members if you are submitting content as registered member. In short, you should maintain the access level of the page.
There can be some other cases, for which you must need to post the screenshot if any error message shown on the screen to debug. As you know there are many settings, custom code, and tweaks that Joomla CMS allows to implement.
To change the redirection when submitting an article I found it useful to do the following:
Associate the form that enables you to create an article from the frontend to a menu, and then edit the corresponding element of the menu, on the options tab, select the redirection after submission category to where you want it to redirect and that's it. Hope it helps anyone!

Facebook like button issue image, title, description

I have created a Facebook like button on my website 6 months ago it was working fine and showing image, title and description while posting the comment. But now from 2 days it's not showing any information showing shared URL instead of the image, title and description while posting comment.
Here is my website link.
https://www.whatyourneighbourpaid.com
Please see at the footer for share icon.
Have you checked your page in the Facebook Debuger (AKA linter)?
It says:
Errors That Must Be Fixed
Object Base Domain Not Allowed: Object at URL
'https://us.whatyourneighbourpaid.com/' of type 'website' is invalid
because the domain 'us.whatyourneighbourpaid.com' is not allowed for
the specified application id '391421600878949'. You can verify your
configured 'App Domain' at
https://developers.facebook.com/apps/391421600878949.
My guess is that in the app settings the url you used is not us.whatyourneighbourpaid.com, maybe www.whatyourneighbourpaid.com or just plain whatyourneighbourpaid.com?
If that's the case then just add this to the App Domains in the app settings and things should work fine.

Custom ActionLink with support of domain routing

I have application that accepts four different types of routes. Keyword link is the link of specific page and keyword user is the user that is the owner of the page.
Custom ActionLink should generate links on page depending on route taken to get there. Those links can be:
http://localhost/SiteEdit/user/link
http://www.domain.com/SiteEdit/user/link
http://user.domain.com/link
http://www.user.com/link
It has to create absolute links, because if relative links are used user can enter the page with http://localhost/SiteEdit/user and the default page will be displayed but if clicked on link it would become http://localhost/SiteEdit/link.
thnx in advance
The following link should help:
http://hanssens.com/2009/asp-net-mvc-subdomain-routing/
Update:
Try this gist: https://gist.github.com/RyannosaurusRex/4145948

Resources