Click here to Skip to main content
15,920,596 members
Home / Discussions / C#
   

C#

 
QuestionHelp: I'm new to C#: I want to make a global function Pin
TheFoZ19-Jun-08 8:27
TheFoZ19-Jun-08 8:27 
AnswerRe: Help: I'm new to C#: I want to make a global function Pin
Judah Gabriel Himango19-Jun-08 8:56
sponsorJudah Gabriel Himango19-Jun-08 8:56 
GeneralRe: Help: I'm new to C#: I want to make a global function Pin
TheFoZ19-Jun-08 9:03
TheFoZ19-Jun-08 9:03 
GeneralRe: Help: I'm new to C#: I want to make a global function Pin
Guffa19-Jun-08 11:20
Guffa19-Jun-08 11:20 
QuestionRadioButtonList Pin
john3419-Jun-08 7:59
john3419-Jun-08 7:59 
QuestionBuilding a System.Uri with a query string Pin
Spacix One19-Jun-08 7:40
Spacix One19-Jun-08 7:40 
AnswerRe: Building a System.Uri with a query string Pin
Judah Gabriel Himango19-Jun-08 8:24
sponsorJudah Gabriel Himango19-Jun-08 8:24 
GeneralRe: Building a System.Uri with a query string Pin
Spacix One19-Jun-08 9:06
Spacix One19-Jun-08 9:06 
Well I need the Uri object to pass to the WebBrowser control. If you pass it a string it'll convert it to a Uri object thus escaping the string it will navigate to.

In the Normal framework you can use UriBuilder to make a URL with extra unescaped information that is parsed properly by the .PathAndQuery property.

Example: (use a new c# console project on the normal framework 2.0 or higher)
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int demoValue = 4;
            UriBuilder ub = new UriBuilder("file://", "", -1, Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/DeviceApplication1/test.html", string.Format("?test={0}", demoValue));
            Console.WriteLine("Correct OutPut:\r\n{0}", ub.ToString()); //show path and query content (without errors)
            Console.ReadLine();
        }
    }
}



-Spacix
All your skynet questions[^] belong to solved

I dislike the black-and-white voting system on questions/answers. Dead | X|

GeneralRe: Building a System.Uri with a query string Pin
Judah Gabriel Himango19-Jun-08 11:05
sponsorJudah Gabriel Himango19-Jun-08 11:05 
GeneralRe: Building a System.Uri with a query string Pin
Spacix One19-Jun-08 13:00
Spacix One19-Jun-08 13:00 
QuestionOver ride GetReaderFromMessage method Pin
Toms Edison19-Jun-08 7:23
Toms Edison19-Jun-08 7:23 
QuestionSystem.Windows.Forms.Panel Pin
zvit19-Jun-08 6:33
zvit19-Jun-08 6:33 
AnswerRe: System.Windows.Forms.Panel Pin
Spacix One19-Jun-08 7:22
Spacix One19-Jun-08 7:22 
QuestionHow can we find the our system connected to the WEB ? Pin
Mohammad Dayyan19-Jun-08 5:02
Mohammad Dayyan19-Jun-08 5:02 
AnswerRe: How can we find the our system connected to the WEB ? Pin
Ashfield19-Jun-08 5:22
Ashfield19-Jun-08 5:22 
GeneralRe: How can we find the our system connected to the WEB ? Pin
Mohammad Dayyan19-Jun-08 5:30
Mohammad Dayyan19-Jun-08 5:30 
GeneralRe: How can we find the our system connected to the WEB ? Pin
Ashfield19-Jun-08 6:00
Ashfield19-Jun-08 6:00 
GeneralRe: How can we find the our system connected to the WEB ? Pin
Gareth H19-Jun-08 6:29
Gareth H19-Jun-08 6:29 
AnswerRe: How can we find the our system connected to the WEB ? Pin
Zoltan Balazs19-Jun-08 6:09
Zoltan Balazs19-Jun-08 6:09 
GeneralRe: How can we find the our system connected to the WEB ? Pin
Mohammad Dayyan19-Jun-08 6:38
Mohammad Dayyan19-Jun-08 6:38 
GeneralRe: How can we find the our system connected to the WEB ? Pin
Zoltan Balazs19-Jun-08 6:57
Zoltan Balazs19-Jun-08 6:57 
GeneralRe: How can we find the our system connected to the WEB ? Pin
Mohammad Dayyan19-Jun-08 11:18
Mohammad Dayyan19-Jun-08 11:18 
QuestionProblems with FreeImage Pin
Chrisfrmatl19-Jun-08 4:54
Chrisfrmatl19-Jun-08 4:54 
AnswerRe: Problems with FreeImage Pin
Judah Gabriel Himango19-Jun-08 8:17
sponsorJudah Gabriel Himango19-Jun-08 8:17 
GeneralRe: Problems with FreeImage Pin
Chrisfrmatl19-Jun-08 8:42
Chrisfrmatl19-Jun-08 8:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.