in our project we ha multiple pages in . i want to show the particular view name on my layout view. for example my path is http://localhost:64632/admin/index.html#/Subscribe. then the "subscribe" name should shou on main view. i want this code using javascript. asp.net C# javascript, webapi
            Asked
            
        
        
            Active
            
        
            Viewed 84 times
        
    1 Answers
2
            
            
        You can get the current url by using javascript:
var x = window.location.href; 
If you want the string after the '#/' you could use the following
var x = window.location.href.split('#/')[1];
 
    
    
        pascalzon
        
- 116
- 1
- 9
 
    
{{pagetitle}}