MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Rewrite URL  (Mono Support )

9782 put(a) pogledan, 2 odgovor(a) 1.7.2012. 13:50:24Kreirao(la) mdaly
mdaly

mdaly

1.7.2012. 13:50:24
Hi,

I am trying to rewrite a url which will take users to the messages page, but I cannot get it to work.

In the linkbutton I have the following: NavigateUrl="/monox/Messages/"

In the web.config file i have included the following code: <rewrite url="^(.*)/Messages/$" to="$1${SocialNetworkingFolder}/Messages.aspx" />

Can anybody help with this as I am eager to get this working asap.

Thank you.
Ovaj sadržaj još nije ocijenjen. 
93 Reputacija 8 Ukupno objava
imarusic

imarusic

1.7.2012. 16:47:06
Hi mdaly,

you can try with this example:

<rewrite url="^(.*)/monox/message/(\?(.+))?$" to="$1/Pages/message.aspx/&amp;$3" name="Message" urlPattern="/monox/message/"/>

Regards,
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava