routing

MVC3 Subdomain Routing Issue

泄露秘密 提交于 2020-01-13 19:36:07
问题 Hello I want to build a MVC3 app, which can handle simple and subdomain request. The problem is with the Routing setup, and generation of correct paths inside native mvc3 Html extensions ( ActionLinks, Url.Content, Html.BeginForm, Ajax.BeginForm ) So.. I have the following structure: myDomain.com // HomeController | Bar.myDomain.com <------|-------> Foo.myDomain.com // BarController // FooController The HomeController , is mapped to myDomain.com whose routes should look like: myDomain.com //

SAPUI5 routing - Control with ID idAppControl could not be found

时光毁灭记忆、已成空白 提交于 2020-01-13 18:17:12
问题 first at all, I´m aware that there were similiar asked questions, but none of the answers could solve my problem. Short look into my code: My Component.js looks like this routes: [ { pattern: "", //home page name: util.Constants.Tile, view: util.Constants.Tile, viewId: util.Constants.Tile, targetAggregation: "pages" //targetControl: "idAppControl" }, { pattern: "firstExample", name: util.Constants.FirstExample, view: util.Constants.FirstExample, viewId: util.Constants.FirstExample,

Hide element outside the ng-view DOM based on route

徘徊边缘 提交于 2020-01-13 11:46:07
问题 Question: How can I add a "Login" view/route to my angular app that hides an element that is outside the ng-view DOM? Situation: In my Angular page, I have a navigation tree view on the left and the main view in the center: <div ng-app="myApp"> <div class="col-sm-3" ng-controller="TreeController"> <div treeviewdirective-here> </div> </div> <div class="col-sm-9 content" ng-view=""> </div> </div> Each node in the treeview changes the location using something like window.location.hash = '#/' +

WebAPI : 403 Forbidden after publish website

£可爱£侵袭症+ 提交于 2020-01-13 10:13:09
问题 Alright, I'm having a tough time locating the problem since it works locally but after doing a publish the results are simply: Error Code: 403 Forbidden. The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. (12202) The code: [RoutePrefix("api/v1/project")] public class ProjectController : BaseApiController { [HttpGet] public HttpResponseMessage GetProjects() { HttpResponseMessage resp = new HttpResponseMessage(HttpStatusCode.OK); if(User.Identity

ASP.Net MVC Routing problem with jQuery AJAX

六眼飞鱼酱① 提交于 2020-01-13 05:14:50
问题 My page is domain.com/home/details/1 In my jQuery AJAX call I have the following however when it makes that call its making a call to domain.com/home/details/home/getdata What can I do to get it to resolve properly? $(document).ready(function () { oTable = $('#example').dataTable({ "bServerSide": true, "sAjaxSource": "Home/GetData/", "bProcessing": true, "bPaginate": true, "sPaginationType": "full_numbers", "bFilter": true, "bAutoWidth": false, "fnServerData": function (sSource, aoData,

Angular 2 redirect if user is logged in

ⅰ亾dé卋堺 提交于 2020-01-13 02:45:32
问题 I have routes like this: const routes: Routes = [ { path: '', redirectTo: '/login', pathMatch: 'full' }, { path: 'login', component: LoginComponent }, { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] }, ]; and AuthGuard : export class AuthGuard implements CanActivate, CanActivateChild { constructor(private router: Router, private authService: AuthService) { } canActivate() { if (this.authService.isLoggedIn()) { return true; } this.router.navigate(['login']); return

Angular 5 EmptyError: no elements in sequence while making child routes

偶尔善良 提交于 2020-01-12 23:15:47
问题 I am not able to navigate from login page to dashboard page when I use children in routing as follows: const appRoutes: Routes = [ { path: '', redirectTo: 'login', pathMatch: 'full' }, { path: 'login', component: LoginComponent,pathMatch: 'full' }, { path: 'dashboard',pathMatch: 'full', /* canActivate: [AuthGuard], */ component: DashboardComponent , children: [ { path: 'online-submission/:moduleName',pathMatch: 'full', component: OnlineSubmissionComponent, /* canActivate: [AuthGuard], */data:

Asp.Net 3.5 Routing to Webservice?

帅比萌擦擦* 提交于 2020-01-12 18:23:09
问题 I was looking for a way to route http://www.example.com/WebService.asmx to http://www.example.com/service/ using only the ASP.NET 3.5 Routing framework without needing to configure the IIS server. Until now I have done what most tutorials told me, added a reference to the routing assembly, configured stuff in the web.config, added this to the Global.asax : protected void Application_Start(object sender, EventArgs e) { RouteCollection routes = RouteTable.Routes; routes.Add( "WebService", new

Asp.Net 3.5 Routing to Webservice?

旧城冷巷雨未停 提交于 2020-01-12 18:22:05
问题 I was looking for a way to route http://www.example.com/WebService.asmx to http://www.example.com/service/ using only the ASP.NET 3.5 Routing framework without needing to configure the IIS server. Until now I have done what most tutorials told me, added a reference to the routing assembly, configured stuff in the web.config, added this to the Global.asax : protected void Application_Start(object sender, EventArgs e) { RouteCollection routes = RouteTable.Routes; routes.Add( "WebService", new

Asp.Net 3.5 Routing to Webservice?

蓝咒 提交于 2020-01-12 18:21:10
问题 I was looking for a way to route http://www.example.com/WebService.asmx to http://www.example.com/service/ using only the ASP.NET 3.5 Routing framework without needing to configure the IIS server. Until now I have done what most tutorials told me, added a reference to the routing assembly, configured stuff in the web.config, added this to the Global.asax : protected void Application_Start(object sender, EventArgs e) { RouteCollection routes = RouteTable.Routes; routes.Add( "WebService", new