.net - Asp.net Url Routing?
Apr 9, 2012
What I am trying to do is basically be able to type in to the web address mysite/username and it will redirect them to there page (mysite/Profle/Default.aspx?username=username) according to there username.
View 1 Replies
ADVERTISEMENT
Aug 3, 2011
I tried to use ASP.Net's in the following generic handler, but i get this error at Page.RouteData
Reference to a non-shared member requires an object reference
What i am doing wrong?
<%@ WebHandler Language="VB" Class="MainHandler" %>
Imports System
Imports System.Web
Imports System.Xml
[Code]...
View 1 Replies
Dec 20, 2011
I am trying to work with routing on a site I am creating. If I have two routes, /Home/{Value1}/default.aspx for route 1 and /Users/{Value2}/default.aspx for route 2, how do I tell a link I am creating to use a specific route. I am trying to create links in my .vb code behind pages but I am unsure on how to tell it to use either route 1 or route 2 depending on my situation.
View 1 Replies
Dec 8, 2011
I know that you can create routes in asp.net web forms, but how do I go about creating one that handles all my pages like [URL]? I do have a file called page.aspx that will process all the requests for the CMS. I think it's a root handler I need.
View 2 Replies
Sep 18, 2011
In application start of the global.asax i have [code] the strange that is goimg on, is that when i visit the webpage directly~/general/contactus.aspx everything works like a charm, but when i visit the page indirectly ~/en/contact a 404 error is returned!
View 1 Replies
May 11, 2011
I have a website www.abc123.com. What would be the best way to determine when users attempt to access pages like[URL]..I've done some research and found that Request.PathInfo works quite well when the user visits www.abc123.com/Default.aspx/section1 but it does not work without having the Default.aspx portion included in the URL.
Right now all I get are 404 errors when attempting this with the built in IIS server in VS2k8 and on a published website. I'm using ASP.Net 3.5 and IIS 6 if those things matter.
View 2 Replies
Jul 27, 2009
I need to replace my URLs with a more friendly format as the following: Current: [url]
I want it the users to type : [url]
Also, Current: [url]
I want the users to type: [url]
I do not want to use Asp.net MVC.
View 4 Replies
Dec 1, 2011
I have already managed to get friendly urls working with my cms; however, what i want to know is: with asp.net 4.0 routes options, how do i get a root leaving routing? When user types in www.mysite.com/page_name, which is aboutus, it goes to the page cms.aspx but leaves the other routes intact:
[code]...
View 1 Replies
Sep 14, 2011
"Multiple types were found that match the controller named 'reviews'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter."
I've recently added a new "Admin" area to my app and within that I have a "ReviewController". There is also a "ReviewController" within the main app folder:
ah - as a new user I can't post an image, but basically I have a "ReviewController" in "Controllers" and in "Areas/Admin/Contollers".
I have 2 routes set up so far:
Default route in Global.asax.vb
Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
[Code].....
View 1 Replies
Apr 20, 2011
Is there a way to enable and than configure routing and remote access on windows server 2008 r2 using a (c#,vb).net script? What i need to do is:Enable Routing and Remote access
Configuration:
Select: Virtual Private Network (VPN) and NAT
Choose Network Interface to use based on given IP subnet
Select: Assign IP: Automatic
...and so on.
View 1 Replies
Jan 18, 2011
how to integrate bing map in Desktop Application (VB.Net).Is there any option to pull the data from Database from the locations and display the routes for more than one routes?My requirement is I need to show the routes like,
Person A's Route:
Starting point a to b, b to c
Route color: Blue
[code]....
View 5 Replies
Sep 17, 2010
I'm having a bit of a problem with a loop I made. So the setup is as following:We can create a routing somewhere in the world, from point A to B...and the program draws it on a worldmap.then I open a file with 300 zones in all over that country and he also draws these zones (it can go from polygons to circles. Some of these polygons are really small...when I click on a button I only want to see the zones which are connected to that routing...
So I use following script:
[code]...
this works fine, but not for the very small zones...I think when he uses GetRegionScans from those small intersections...the RectangleF is so small that he thinks it's empty.
View 1 Replies
Jun 7, 2011
I am having an issue where the I am trying to use some Regular Expression in a constraint. The issue is it is evaluating the Regex as a string, and throwing an error. "Cannot convert String 'd+' to long".
.MapPageRoute("Parts",
"{PartName}/{Part}/",
"~/Inventory/Default.aspx",
Nothing,
New RouteValueDictionary(New With
{.Part = "d+"}))
View 1 Replies
May 20, 2009
I have a database application developed around Access with VBA,I have used the Speech SDK and developed an application that in conjunction with MSCOMM 6.0 library calls into a remote IVR system.It sends in the credentials and queries information in response to that IVR's verbal requests. All seems successfull except for one problem;I'm using a shared SR engine and its using the system microphone as its audio input, this in turn gets the sound from the speakers which are routed to the telephone line through the modem. Of course this has a number of disadvantages - noise added to the sound from the environment and sound quality degredation as well as speaker volume dependency.
I would like the SR engine to take its audio input from the modem in paralell with the sound that goes to the speakers (so we can listen in to the call as well). This means that I must route the system audio output to the SR engine audio input. It seems that I must use an InProc SR instance - however in VBA that type is not recognized - since the shared SR uses the microphone as input by default. there is some statement to the effect that it is difficult in Microsoft's Help file. I'm unable to set the SR audio input to the modem output stream in VBA.As needed I can accomplish the C++ interface using an ActiveX object or a DLL to expose the missing API to VBA?
View 7 Replies