I am retrieving a variable value from Request.QueryString. This has a value like "abcxyzasd.pdf". I want to replace it to<BR>"/abc/xyz/asd.pdf". How would I do this?<BR><BR>Thanks in advance
And this is answered in the documentation.<BR><BR>Check the documentation for the String object. It has a Replace() method.
Read a book :)<BR><BR>Look into the replace function.<BR>
string p1 = string.Empty;<BR>string p = string.Empty;<BR>p1 = Request.Params["p"];<BR>p = p1.Replace("/","&47;");<BR><BR>Is it ok? But does not work<BR><BR>Thanks
The very least that you MUST do is stop posting questions with the subject "Newbie".<BR><BR>Express something in the subject.
He's getting you to read it though, eh? ;-)
Actualy, I only read the subject. :D