probleam concatenate two string in asp.net
-
i have two string "a" and "b" i want to concatenate string c = "a" "b" in asp.net my code is string p1 = "'" + b + '"' +' '; string p2 = "'" + c + '"' +' '; what result is coming c = "\p1\"\"p2"; what i want to result c = "p1" "p2"; how it will possible.
-
i have two string "a" and "b" i want to concatenate string c = "a" "b" in asp.net my code is string p1 = "'" + b + '"' +' '; string p2 = "'" + c + '"' +' '; what result is coming c = "\p1\"\"p2"; what i want to result c = "p1" "p2"; how it will possible.
Same question again ..... what is the problem??? let me tell you ... if you want a Quation Mark (") inside a string use \", if you want \ use \\ and use + to concatenate two strings... If you want "p1" "p2" assigned to c then write C="\"p1\" \"p2\"" Thats what u wanted I guess...:rose:
Abhishek Sur
-
i have two string "a" and "b" i want to concatenate string c = "a" "b" in asp.net my code is string p1 = "'" + b + '"' +' '; string p2 = "'" + c + '"' +' '; what result is coming c = "\p1\"\"p2"; what i want to result c = "p1" "p2"; how it will possible.
Your Same Post Check Yout Same Post[^]
cheers, Abhijit
-
Your Same Post Check Yout Same Post[^]
cheers, Abhijit
But it is not working
-
But it is not working
why not ? i have already give you the code . Check "Your Answer" post on your last thread. or you want some thing diffrent that you are not able to descruibe ?
cheers, Abhijit
-
why not ? i have already give you the code . Check "Your Answer" post on your last thread. or you want some thing diffrent that you are not able to descruibe ?
cheers, Abhijit
Ok Thanks for reminde me
-
Ok Thanks for reminde me
i have two command when two command in concatenate and run sigle command in asp.net e.g string a = "\"a\"" + ' '; string b = "\"b\""; string c = a + b; TextBox1.Text = c ProcessStartInfo startinfo = new ProcessStartInfo(); startinfo.FileName = TextBox1.Text; Process.Start(startinfo); that is same probleam when single command is run on the run window the execute succefully run
-
i have two command when two command in concatenate and run sigle command in asp.net e.g string a = "\"a\"" + ' '; string b = "\"b\""; string c = a + b; TextBox1.Text = c ProcessStartInfo startinfo = new ProcessStartInfo(); startinfo.FileName = TextBox1.Text; Process.Start(startinfo); that is same probleam when single command is run on the run window the execute succefully run
Rinki Mukheraji wrote:
when two command in concatenate and run sigle command in asp.net
you want to run two command a time ???? by adding them. :zzz: :zzz: Try to execute one by one.
cheers, Abhijit Read My Latest Article : IIS 7.0 and Deploying Asp.Net WebSites on IIS 7.0
-
i have two string "a" and "b" i want to concatenate string c = "a" "b" in asp.net my code is string p1 = "'" + b + '"' +' '; string p2 = "'" + c + '"' +' '; what result is coming c = "\p1\"\"p2"; what i want to result c = "p1" "p2"; how it will possible.