Querystring, LCID

Posted on 2009-02-19
Last Modified: 2012-06-21
I have a problem where the textbox of a form is getting it's value from a "&name=dsds d" querystring value. My problem is that querystring CAN hold special characters like å ä ö. When the characters are moved "back" to the textbox, it appears är cubes. How do I avoid this?
Question by:dingir
    LVL 12

    Accepted Solution

    Use, Server.UrlEncode, when passing as querystring and use Server.UrlDecode when you access the query string value.
    LVL 1

    Author Comment

    u mean using server.urlencode and urldecode instead of request.querystring in overall? and on same way? I will try and read about it.
    LVL 12

    Assisted Solution

    No, Server.UrlEncode(<querystring>), before redirecting and after landing on the desired page, and while you assign the value in the textbox use
    Textbox1.Text = Server.UrlDecode(<desired_Query_String_Param>)
    LVL 1

    Author Comment

    Like a dream!

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now