Click here to Skip to main content
15,909,827 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Absolute Timeout in windows Authentication Pin
dusty_dex13-Mar-13 10:44
dusty_dex13-Mar-13 10:44 
QuestionUsing microsoft AntiXss cross site script encoder to encode standard input controls on an ASP .NET page Pin
Steve Holdorf13-Mar-13 6:48
Steve Holdorf13-Mar-13 6:48 
QuestionOffice Conversion Advice Pin
mat4112-Mar-13 15:01
mat4112-Mar-13 15:01 
QuestionBat File which will list of URL LINks which are not working out of 100 URLs Pin
Nishant kumar electronics12-Mar-13 8:20
Nishant kumar electronics12-Mar-13 8:20 
AnswerRe: Bat File which will list of URL LINks which are not working out of 100 URLs Pin
R. Giskard Reventlov12-Mar-13 8:50
R. Giskard Reventlov12-Mar-13 8:50 
GeneralRe: Bat File which will list of URL LINks which are not working out of 100 URLs Pin
Nishant kumar electronics12-Mar-13 23:13
Nishant kumar electronics12-Mar-13 23:13 
GeneralRe: Bat File which will list of URL LINks which are not working out of 100 URLs Pin
Richard MacCutchan13-Mar-13 1:02
mveRichard MacCutchan13-Mar-13 1:02 
QuestionASP.NET MVC - Can't seem to get Html.ActionLink to route to Webform page Pin
David Mujica12-Mar-13 5:19
David Mujica12-Mar-13 5:19 
I have a MVC 4 application (with jQuery Mobile) working and I'm trying to build some Administrative pages which will be implemented as WebForms. The problem I am having is that I can't seem to get the Html.ActionLink to send the user to those admin pages.

The admin pages reside in a /AdminUtils folder off the root of the application.

Based on some searching, I've added the following to my Global.asax.vb

VB
Sub Application_Start()
        AreaRegistration.RegisterAllAreas()

        WebApiConfig.Register(GlobalConfiguration.Configuration)
        FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters)
        RouteConfig.RegisterRoutes(RouteTable.Routes)
        BundleConfig.RegisterBundles(BundleTable.Bundles)
    End Sub

    Sub RegisterRoutes(Routes As RouteCollection)
        Routes.IgnoreRoute("AdminUtils/{*pathInfo}")

        '1) Route name
        '2) Route URL
        '3) Physical File

        Routes.MapPageRoute("ReportRoute", "AdminUtils/{someparam}", "~/AdminUtils/{someparam}.aspx")

        'Routes.MapPageRoute("DummyRoute", "AdminUtils", "~/AdminUtils/WebForm1.aspx")

    End Sub


In my Index.vbhtml page I have the following:
@Html.ActionLink("Admin Link", "AdminUtils", New With {.Page = "WebForm1.aspx"})


However, if I hover over the link, it indicates that it wants to route to:
HTML
http://localhost:63163/Home/AdminUtils?Page=WebForm1.aspx


If I use a standard hyperlink,
<a href="~/AdminUtils/WebForm1.aspx" title="Form 1">Webform1 Here </a>

the browser is directed to the page and WebForm1.aspx displays as normal.

I'm thinking it has something to do with the Routing, but I just don't know what to do.

Thank you in advance for you help.
David
AnswerRe: ASP.NET MVC - Can't seem to get Html.ActionLink to route to Webform page Pin
Keith Barrow15-Mar-13 4:36
professionalKeith Barrow15-Mar-13 4:36 
GeneralRe: ASP.NET MVC - Can't seem to get Html.ActionLink to route to Webform page Pin
RJOberg15-Mar-13 5:47
professionalRJOberg15-Mar-13 5:47 
AnswerRe: ASP.NET MVC - Can't seem to get Html.ActionLink to route to Webform page Pin
User 483504715-Mar-13 5:45
User 483504715-Mar-13 5:45 
GeneralThanks to all Pin
David Mujica18-Mar-13 4:17
David Mujica18-Mar-13 4:17 
QuestionCulture Info... Pin
Vamsi Krishna Aluru12-Mar-13 2:39
Vamsi Krishna Aluru12-Mar-13 2:39 
AnswerRe: Culture Info... Pin
Bhuvan Ram12-Mar-13 3:01
professionalBhuvan Ram12-Mar-13 3:01 
AnswerRe: Culture Info... Pin
Bernhard Hiller12-Mar-13 5:12
Bernhard Hiller12-Mar-13 5:12 
GeneralRe: Culture Info... Pin
dusty_dex12-Mar-13 7:09
dusty_dex12-Mar-13 7:09 
GeneralRe: Culture Info... Pin
Bernhard Hiller12-Mar-13 21:40
Bernhard Hiller12-Mar-13 21:40 
GeneralRe: Culture Info... Pin
dusty_dex13-Mar-13 5:01
dusty_dex13-Mar-13 5:01 
QuestionSession management and sliding expiration Pin
Tridip Bhattacharjee12-Mar-13 1:58
professionalTridip Bhattacharjee12-Mar-13 1:58 
AnswerRe: Session management and sliding expiration Pin
Richard MacCutchan12-Mar-13 2:15
mveRichard MacCutchan12-Mar-13 2:15 
AnswerRe: Session management and sliding expiration Pin
Manfred Rudolf Bihy12-Mar-13 6:14
professionalManfred Rudolf Bihy12-Mar-13 6:14 
QuestionHow to convert HTML into PDF Pin
Affan Toor12-Mar-13 0:07
Affan Toor12-Mar-13 0:07 
AnswerRe: How to convert HTML into PDF Pin
Karthik Harve12-Mar-13 1:22
professionalKarthik Harve12-Mar-13 1:22 
GeneralRe: How to convert HTML into PDF Pin
Affan Toor13-Mar-13 19:53
Affan Toor13-Mar-13 19:53 
QuestionCreating PowerPoint using OpenXml Pin
madhankumar2211-Mar-13 23:46
madhankumar2211-Mar-13 23:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.