It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to urldecode, except for the %20 character. How do I accomplish this?
Have you considered doing a string replace after decoding? For example
string decoded = HttpServerUtility.UrlDecode(input).Replace(" ", "%20");
use method HttpUtility.HtmlDecode(myEncodedString, myWriter);
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
On html page i have
I have to write rel content of href on server side(.cs)
like
href1.rel="";
But it is showing me an error how should i write??
You need to add an attribute
href1.Attributes.Add("rel", "");
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a url:
sys.php?x=23&y=20&z=9d939b
And I don't really know how to parse the 'z' value from it.
Use the HttpUtility.ParseQueryString() method, detailed here. It'll return a collection that gives you all the names (x,y,z), and the values (23, 20, 3d939b).
try:
var zValue = Request.QueryString["z"];
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
What is the return type of Regex.Split?
A string[] according to the docs. But I think you should learn how to either google that yourself, see it in visual studio (write it and hover your mouse over the function (Split)) or determine it in reflector.
MSDN can be your friend.
public static string[] Split(
string input,
string pattern
)
string[]
See http://msdn.microsoft.com/en-us/library/8yttk7sy.aspx
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
in c# what is the difference between both.
I imagine single result will be one single value
whereas single row will be some form of array of values.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how can i display \ by using c# in a textbox .
myTextBox.Text = "\\";
'\' is, as you probably know, an escape character (so "\n" is new line, "\t" is tab, etc). To display a literal "\" you need to double it up.