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"];
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.
What does the following line of code do
SqlDataSource DataSource =(SqlDataSource)CreateUserWizardStep1.
ContentTemplateContainer.FindControl("InsertExtraInfo");
MSDN can tell you:
http://msdn.microsoft.com/en-us/library/system.web.ui.control.findcontrol.aspx
It will find the control that is a child of ContentTemplateContainer, with the ID of InsertExtraInfo, and then cast it to SqlDataSource.
It simply says: "It uses FindControl to get the SqlDataSource then bind it to CreateUserWizard".
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);
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 to find url part using regexp?
Url: /text1/text2/text3-text4-text5-text6-text7/aaa/100
how I can find aaa???
var uri = new Uri(s);
return uri.Segments[uri.Segments.Length-2];
or
new Uri(s).Segments.Where(x => x == "aaa");
or
new Uri(s).Segments.Where(x => Regex.IsMatch(x, "^a+$");
...
Your question is fairly vague on what you actually want and to what end.
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.