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.
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:
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.
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.
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.
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!
"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}")
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.
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
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.
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+"}))
What Im making is like a face book and tagged login from my app
1. I have Combobox with 3 urls in there ( Facebook.com Tagged.com and Bebo.com ) 2. I have a Form2 with webbrowser 3. I have a Button when clicked it should open up my form 2 and preview of the website which I selected in my combobox in form1
All I'm trying to do is when I select lets say facebook in my form 1 and click load it should open up my form 2 with facebook website in it.[code]Now when I click my button in form 1 it will load Form2 ( named Explorer1) but my form2 is not showing me facebook or tagged page for some reason
i'm creating a website that allows people to upload images to the website in a folder called images on the Site. But I don't know how to upload a file and I'v searched everywhere Please Note: In this Website were not Using the asp:fileupload, were developing our own interface
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?
What I want is: To scan a website every 15 mins or so, (craigslist in this case), and email myself any new posts that come up. I know I need to use WebClient, but I never used that before. Another question would be how to only email when a new post is up and not receive the same email every 15 mins.
I'm trying to set up a .NET 3.5 web service project in Visual Studio. My goal is to include a namespace in this web service that I can expose to web applications that references this web service.I have added the namespace "MyWebservices", but I am not able to find it after referencing the web service.[code]I have also attempted to modify the "Root Namespace" property of the web service project, but I can't get that to work for me either.
My loging page in root/Account/Login.aspx page when I click on contact us i need to redirect to root/contactus.aspx page. I used Response.Redirect("~/contactus.aspx") in Master page (Site.Master) Protected Sub lbContactUs_Click(sender As Object, e As EventArgs) Handles lbContactUs.Click
I'm trying to copy the directories located on a root drive (J:) to another location (c:vagtilleder..)The problem is, the first folder isn't beeing copied.Example:
J: ootfoldersubfolder1subfolder2
After the copy it should look like this at the destination:
c:vagtilleder.. ootfoldersubfolder1subfolder2
But for some reason, "rootfolder" is not created at the destination, making the destination look like this:
c:vagtilleder..subfolder1subfolder2
where the error is located? OS: Win XP Pro VB 2008 Express.
Dim copytardir As String Dim copydestdir As String copytardir = ("J:") copydestdir = ("C:VagtBilleder" & StrInput)
I am trying to find the folder that my file is in so I can use it else where. I am using an openfiledialog. So, if the path of the file is "C: est est.text". I want to be able to get "c: est" without the file
Well, the code I have only gives the the number IF its like 2 x 2 or 4 x 4 is in the text box (4 or 16), but if its a number that can not be multiplied together to get the value in the textbox, it has an arithmetic overflow, what can I do to make it work for all numbers?
Dim Value As Integer Dim ValueToMultiply As Integer ValueToMultiply = 1