how can i split sting in textbox in windows application using
c# .net
Answers were Sorted based on User's Feedback
Answer / suresh
DropDown spliting numbers1-100,101-200,...901-1000
ddlnumbers.Items.Clear();
string s=ddlselct.SelectedItem.ToString();
string[] value = s.Split('-');
var v1 =Convert.ToInt32(value[0]);
var v2 =Convert.ToInt32(value[1]);
for (int i = v1; i <= v2; i++)
{
ddlnumbers.Items.Add(i.ToString());
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sasd
string s = in_txt.Text;
string[] a;
// Split string on spaces.
// ... This will separate all the words.
//
string[] words = s.Split(' ');
foreach(string word in words)
{
for (int i = 0; i <= 3; i++)
{
a[i] = word;
}
| Is This Answer Correct ? | 11 Yes | 15 No |
I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
Code for Searching for Multiple Matches with the MatchCollection Class?
program for straight line(y=mx+c)
how do i copy textbox contents of 1 form to another form
"c sharp" code for factorial using static variables
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long
Code for Working with Files under a Directory?
Hello Sir, Thanks for the Solution but, can you pls. Explain the coding for the Static Function & static variable from the below coding....waiting for Ans. class fact { public static void Main() { fact f=new fact(); int x=1; //Declaration of x as 1 int k=Convert.ToInt32(Console.ReadLine()); for(int i=1;i<=k;i++) { x= x *i; } System.Console.WriteLine(x); } }
program to reverse the order of words in a string.
program to reverse the order of digits in a given number of any length.