It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to use in-build URL rewriting provided by ASP.NET 4.0. I have tried the following code but i dont know why this is not working as i am totally new to this topic.
I have tried the code from the following link:
http://code.msdn.microsoft.com/Easy-Steps-to-URL-2f792901/view/Discussions#content
But this code is working.
Please help me and it would be much better if any one can provide me code that is working..
What i want to is:
I am working on Some Social networking Site, client want when user tries to watch any other's profile then he will be visible the url like :www.test.com/profile/UserName This is my main goal. i didnt do URL rewriting so i have started from the beginning. But still i am not getting such type of example that meet my goal.Please if any one can, help me...
It is not necessary to write code to perform url rewrite. You may want to use IIS rewrite module extension, you can download it here http://www.iis.net/downloads/microsoft/url-rewrite
It is a Rules-based URL rewriting engine
for example you can rewrite testpage.aspx?name=testcase to /testpage/testcase via regular expressions
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm creating a site, and i need to have my urls mapped . I want to avoid losing css during mapping. I want something like this..
http://www.vitagamer.net/Game.aspx?id=12
to
http://www.vitagamer.net/games/this-is-a-game-name/
now I've been thinking about the following algorithm..
receive the requested url..
break into parts, and search database for id associated with "this-is-a-game-name".
serve the http://www.vitagamer.net/game.aspx?id=12 page
I've been looking on the web but i'm confused. How do I do the mapping?
how many ways are there?
is there a difference between rewriting and mapping?
Update
I also need to add hyperlinks to my pages that are shown like
http://www.vitagamer.net/games/gamename/
should I just do things with strings? or there's a more efficient way.
As you seem to be on Asp.Net WebForms, I would suggest writing a HttpModule to catch the incoming requests and rewrite the URLs.
This is a duplicate question and I've found my suggested answer as the second one here: ASP.NET URL Rewriting
You should look into Microsoft.AspNet.FriendlyUrls to easily use routing and get "friendly urls" or "extensionless urls" for ASP.Net Web Forms.
Here's a primer from Scott Hanselman
IIS 7 has support for URL Rewrite, you can use IIS interface to manage URL(s):
http://www.iis.net/downloads/microsoft/url-rewrite
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In MVC one can write a custom route that points to a method on a controller, i would like to achieve the same functionality with WebForms.
If i have a route like;
Admin/{Controller}/{Action}
I would like to user a Url like the one below to invoke the Register method on a User class/controller.
http://[domain]/Admin/User/Register
How do i go about doing something like this.
NOTE
I've found an answer to my question elsewhere;
http://www.west-wind.com/weblog/posts/2011/Mar/28/Custom-ASPNET-Routing-to-an-HttpHandler
Basically, i am using WebForms to develop an app, however wanted the controller concept of the MVC - the ability to execute methods that exist on a controller. I've been able to achieve my goal, thanks to that article.
All WebMethod's on a page must be declared as static, and a User.aspx has a class in your application, so anywhere in your code you can call User.Hello()
What you want to do is better served with a WebService, however I don't see anything technically limiting you from doing it this way.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to implement a basic file, image upload utility into a small, simple (built using the Visual Web Developer tutorial) C# MVC3 ASP.Net web site. I have see this utility pointed out here on StackOverFlow a few times:
https://github.com/blueimp/jQuery-File-Upload
...but unsure if I can just slot it into my MVC3 C# Website? (I am very new to attempting to learn MVC3 with C#).
I also see lots of this guides floated around the place:
http://aspzone.com/tech/jquery-file-upload-in-asp-net-mvc-without-using-flash
http://davidsonsousa.net/en/post/how-to-upload-a-file-using-mvc-3-and-ajax
http://tomas.epineer.se/archives/3
Can any of these simply be slotted into my website?
Appreciate any help
Yes. The first two seem to fit perfectly.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
We are programming a website which use UPS as shipping method. Administrator of the site must approve every order manually, create things propertly with UPS and then just get the tracking number and put it in our system. So we do not use any API from UPS or anything.
Is there a "static" URL like : http://ups.com/apage/{0} we may format to replace the {0} by the tracking number that the administrator will enter in our system?
I know I could search in google, but I'm not realy sure of what to write after UPS URL Tracking number didn't results me anything usefull.
You are required to use the UPS API when interacting with their system to either track packages or manage shipments. Any other use is in violation of their terms of service.
I don't know their terms of service as others have mentioned, but GMail just links to the following when it finds a tracking number in a message. I would assume you could use the same:
http://wwwapps.ups.com/WebTracking/processInputRequest?TypeOfInquiryNumber=T&InquiryNumber1=TRACKINGNUMBER
I'm sure this could end up changing at some point down the road.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Hello friends I m new for this thick box so some one can help me ...........
Thickbox, or any other jQuery or MooTools based pop-up is JavaScript based and hence runs client side. Because of that it needs to sit in the HTML element of your page (this is the bit in the source view of Visual Studio), as opposed to the server side c# code in the .cs file. The fact that you're building the site with asp.net is irrelevant.
I know as you say its little bit difficult to work with c# and source code of asp.net but yesterday i just try to do that and hope fully its work very nicely and thanks for your reply and
if I want to use shadow (Opening the Image in zoom view) effect for the my image gallery web site then what is the next procedure for that in Javascript