Iis7 url rewrite - optional querystring parameters?

If you are using relative paths (i. E src="../Images/someimage. Png then adding a trailing slash to the URL is telling the browser that the /Images/ folder is under the folder /John/ instead of being at the root of the site If you are using HTML img tags, you should prefer a virtual path: src="/Images/someimage.

Png this tells the browser to request the image path from the root of your site If your application isn't running in the root of the site, you can also use the ResolveUrl method that is part of the page and control object tree, this allows you to pass in a virtual path of the form ~/Images/someimage. Png and the framework will work out what the correct path should be.

If you are using relative paths (i.e. Src="../Images/someimage. Png" then adding a trailing slash to the URL is telling the browser that the /Images/ folder is under the folder /John/ instead of being at the root of the site.

If you are using HTML tags, you should prefer a virtual path: src="/Images/someimage. Png" - this tells the browser to request the image path from the root of your site. If your application isn't running in the root of the site, you can also use the ResolveUrl method that is part of the page and control object tree, this allows you to pass in a virtual path of the form ~/Images/someimage.

Png and the framework will work out what the correct path should be.

Can't believe I missed that. I was looking at the wrong master page, which has the same buttons, just different positions. D'uh!

Thanks, the image problem is fixed. – keyboardP Mar 10 '10 at 0:19 I managed to do the rewrite for part 2 by adding another rule and used a URL without the optional parameters as the template. Then, on the server, I simply checked each parameter and if it was missing, I assigned it a default value.

– keyboardP Mar 10 '10 at 1:34.

Server side, this is implemented (i.e. If nothing is entered, then assume a default value). But how would this work with the URL rewrite module?

Www.mysite.com/John would search for John and use a default value for the sName parameter. Thanks for any help.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions