.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Stop Outlook changing encoded URL back to forward slashes etc

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :ASP.Net

Hi guys,

I have some javascript code to open an email and send a resume link.

The resume link is in the body of the email and the query string parameters are encrypted, which sometimes results in forward slashes (due to Base64 encoding).

I am using Server.URLEncode() to convert the encrypted string into a "proper" URL and the string looks fine when I debug the code, i.e. forward slashes come through as %2.

However, when I click on the email link on my website, Outlook shows the URL in the decoded format, i.e. the %2's are converted back into /.

This is probably a client specific Outlook setting, so I could change my Outlook to work okay but another user will have the same problem.

Is there a way to force any email client to preserve the URL encoding and not decode the characters as Outloook seems to be doing?

I can't seem to find anything on the internet about this, which seems strange since it's a pretty clear issue.



View Complete Post

More Related Resource Links

Editor's Note: A Look Back As We Move Forward


Here's a look at a year's worth of coverage and changes at MSDN Magazine in response to reader requests.

Howard Dierking

MSDN Magazine January 2009

Trouble getting my back/forward buttons to work correctly

My program has 4 pages that have session variables on each page and they are retrieved on the 4th and final page then submitted to a database when the submit button is clicked. When i was testing my program i filled out all 4 pages and then clicked back to refill-in something on a previous page and all my information wasn't filled out anymore. So i added the code in the page load sub btnBack.Attributes.Add("onClick", "javascript:history.back(); return false;") and this cured that problem so i could click back and the data would still be filled out. Then i saw a new problem....after i went back to fix something on previous pages 1 and 2, i would click the next button to go forward to pages 3 and 4 that i've already started filling out and now the data on those pages were cleared. So how do i make it so that the information from the whole program stays filled out whether i go back and forth from the 1st page to the 4th until i click submit on the 4th page? I have searched everywhere on the internet and cannot find a solution

Back & forward button of browser hide...

Hiwithout script can i hide back & forward button of browser ..here lot of solution given but not working properly so please give me solutionthankscraj

WPF- Back/Forward navigation UI not working when Html web files are displayed in Frame Control


I am integrating (web) html files in my WPF application using Frame (say Source=http://www.microsoft.com)

I set the JournalOwnership="OwnsJournal" and


The navigation UI is visible and disabled initially when the page loads up (which is fine), but when I click on links the Back/Forward button is not enabled.  Interestingly the context menu shows Back/Forward and I can navigate that way. Do you have pointers?


Thanks for your help.

Internet Explorer Go back one page and Go forward one page buttons are disabled.


I have a .aspx page in my web site that when I run it the internet explorer back and Fotrth Buttons are disabled. Any Idea what could be causing this functionality.

Changing an Outlook Item from SharePoint WebPart


I have a custom SharePoint 2007 WebPart.

I need to be able to change an item in the user's Outlook 2007 based upon their actions within the WebPart.

I cannot figure out how to programmatically capture the user's Outlook from SharePoint to make the needed changes. I can set up a new instance of Outlook, but it sets it up on the server, not connected to the user's instance of Outlook. Unfortunately, OOB Web Parts will not work in this instance.

Can anyone point me towards a resource that can give me this information, please?

Thanks for your help!!

Navigating Web Project with Browser's Back/Forward Button(s)


I am developing a web project in asp.net using vb and want to allow the user to navigate through my enrollment process using the Browser's Back and Forward buttons. Is this possible?


Thank you in advance.

Disable Back and Forward button in the IE and Mozilla browser


Hi every body

I want to disable back and forward button in the IE and Mozilla when my application (which is a WPF, XBAP project in the .Net 4.0) is deployed in a browser.

The main form is a System.Windows.Window. Please help me how can id do that.


Clickin back or forward after Logout



I need a VB code to prevent the user from accessing the page if not authenticated  just like facebook when user click logout and if he click the back button user is redirected to login page

i need the same but in ASP.net

 i am using 


If Session("userid") Is Nothing Then




"default.aspx")End If



Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Convert English to Arabic number without changing any regional settings in .net

Well, most applications that I worked with was multilingual that supports English UI and Arabic UI.

And one of the major issue that we have faced is displaying Arabic numbers without the need of changing the regional settings of the PC.

So the code below will help you to display Arabic number without changing any regional settings.

Post back puzzle


Hi, I have a website where the user makes a selection from a combo box and it then fills a couple text boxes with text based upon the selection. I'm sure as you know it could take a second for the text to appear in the text box due to the post back. I know there is no way to make it instantanious, so what I would like to do it fill the text box with somthing like "Loading Info..." so the user does not type in it while the information is loading.

If you would like to see what I mean please go to this page: www.epiclinks.com/create.aspx and mess around with the combo boxes and You'll see what I mean.

What I would like to do is have it do a post back to write "Loading Info..." and then do another post back to fill it in based upon their selection. How would I do this?

I'm up for anything, so if you have a better solution than that please let me know.


Problem with changing language using culture info


I'm using the following msdn article to use different languages in my web application:


I'm following the instructions step by step in VS 2010, and it creates the resource files exactly how it's supposed to. 

However, when I run the program it just doesn't apply it. I don't see the different values from the resource file. 

If I leave my resource file name as sample.aspx.resx, it works. But when I change it to sample.aspx.en-us.resx, it doesn't work. I'm supplying culture from the aspx page's Culter and UICulture properties. I'm being very careful in choosing the correct file name, as that could be the issue,  but it just doesn't work. I also tried changing the culture in the backend code this way:

Changing direction of pop-ups/alerts in RTL


Hello All,

I am not able to change the direction of popups/Alerts in Arabic culture which should be RTL direction.

Rest of my application is changed in above culture, only problem is with popups and alerts.

Thanks in advance.

Changing from Local to WCF


I've been handed an application thats connection string implies a local host connection.

I want to make this connection a remote connection, to a database located on a Server.  I want the client and server to be able to communicate with one another remotely, instead of a local connection.

How does one create the Data Service, and establish end points to Server and Client?  Is it as simple as creating a contract (which I have limited knowledge on constructing), between the two locations, setting up the dataservice, security, and ratifying the 'connetions'?

A smidge of insight, please ;-)

Security negotiation failed because the remote party did not send back a reply in a timely manner. T



Dear All i have created one simple service

like this

namespace WcfService2
        public class Service1 : IService1
        public string ShowEmpName(string strFirstName, string strLastName)
            return strFirstName + strLastName;

after executing in .net command promt i got 2 files

service.cs & output.config

after that i create one class file like this

namespace WcfService2
    public class clientcs

        static void Main(string[] args)
            Service1Client client = new Service1Client();
            string strResult = client.ShowEmpName("Pradeep", "Deokar");

Stop Sorting Cross Tab Report Header


Dear, I want to stop sorting in cross tab report header. And also want to sort in specific order. How can i do that? Please help me. Its urgent


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend